nim-lang / nim-mode

An emacs major mode for the Nim programming language
137 stars 46 forks source link

Setting the Nim compiler path? #221

Closed ghost closed 5 years ago

ghost commented 5 years ago

And describe your problem: There seem to be some issues with the path. I use nim-vm, and all my nim executables (nim and nimsuggest) are installed to ~/.nimvm/bin, which is on my path. I can call both executables from a bash shell, but when attempting to use them from nim-mode, I get the following error message:

nim-compile started at Sun Dec 16 21:38:35

nim c -r --verbosity\:0 --hint\[Processing\]\:off --excessiveStackTrace\:on /home/tay/nimtest/test.nim
/bin/bash: nim: command not found

I know I can change the path to nimsuggest with (setq nimsuggest-path "path/to/nimsuggest"), but is there a way to set the path to the nim binary itself?

ghost commented 5 years ago

Apparently emacs doesn't execute a .bashrc at all, my bad!