haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

Can not load HIE exe component with stack #1608

Open fendor opened 4 years ago

fendor commented 4 years ago

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 commented 4 years ago

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:

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

jneira commented 4 years ago

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