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

Can't read cabal package list.

Open thyming opened this issue 10 years ago • 2 comments

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.

thyming avatar Jan 03 '15 02:01 thyming

@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 avatar Jun 18 '15 00:06 0culus

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

0culus avatar Jun 18 '15 00:06 0culus