-
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
rust-analyzer fails with "error: config value env
is not set"
#17739
Comments
I am having the same error. seems like an issue with the latest update. Installing previous versions in VSCode fixed it for me. |
I can confirm I have the same issue with VSCode despite everything working a few months ago with the same setup |
As a workaround you can simply add an empty [env] |
I tried the |
Would you mind sharing some details ? rustc version rust-analyzer version etc. I am trying to come up with a test case but couldn't make that happen :) |
I am working on this until someone who knows what they are doing takes over 😃 |
@alibektas I did some poking around and it seems that the last working version for me is My project is on an older version of rustc, so I ran into #17662 , and I added the I'm not sure what other details are relevant, if I should start bisecting, etc. |
This is more than enough. Thanks! |
I can also confirm that the problem is elsewhere. I can reproduce the error but everything works just fine. Without a repro it is hard for me track it down. Sorry! |
Note this error is harmless. The only reason this happens now is that we log the failure case unconditionally which we shouldn't do. Likely suffices to turn the tracing span from error to debug |
Having same issue on Win10 VSCode as well. |
This repository is also affected by this issue. I cannot navigate the source (and I also get the error log about the |
This issue will be closed but for those of you who can't use some of the rust-analyzer features. This issue is not related to that. I will be looking into what the actual cause for that is . I will be posting a reference to the issue once I figured out the main cause. 👋 |
This repo have same issue with rust-analyzer, and other cyclic deps errors. |
For dep cycles see #14167 |
rust-analyzer version: 0.3.2053-standalone
rustc version: rustc 1.79.0 (129f3b996 2024-06-10)
editor or extension: VSCode
relevant settings:
RUSTC_WRAPPER="$HOME/.cargo/bin/sccache"
repository link (if public, optional):
code snippet to reproduce: N/A
environment: WSL 2, Ubuntu 22.04 x86_64
Error
When I open my workspace in VSCode, rust-analyzer doesn't show any red underlines for syntactically incorrect code. When I look at the output of rust-analyzer in the OUTPUT tab, I see this:
In case it is relevant, here is the
Cargo.toml
in the root of my workspace:The text was updated successfully, but these errors were encountered: