flycheck / flycheck-rust

Better Rust/Cargo support for Flycheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

freewebwithme opened this issue · comments

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?

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.