idea-sbt-plugin icon indicating copy to clipboard operation
idea-sbt-plugin copied to clipboard

Cannot run program "git": error=2

Open raicesg opened this issue 11 years ago • 5 comments

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.

raicesg avatar Jul 10 '13 15:07 raicesg

I get the problem too

lyShuai avatar Jul 20 '13 13:07 lyShuai

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

mdedetrich avatar Oct 15 '13 06:10 mdedetrich

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.

retronym avatar Oct 17 '13 11:10 retronym

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.

nmarasoiu avatar Dec 14 '17 15:12 nmarasoiu

I got the problem too. No way yet

JerryCui avatar Dec 15 '17 02:12 JerryCui