simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 159 forks source link

Client exited with code 1 #377

Closed Ziothh closed 1 year ago

Ziothh commented 1 year ago

Hi I'm really enjoying the tooling you've built.

As of late the rust tools log this error when entering a .rs file:

Screenshot 2023-05-02 at 22 40 33

This causes the whole toolchain to stop working. I can't find the problem in my config so out of desperation I'm opening this issue. Any idea what I'm doing wrong?

Thanks in advance!

I'm using NvChad. My config in ~/.config/nvim/lua/custom/: https://github.com/Ziothh/nvim/tree/main

utkarshgupta137 commented 1 year ago

You should look at the logs at ~/.local/state/nvim/lsp.log.

Ziothh commented 1 year ago

Thanks for the tip @utkarshgupta137! I have installed rust-analyzer with Mason. It's fixed by running rustup component add rust-analyzer.

The error being logged: [ERROR][2023-05-02 22:40:20] .../vim/lsp/rpc.lua:733 "rpc" "rust-analyzer" "stderr" "'rust-analyzer' is not installed for the toolchain 'stable-aarch64-apple-darwin'"