atsky / haskell-idea-plugin

IntelliJ IDEA plugin for Haskell
Apache License 2.0
201 stars 21 forks source link

Can't read cabal package list. #73

Open thyming opened 9 years ago

thyming commented 9 years ago

Getting an error message when i search for a package in the cabal window: "Can't read cabal package list."

I traced this down to the plugin looking in the wrong location for the repo cache. The plugin is assuming that osx distributions of cabal will have their repo cache in $CABAL/repo-cache when, for at least my version of cabal, this isn't the case and it's in $CABAL/packages.

As a workaround, I created a link from repo-cache to packages and that works fine for the time being.

0culus commented 9 years ago

@thyming how did you install Haskell Platform? I've been slowly getting things to work on my mac. I abandoned the haskell platform via macports and just installed it via the installer. My repocache is in $HOME/Library/Haskell, not $HOME/.cabal/packages. However, the plugin is still unable to read the cabal package list.

0culus commented 9 years ago

Ooo, I actually fixed it just now. Had to put the cabal data path as $HOME/Library/Haskell.