I just started learning Rust and I want to use Sublime as my editor. I run Linux.
- I write a simple Hello world program
- Then press Ctrl+B and then choose Rust - Build & Run
I get an error message:
bash: rustc: Command not found
When I open a terminal and type in “env” I can see that my .bashrc correctly exported the Path to "/home/username/.cargo/bin <---- rustc is in there and works from a terminal.
So why the hell doesn’t Sublime just auto import my PATH? This is super annoying. Why would anyone not want his PATH in his programming environment.
Then I tried looking for how to do it manually, so I added this to my settings file:
But I’m getting the same error message. WHY ??? This is so frustrating. I just want the Path to be valid WITHIN Sublime as well. I closed and started Sublime. But still no effect.
Please somebody let me know: HOW CAN I DO THIS?
I don’t want to have some project file or mess around with build systems. I just want Sublime to use my global PATH variable.
(And no I dont start Sublime from the terminal but from a *.desktop file.)