Different behavior between launch stack exec hie and hie directly #87
Comments
Is this against master? |
Yep |
Ok, will have a look. Have been tied up this weekend |
I can reproduce this. Interestingly enough it also crashes for me when I don’t use This exception seems to be thrown by the |
I know ghc-mod and stack are not always friends at the moment at runtime, On Sun, Nov 22, 2015 at 7:35 PM, Moritz Kiefer notifications@github.com
|
This may be pointing to a potential problem lying ahead, namely making sure the compiler, project and tools all agree on the versions of things to use. |
Are you running ghc-mod as an executable now or using the library? |
Library |
It's just a question of GHC_PACKAGE_PATH. If I set it as the value that stack uses, then things work. Of course, this begs the question, how should we handle this? Should the client IDE pass that value? Should we try to gather it ourselves from the path of the project (using .cabal-sandbox or stack.yml) |
Imho we should figure that out ourselves. This is something every IDE needs so leaving it up to the IDE only results in a lot of different implementations of the same thing. |
Agree, but it may depend on the O/S as well as what environment the In general I would expect hie to be installed as a dev-machine level tool, So running it inside its own .stack-work may be an unusual/dev-only On Sun, Nov 22, 2015 at 11:14 PM, Moritz Kiefer notifications@github.com
|
So the status: ghc-mod requires the working directory to be the root directory of the project, period. You can run |
Thanks. We need this functionality, to be able to work on different projects within On Mon, Nov 23, 2015 at 1:03 AM, JP Moresmau notifications@github.com
|
via stack:
This seems ok.
Via the executable directly:
What does stack exec do that calling the executable directly doesn't do? Surely calling the executable directly should also work.
The text was updated successfully, but these errors were encountered: