-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Regression in v0.2.686: OUT_DIR
not set, enable "run build scripts" to fix
#9720
Comments
I cannot reproduce this on current master (8a6bac3) with Rust 1.53.0 |
How do I try master? I switched to the nightly channel and still see this. |
You can follow the instructions here: https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/dev#launching-rust-analyzer Can you post the configuration picked up by the extension? It should be printed to the "Output" tab under "Rust Analyzer Client". |
Hmm, I can't reproduce this problem on another machine, so closing |
I have seen this issue right now myself, currently running RA nightly / 0.3.708 (VSC 1.59.0, Win10). |
Same as @asaaki |
Same as @asaaki & @trentbb: discovered this when using bindgen in a workspace member crate. |
Also seeing this error when having my whole workspace open with multiple crates. Has anyone figured out a solution? |
Reopening as folks are running into it, although I am not currently experiencing this problem. ED: also running into this! |
Also running into this when opening a workspace with multiple crates on vscode remote ssh. |
had the same effect on single-project workspace after deleting and rewriting build.rs |
I am also running into this problem, with one folder open at a time and my whole workspace. Restarting VS Code has no effect. |
Meant to look into this, tried out @chris-ricketts repro but it works fine for me. So for those that still run into this we need a new reproduction it seems |
For what it's worth, this is what I am running into: I have a workspace with my game project (rust_voxel) and a renderer crate in the workspace
I'm running things a little out of date and will update later (since everything is working right now):
What I was doing to cause the first error:
Perhaps others here have panics in their build scripts? Not sure if this is a new issue or not. (n.b. you have to reload RA to get the This is a repro for how build script panics act (uncomment the panic in the build script): |
I have same issue with substrate wasm builder and wasm binary inclusion macro versions: |
Saw this spuriously, and now Rust-analyzer is stuck with (copying as JSON in case it's more useful):
Rust-analyzer is 0.2.853. And the known-bad commit that the above error is from is here: audio-mmo/monorepo@f227216 |
Also facing this rn, is there any hotfix? |
You can use |
From a freshly generated one using tonic. Interestingly, it works perfectly fine on windows, but not on ubuntu (over VsCode SSH) The project is basically their hello-world example |
The same problem occurs |
If anyone is using Emacs with |
I'm facing the same issue in neovim with rust-tools.nvim in default config. UPDATE: I'm using one rust-analyzer versions tested:
Versions in use:
|
Which project? |
Using the MacPorts rust-analyzer (https://ports.macports.org/port/rust-analyzer/details/) and running into the same issue, with a similar setup to @g0hl1n but running:
|
#11960 added some better error reporting which should help with this. I am going to close this now as there is a ton of stale information in here. If you do run into this, please do open a new issue, with the |
Hi, in my case the solution was install protobuf in my local machine, I use Mac so I ran "brew install protobuf" after that I was complete the project and the error is done. |
tauri-apps/tauri#8442 solved closing vs-code and reopen also maybe |
Restarting the VS code fixed the issue for me |
Repro: https://github.com/shikhar/bazel-tonic/tree/4a27fbf7fe15a26804a3eb5eb3f7b62dafa9fba4
The error does not make sense because that setting defaults to
true
.The error is gone after after rolling back to the last release v0.2.678.
The text was updated successfully, but these errors were encountered: