flycheck / flycheck-rust

Better Rust/Cargo support for Flycheck
GNU General Public License v3.0
121 stars 19 forks source link

Error in rustic-flycheck-setup: (user-error "flycheck-rust cannot find ‘cargo’. Please make sure that cargo is installed and on your PATH. #84

Open freewebwithme opened 2 years ago

freewebwithme commented 2 years ago

Hi I am using doom emacs and my configuration is simple

(rust +lsp) in init.el

(use-package! rustic)

that is it, But i got an error Error in rustic-flycheck-setup: (user-error "flycheck-rust cannot find ‘cargo’. Please make sure that cargo is installed and on your PATH.

how can I solve this problem?

silentbicycle commented 2 years ago

Confirm that the cargo executable is in the path -- emacs checks the directories in exec-path, which may differ from your normal shell $PATH, so it's possible you installed it but emacs isn't finding it.