Closed LukaHorvat closed 5 years ago
Have you built the project from the command line before? Looks like its started the build with 2018-12-02 23:32:38.4327394 [ThreadId 13] - setTypecheckedModule: before ghc-mod
, and sometimes it can take a while if it's a clean build.
I did. It builds fine
Looks like hie/ghc-mod is getting stuck then, is there a sample project we can try this out on? You can try generating the hoogle DB to see if that might help
Building the hoogle DB didn't help. Also it doesn't seem project specific. I just made a new project (stack new hietest --bare --resolver=nightly-2018-11-19
) and it doesn't work there either. Logs still stop at before ghc-mod
.
What else can I try?
There is a --vomit
option you can try, it causes ghc-mod to output pretty much everything going on to stderr, which I believe appears in the VS Code output window. Not sure where that will show up in Atom
How can I pass in that flag?
did you install hie via the makefile? GHC 8.6 ships with Cabal-2.4.10, and cabal-helper needs this (and cabal-install) available to use ghc-mod against a project.
The makefile does this on-off install.
question: does the windows make process have this?
I'm on Windows but I used the makefile, not the PowerShell script.
@LukaHorvat In vscode, there should be setting to "Use Custom Hie Wrapper Path". You can point that to a script that runs hie
with --vomit
@wz1000 I've made a hiewrap.bat with hie.exe --vomit %*
as contents and set it as the hie wrapper script. I get an error that the server crashed 5 times and the output log says
[Info - 10:01:48 PM] Connection to server got closed. Server will restart.
'.' is not recognized as an internal or external command,
operable program or batch file.
5 times.
I further noticed, that the test suite dispatcher-test
for HIE does not terminate on GHC 8.6.2, and fails on GHC 8.4.4.
I've been periodically pulling and retrying with the latest master and I'm happy to say that as far as I can tell this is fixed!
I'm going to close this issue, but if it remains broken for others feel free to reopen.
I just built the latest master. Running
hie
in the project directory correctly runs the GHC 8.6 version which matches my project. However, using the Atom integration (or VS code for that matter), doesn't work. Neither autocompletion, or errors, or types on hover. This is the debug log outputIf I'm understanding correctly, the executable simply isn't responding. I can see the process running but it's memory usage is at 20Mb so it probably didn't load anything.