IntelliJ 14.0.2 on Mac Yosemite: "cannot run cabal"
I have upgraded the IntelliJ to 14.0.2, installed plugin v0.4.1 beta.
Now compiling previously working project fails to compile.
Openeing the project show this message:
Cabal not found Cabal executable not found. Please add it to PATH or specify path in settings.
I have cabal on my path:
$echo $PATH
/Users/michaelv/Library/Haskell/bin;
$ wich cabal
/Users/michaelv/Library/Haskell/bin/cabal
Trying to compile:
Cannot run program "cabal" (in directory "/Users/michaelv/Projects/Haskell/BeginningHaskell"): error=2, No such file or directory
Actually the same is happening when I open cabal pane and click refresh:
IOException: Cannot run program "cabal" (in directory "/Users/michaelv/Projects/Haskell/BeginningHaskell"): error=2, No such file or directory
Setting the cabal executable to /Users/michaelv/Library/Haskell/bin/cabal seems to work, though.
You have to provide path to cabal executable in settings.
It does work, but I think it worked with just cabal there, not the whole path.
On mac if you have different PATH variable values when you start Application from Launchpad or when you start terminal.
This message on mac is confusing. I'll change it.