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

IntelliJ 14.0.2 on Mac Yosemite: "cannot run cabal"

Open mickeyvip opened this issue 11 years ago • 4 comments

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.

mickeyvip avatar Dec 12 '14 14:12 mickeyvip

You have to provide path to cabal executable in settings.

atsky avatar Dec 13 '14 09:12 atsky

It does work, but I think it worked with just cabal there, not the whole path.

mickeyvip avatar Dec 13 '14 09:12 mickeyvip

On mac if you have different PATH variable values when you start Application from Launchpad or when you start terminal.

atsky avatar Dec 13 '14 10:12 atsky

This message on mac is confusing. I'll change it.

atsky avatar Dec 13 '14 10:12 atsky