hsdev icon indicating copy to clipboard operation
hsdev copied to clipboard

Unable to load interface for `pkg`

Open iamrecursion opened this issue 8 years ago • 2 comments

I wasn't sure whether I should file this against hsdev or SublimeHaskell, so please let me know if I should refile against the latter.

I've recently been having an issue with hsdev (via SublimeHaskell) reporting that it could not load interfaces for multiple packages. Said packages are available, and managed by stack, so no issues appear when running stack build. However, in the cases where the issue has been appearing, the libraries in question have not been available in cabal. Running cabal install pkgname will prevent the error from occurring.

The hsdev version was built with the system compiler (ghc-8.0.1) as hsdev cannot currently be built with stack (version bounds failures for all recent lts releases, according to stack solver. This seems to imply hsdev is unable to load interfaces from packages in the stack project, but please correct me if I'm wrong.

Are there any expected reasons that hsdev is unable to pick up the stack curated libraries?

Ideally, it would work with stack-managed packages, removing the requirement to maintain multiple unnecessary package versions on the system. It would also be great to be able to install hsdev via stack, removing the need for cabal-install entirely, but that is a separate issue.

iamrecursion avatar Feb 22 '17 17:02 iamrecursion

I'm experiencing the same issue with hsdev-0.2.2.1 built with stack (using extra-deps).

xldenis avatar Mar 21 '17 01:03 xldenis

This seems to be the same problem I opened here: https://github.com/mvoidex/hsdev/issues/59

However, when I try to do a cabal install text to fix the issue described there. Cabal tells me I already have it:

$ cabal install text
Resolving dependencies...
All the requested packages are already installed:
text-1.2.2.1
Use --reinstall if you want to reinstall anyway.

jkeuhlen avatar Apr 21 '17 19:04 jkeuhlen