-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swjs_create_typed_array
error on carton test
#322
Comments
carton test
swjs_create_typed_array
error on carton test
Maybe it's because I have no modules that actually import JavaScriptKit (even if it is listed as a SPM dependency). I will give this a shot later |
Thanks. In case the error persists, could you share some isolated sample code for reproduction? |
FYI I did the following:
...and I get the same issue mentioned in the original post. That's about as minimal as you can get – there is literally no code in either the library or the tests now and the same issue occurs. @MaxDesiatov @kateinoigakukun @j-f1. I'm on macOS arm64 if it makes a difference. I couldn't find any local file that defines edit: Performing the above but starting with |
@ephemer could you clarify which version of |
I'm using the latest version of everything AFAIK: I just started using the entire SwiftWasm ecosystem this week. I checked and I'm using the following versions: carton |
The default environment of |
Should we close this as a duplicate of swiftwasm/WasmTransformer#18 then? |
Or we maybe have to provide a way to test with Node.js |
Thanks a lot for your responses here! That clears things up. I would be totally fine with avoiding JSKit in the tests. More than anything, this Issue laments the fact that it's not obvious that we have to do that. The issue is that Ideally the error reporting would make this clear – at the moment it's impossible to even know where to start to look. edit: so I wouldn't necessarily recommend either path (stripping WASI code or allowing testing with nodejs) – I would just make it clear somewhere (in the docs under Testing would suffice) that JavaScriptKit can only be linked if you add that command line flag, otherwise devs should avoid it in test targets. |
Hey there, thanks for
carton
! We (flowkey) have been a sponsor for a while but I only got to really test things out today for the first time. I was able to get one of our fairly complex internal libraries building with it within a few hours (removing dependencies on Dispatch and Foundation).Now I'm trying to get the tests running and so far I've been getting the following error:
swift test
works fine on the same project.I have a javascript kit dependency like so:
.package(url: "https://github.com/swiftwasm/JavaScriptKit", from: "0.13.0")
and it's a dependency of my test target like this:.product(name: "JavaScriptKit", package: "JavaScriptKit")
.Is there something obvious I'm missing or is it more likely to be a case of "disable all tests and enable them one-by-one until something turns up"? I will try the latter tomorrow but thought I'd write here in case something had changed in a recent version of JavaScriptKit or something.
The text was updated successfully, but these errors were encountered: