I'm using this cargo mode from my remote buffer. It seems it always finds cargo command from /sbin/cargo instead of my PATH.
/sbin/cargo clippy
/bin/sh: 2: /sbin/cargo: not found
Comint exited abnormally with code 127 at Thu Sep 26 15:27:26, duration 0.60 s
I used to have similar issue with eglot finding rust-analyzer but when add (add-to-list 'tramp-remote-path 'tramp-own-remote-path) it becomes fine. I think cargo-mode should also respect this path settings from tramp when calling cargo binary.
Thank you for building this mode!
I'm using this cargo mode from my remote buffer. It seems it always finds
cargo
command from/sbin/cargo
instead of myPATH
.I used to have similar issue with eglot finding
rust-analyzer
but when add(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
it becomes fine. I think cargo-mode should also respect this path settings from tramp when calling cargo binary.