git-lfs command not found webstorm Follow
I use WebStorm and after adding git-lfs I started to get this error:
Error updating changes: git-lfs filter-process: git-lfs: command not found the remote end hung up unexpectedly
It prevents git updates. Lfs is working fine in my terminal.
Please sign in to leave a comment.
what OS are you on? Does it work if you start the IDE from terminal?
MacOS. It works fine if i start IDE from terminal (no errors)
I see. Looks like
git-lfs
is not on your$PATH
when running the IDE from Finder, etc.On MacOSX the environment variables differ between GUI applications and within the terminal. Terminal environment is only available to applications started from terminal. To solve this problem, WebStorm tries to load terminal environment by executing the following command on startup:
<your shell> -l -i -c '/Applications/webstorm.app/bin/printenv.py'
Seems this command can't retrieve all needed stuff in your case - thus the issue.
Some links you may find useful: http://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks, http://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications.. The problem is that the way to define system-wide environment variables on Mac changes from one version to another (even minor system updates may break your environment)