-
Notifications
You must be signed in to change notification settings - Fork 206
haskell-lsp startup blocked #1133
Comments
On an abritrary project, I do not have this problem. Can you maybe share your project via git? Can you show the output of hie itself, e.g. from the vscode console? (click bottom left -> in the opened window press "Output" -> get output of "Haskell-HIE"). |
To add to what was said above, |
Thans for replay. I use following command creating the project, which is in https://github.com/ZichaoNickFox/first-project
The log of "Haskell HIE(first-project)" contains:
All of my apps installed in driver C, does administator authority make failure happen? The log of Log(Extension Host) contains:
use "rename" there is a processing bar flow from left to right in the top of the editor., with no changing in the log console. so does "haskell : Show type" and other commands. |
HIE does not seem to find your stack executable which seems weird. |
Can you try to execute |
I can reproduce this regularly with any large project on a Nix system. HIE just blocks on startup, and nothing really helps it start up post that. The strange thing is, given I'm using emacs, I see no output after:
But if I terminate emacs, some output pops up:
Given that I don't understand HIE deeply enough, I cannot say where this breaks. Edit 1:Another thing that I notice that going to the project dir. in the cli and executing
However, when I pass it the flags:
I then see the logs that seems to suggest hie hangs:
Edit 2:It seems to me that the issue is related to lsp-haskell and the lack of support for emacs native-json that was introduced in emacs-27. I could not reproduce this issue after downgrading emacs (all thanks to nixos for making this painless). And indeed, there seems to be an issue open: emacs-lsp/lsp-haskell#48 that could be the reason behind this. It also makes sense overall, I believe HIE needs some data-exchange between itself and emacs to start up, which doesn't seem to happen and the process looks "hung". I'm not sure if my assumption here is correct (clarifications will be helpful). |
@ZichaoNickFox this could be fixed by the new hie architecture already in master, feel free to reopen if you continue experiencing the issue with master |
Hi.
I blocked installing hie for one week. It seems installed successful, but when "go to declearation" or "rename", nothing happend.
environment:
windows 10
vscode
ghc 8.4.4
hie 0.7.0.0
Because of nothing happening. I run hie-wrapper in powershell. The log is shown as follow.
I think haskell-lsp caused this stuck. After stack install haskell-lsp, and run lsp-hello.exe, nothing changed shown in tmp/lsp-hello.log
Please help me, thanks!
The text was updated successfully, but these errors were encountered: