Skip to content

Failure to run build scripts is not visible to the user #10023

@jonas-schievink

Description

@jonas-schievink

When opening https://github.com/wasm3/wasm3-rs/ in VS Code, rust-analyzer indexes the project successfully, but reports a bogus error in wasm3-sys/src/lib.rs about OUT_DIR not being set. This happens because it failed to fetch the value of OUT_DIR from the build script, since that fails to run when bindgen isn't installed you forget to checkout submodules (I'm not actually sure what happens here).

It would be good to make this error visible, since currently there isn't any indication that the build script didn't succeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingA-macromacro expansionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions