haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

Improve first-time usage debugging

Open alanz opened this issue 4 years ago • 0 comments

Consider logging the absolute path for hie-wrapper, and the contents of the $PATH if startup fails for not finding the replacement exe.

[20:13:35] 18<sim59018> I'm getting this output: https://paste.debian.net/1134357/ and nothing is working. I'm trying on standalone file.
[20:14:46] 18<sim59018> When looking at the log, even though I write the .hs file, there's no output from hie-wrapper... Like if LanguageClient was not sending queries to hie-wrapper.
[20:14:52] 20<alanz>30 sim590, you need to have one of hie-8.6.5, hie-8.6, hie in your path, visible to the IDE starting up the server. Ie in the same place that hie wrappe rlives
[20:15:21] 20<alanz>30 the wrapper starts up and then replaces itself with one of those exes. But it cant find them, so bails
[20:15:38] 20<alanz>30 which is what your paste says, at the end
[20:16:36] 18<sim59018> Weird because I have the files there: https://i.imgur.com/CydNcZZ.png
[20:16:42] 18<sim59018> They're all next to each other.
[20:17:29] 20<alanz>30 are you sure that is the version you are running?
[20:17:41] 20<alanz>30 not one installed by say stack, or nix, or some other?
[20:18:26] 20<alanz>30 jneira[m], we should consider giving the full absolute path to the hie-wrapper exe when we start up.
[20:18:41] 20<alanz>30 and if we cant find the exe, perhaps dump the $PATH
[20:19:00] 20<alanz>30 "giving" == print it out in the welcome log message
[20:19:09] 18<sim59018> OK, I found the issue. That's what you said. It's the PATH.
[20:20:08] 20<alanz>30 great

alanz avatar Mar 10 '20 20:03 alanz