Emacs is ignoring my path when it runs a compile command

后端 未结 8 1677
盖世英雄少女心
盖世英雄少女心 2020-12-05 11:24

I\'m trying to get a compile command (rake cucumber) to run with a specific ruby version on my Mac OS X system, I use rvm to do this currently in the terminal. My ~/.MacOSX/

8条回答
  •  囚心锁ツ
    2020-12-05 12:16

    It worked for me with two things.

    First I followed sanityinc advice

    An improved and modified version of the code snippet is now published as elisp library called exec-path-from-shell; installable packages are available in Marmalade and Melpa

    I still had a problem with compile commands. Valko Sipuli is right there was a problem involving path_helper.

    I commented the corresponding line in /etc/profile and it did not help. Problem still there. I don't use bash but zsh. Digging a little I found /etc/zshenv. This file also calls path_helper.

    After commenting the path_helper section in /etc/zshenv my path is finally correct

提交回复
热议问题