I don't know what is happening to my rust-analyzer #857
Replies: 2 comments
-
|
Hey 👋 I'd recommend you compare your rust-analyzer configuration ( Also, see if you can reproduce it with the minimal config provided with this repo (see the troubleshooting section in the readme).
|
Beta Was this translation helpful? Give feedback.
-
|
Hey 👋! I will try to create a project that reproduces this issue. I did try to configure it with mini.nvim to check that if I removed every other plugin, it would remain broken. It is still broken.... So I don't think is a conflict with other plugins. I did try every single configuration for the rust-analyzer as I could think of. I got the same configuration used by default on VSCo**. Alas, it did not work. I suspect it has to do with the fact that we are heavily using submodule at my work. I can't share the actual code where the problem is, since it is work code. But thanks for the offer. I will try to create a project that reproduces it. See if I nest submodules and use Diesel with it, if I can get it to break. Will report back when I have done so. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
:h rustaceanvim.Description
I'm at my wits' end. I have been using nvim for years now and I've been coding in rust for work for the last 6 months.
I love what rustacean.nvim has to offer and I've been happily using it for a long time.
But I cannot find a solution to my problem and I don't even know what is wrong. I assure you I looked everywhere.
But alas, if I can't find a solution to this I can't be productive at work.
My problem is that rust-analyzer's lsp simply does not work with some functions.
Granted, these are usually related to
dieseland I've read everywhere thatdieselis notorious for having issues withrust-analyzerdue to it's heavy usage of macros.But here is what my rust code looks like:

Now, all of these errors are not truly errors. And I was shocked a few months ago when I learned that my co-worker, who is using VSCo** does not have these LSP issues.
So I tried using JetBrains IDE RustRover, and well:

It works, no problem.
What can I do to fix this? I have no idea.
This is my last ditch attempt to fix it by asking if someone has a clue. Help me not move from nvim, I beg you.
BTW: this is not a rustacean.nvim issue. This is an LSP issue. I have ditched rustacean.nvim to try and fix it. But it has persisted.
I did not know where else to post this since there isn't a nvim rust community online that I'm aware of.
I assure you I have tried every rust-analyzer config under the sun, and still the problems persist.
Example Code
...Neovim version (nvim -v)
v0.11.4
Operating system/version
macOS 15.6.1
Output of :checkhealth rustaceanvim
Beta Was this translation helpful? Give feedback.
All reactions