-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[WASI] testing code outside of the current repo #108490
Comments
Tagging subscribers to this area: @directhex, @matouskozak |
I tried https://github.com/dotnet/runtime/tree/main/src/mono/wasi#4-debug-it as well and I don't see this wired up properly to connect a debugger either. |
Tagging subscribers to 'arch-wasm': @lewing |
Debugger need to be upgraded to WASIp2 #101253 |
The problem is about You either need a newer SDK (some nightly build could/should work) or use older runtime commit before changes to that generator happened. This is not happening too often, typically the generator in SDK is the same what runtime pack expects EDIT: Alternative you can build EDIT2: Another alternative is to let the build generate a whole .NET SDK
Then you can use <RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);DOTNET_RUNTIME_PATH\artifacts\packages\Debug\Shipping\</RestoreAdditionalProjectSources> |
Thanks @maraf! I tried with a recent nightly build of the SDK but got the same error when I reported this. Is it possibly related to the |
@jsturtevant I'm sorry, I have missed the message. Latest .NET 9 SDK is missing changes to the generator, they won't land there. You need a nightly .NET 10 SDK and that has a different set problems :/ |
@jsturtevant It might be possible to test with the 10.0.1xx sdk while still targeting net9 as of early this week but there may still be problems. I will try to find a few minutes to verify soon. |
Description
This doc https://github.com/dotnet/runtime/tree/main/src/mono/wasi#how-to-build-the-runtime suggested that built runtime pack can be referenced outside of the repo by a sample project. When I use it this way I end up with some errors:
Is there a way to reference the runtime pack for testing outside of the repository? Maybe the approach in https://github.com/dotnet/runtime/blob/main/docs/workflow/testing/using-dev-shipping-packages.md is needed?
Running the samples provided in wasi folder in the repo work fine.
Reproduction Steps
I changed the approach a bit from what is documented in after finding other docs that suggested:
A sample repo is in: https://github.com/jsturtevant/test-runtime
Expected behavior
Should be able to test runtime with sample projects outside repo
Actual behavior
errors with linked code
Regression?
no
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: