Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Can not load HIE exe component with stack #1608

Open
fendor opened this issue Jan 26, 2020 · 2 comments
Open

Can not load HIE exe component with stack #1608

fendor opened this issue Jan 26, 2020 · 2 comments

Comments

@fendor
Copy link
Collaborator

fendor commented Jan 26, 2020

Open Haskell IDE Engine app/MainHie.hs with the implicit stack cradle and an error should be produced, such as cannot satisfy -packge haskell-ide-engine-<some numbers>.

cc @Gurkenglas

@jneira
Copy link
Member

jneira commented Mar 6, 2020

The steps to reproduce seems to be (from #1682):
In a simple stack based project without explicit hie.yaml with a lib, an exe and a test component:

  • Delete .stack-work and $(stack path --snapshot-install-root)
  • Open in vscode Main.hs (main executable module of the exe component) ---> error
  • stack build
  • Reopen vscode in the Main.hs file --> works

Another workaround is use an explicit hie.yaml for stack following the README instructions.

@jneira
Copy link
Member

jneira commented Mar 8, 2020

It seems that with the previous workaround the error could arise again so a more stable one would be use a explicit hie.yaml specific for stack, folowwing: https://github.com/haskell/haskell-ide-engine#project-configuration

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants