-
Notifications
You must be signed in to change notification settings - Fork 39
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
With Esp projects only - Rust Analyzer is not working properly #203
Comments
Can you obtain the error from rust analyzer? |
What do you mean by that exactly? In Nvim, which use Rust Analyzer, the error doesn't appear as diagnostics or in any other place where those errors usually appear. |
I don't use neovim (for Rust at least) but there must be a way to obtain the error from rust-analzyer within neovim. In vscode there is a separate log window. |
Yes, when rust analyzer reports errors, there are several ways I see it (as popup window, or another window or interleaved with the code itself). I don't know how rust analyzer/lsp/etc. work exactly but it seems with those errors the structure of the data passed is not matching the expected structure so the texts themselves aren't parsed properly and therefore don't appear. Because there is some cue for the error (and the fix) but the error text isn't there. |
I pinpointed the cause on a clean project from esp-idf template to This is the entire Cargo.toml I use.
|
The reason why the Well, All of the above is now addressed in the GIT version of the above crates (to be released soon) in that both As a temporary workaround, either do what you do, or disable @MabezDev As per the fixes mentioned above ^^^ we should close this. |
I'm using Neovim (based on LazyVim) for Rust development and with standard projects everything work properly including Rust Analyzer.
When I work with Esp-Idf embedded projects Rust Analyzer is only partially working:
If I run cargo check from command line I get the proper error message.
Any ideas what could cause this and/or how can I troubleshoot it?
The text was updated successfully, but these errors were encountered: