simrat39 / rust-tools.nvim

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

cargo's toolchain uses default instead of overridden toolchain of project #415

Open darklyspaced opened 11 months ago

darklyspaced commented 11 months ago

when invoked from a dir for which the default toolchain has been overridden using rustup override set stable, the default toolchain is still used for the cargo check.

i'm pretty sure that this issue lies in rust-tools itself and not rust-analyzer, though i might be mistaken. idk how the toolchain is chosen. if it lies in rust-analyzer itself, i'll create another issue up the chain.

jason-shen commented 8 months ago

i am on the same boat here, if the root of the project has a rust-toolchain file, i get a rust-analyzer: proc 'main' not expaned: proc macro crate is missing dylib, but if i remove that file, it seems good, wonder if there is a fix for this