idea-sbt-plugin
idea-sbt-plugin copied to clipboard
Cannot run program "git": error=2
I get this error when running the intellij sbt Console but not from the the CLI. Is there a problem running system commands with the idea plug-in?
[error] java.io.IOException: Cannot run program "git": error=2, No such file or directory [error] Use 'last' for the full log.
I get the problem too
This is related to https://github.com/orfjackal/idea-sbt-plugin/issues/83
Unfortunately there is no way to set the PATH variable for the idea-sbt-plugin, which means that in most cases it pretty much never picks up any executables (and in this case it also includes). I am having the same issue in different situation
As a workaround, you can set environment variables for IntelliJ itself, which will be inherited.
On Mac, I've edited /private/etc/paths
to add /usr/local/bin
. (Use at your own risk though.)
More info on environment variables for Mac.
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-BCIJIJBH
On Windows its much easier to configure PATH globally.
Hi, in my case it doesn't seem to be a PATH issue, since the directory is taken ok: my error is "Cannot run program "git" (in directory "/usr/local/bin"): error=2, No such file or directory". Of course /usr/local/bin/git exists and is executable.
I got the problem too. No way yet