-
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] Improve error message for missing WASI SDK #94671
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionTrying to build a project targeting wasi-wasm with latest preview results in:
Reproduction StepsBuild any project with Expected behaviorIt should provision WASI SDK automatically when installing the Lines 174 to 186 in af0227f
Alternatively, at least provide a clear error message on how to retrieve one manually for now. Actual behaviorThe error message says
even though that doesn't seem to be supported. Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
That code is specifically for provisioning the sdk for the runtime build.
The aim is to make it be a part of the workload itself. This work is being tracked in #82788 . cc @directhex |
wasi-experimental
should include the wasi sdk
Yeah I saw the other issue, but wanted to raise one specifically for the error message (hence the title before it was edited). As far as I understand, the actual integration will take some time, and for the .NET 8.0 release it would be good to fix the error message itself so that it doesn't confuse other users. I believe for now it should just point users to the official repo they can install WASI SDK from. |
Do you mind if I edit the title back so that this issue is not accidentally confused with / as a duplicate of #82788? |
Indeed the message can be improved. |
wasi-experimental
should include the wasi sdk
Oh oops we edited at the same time 😅 |
Description
Trying to build a project targeting wasi-wasm with latest preview results in:
Reproduction Steps
Build any project with
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
, e.g. the default wasi console template while not having WASI SDK installed globally.Expected behavior
It should provision WASI SDK automatically when installing the
wasi-experimental
workload. It seems there is some code for this in the reporuntime/src/mono/mono.proj
Lines 174 to 186 in af0227f
Alternatively, at least provide a clear error message on how to retrieve one manually for now.
Actual behavior
The error message says
even though that doesn't seem to be supported.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: