-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Helix fails to correctly configure rust analyzer? #12676
Comments
I had issues with esp-generate projects in NeoVim and resolved it by restructuring projects to more standard main.rs under src. Looks like your project is also structured like that based on this in cargo.toml [[bin]] |
The even weirder thing is that neovim works well with my current project structure, what plugins did you use for rust? |
I'm using LazyVim, it comes with |
Me too, even weirder! |
All these configs are so complex and sensitive to exact versions of every tool that no two computers are alike. I can say that in the last week or so I started having strange issues, like go-to-definition (gd) sometimes brings me to an empty file first time with error notifications (which I haven't read yet), second time it usually works, and other issues like that. |
Do you have the latest version of everything lazyvim related? Including neovim of course. Have you checked LazyHealth? |
I updated yesterday LazyVim plugins, not sure if it updates everything (like Mason installations etc.)
Never heard of it, will check it out, thanks. |
This is my project structure:
Cargo.toml:
f1_car/Cargo.toml:
Is there something wrong with it?
|
Summary
This is a sample project: https://github.com/tommasoclini/esp_rust_ws
Helix fails to work completely correctly, for example, when editing from the upper workspace directory, warnings on unused imports do not get shown in the app.
vscode works completely fine instead.
Reproduction Steps
I tried this:
Project layout in rust like this
I expected this to happen:
Language features should work correctly in both platform-agnostic and platform specific code.
Instead, this happened:
Language features do not work well in the app(platform specific part), while vscode and neovim do(neovim uses rustaceanvim to pick up settings from .vscode/settings.json).
Helix log
~/.cache/helix/helix.log
helix.log
Platform
Linux
Terminal Emulator
alacritty
Installation Method
source
Helix Version
helix 25.01.1 (899afad)
The text was updated successfully, but these errors were encountered: