Description
Your environment
Output of haskell-language-server --probe-tools
or haskell-language-server-wrapper --probe-tools
:
I don't know. Neither of these executables is on my PATH, and I don't know where they are. HLS was installed by VS Code. I'm pretty sure I saw a notification recently that HLS was being upgraded to 1.5.0. Happy to give you more information if told how to retrieve the information.
Which OS do you use: MacOS
Which lsp-client do you use: VS Code
Describe your project (alternative: link to the project): GHC
Steps to reproduce
Open an editor to a GHC source file, and see that nothing from HLS works.
Expected behaviour
HLS should do stuff, like allow me to jump to a definition, or give me the type of something by pointing at it.
Actual behaviour
Nothing. It's like HLS is off. When I looked at the Problems pane, I briefly saw a message saying (I think) that ghcide was compiled against GHC 8.10.7 while GHC 8.10.5 is the one installed. I can't tell you the error message exactly because it disappeared while I was looking at it. I don't know how to get it back. I have nothing called ghcide
in my PATH.
Include debug information
Execute in the root of your project the command haskell-language-server --debug .
and paste the logs here:
I don't have haskell-language-server
in my PATH, and I don't know where it is, so I can't do this. :(
Paste the logs from the lsp-client, e.g. for VS Code:
I don't know how to do this. That link did not contain any instructions for how to produce logs for lsp-client.
Other background info
In other work, I did change the GHC in my path several times today, including GHC 8.10.7 for a little while. With GHC 8.10.7, I installed the newest cabal-install. (I would have used GHC 8.10.5, my main version of GHC these days, but I was caught by haskell/network#518, which required using a higher GHC.) But I did nothing with anything called ghcide.
HLS appears to work on non-GHC projects. The GHC tree I'm working in was built bootstrapping from GHC 8.10.5.
I suppose I could just upgrade to GHC 8.10.7. But I have a bunch of trees bootstrapped from GHC 8.10.5, and so doing this would require quite a bit of rebuilding.
Any advice about how to get myself unstuck -- or, even better, how I can learn more about what's going on -- is appreciated. Thanks!