-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
hx --health rust-analyzer checked, but in helix nothing works for rust language support #6400
Comments
Note: for anyone else, don't use helix on the Note: helix is fine for syntax and editing, just no |
"nothing works for rust language support" syntax highlighting? goto definition?
rust-analyzer specifically can take up to 10-30s easily to fully index the project. rust-analyzer also needs to be in a |
I think this has to do with the lsp workspaces, as rustlings has multiple cargo projects in one git repository. Should be fixed by #5748 |
I think I just had this issue, helix started working when I added rust-analyzer to my .local/bin which is in my |
Rustlings with rust-analyzer is working fine here, it should work for you. I am using the version of rust-analyzer supplied with the rust toolchain, I installed it all like this: bin_install_folder=/usr/local/bin
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
rustup component add rust-analyzer
[ ! -e $bin_install_folder/rust-analyzer ] && sudo ln -s "$(rustup which rust-analyzer)" $bin_install_folder/rust-analyzer # https://github.com/rust-lang/rustup/pull/3022 EDIT: I just checked, from the next version of rustup you won't need to make a symlink rust-lang/rustup#3022 (comment) |
Hi @archseer, There were 2 issues for me. The first is I am not coming from being a recent VIM / NEOVIM user who has seen the rust-analyzer and lsp's working in editor. I didn't know what to look for. Hard to know other than the health check. The docs could help here with examples of what to look for. Hopefully this will make its way someday, certainly this issue could help anyone looking. I finally noticed the lower corner spinner and messages after small config update to show it. I last heavily used VI in the 90's on RS6000 machines IBM AIX. The second issue was |
I'll close this as the problems are resolved. If you have specific ideas for docs improvements, feel free to open issues/PRs for those or edit the Wiki pages |
Summary
hx --health rust-analyzer checked, but in helix nothing works for rust language support
Reproduction Steps
Helix log
~/.cache/helix/helix.log
No Log is generated, finally found it in AppData/Local/helix
Platform
Windows
Terminal Emulator
Terminal Preview
Helix Version
helix 22.08 (ee94031)
The text was updated successfully, but these errors were encountered: