Closed MangoIV closed 5 months ago
Hey Mango :smile:
I tried the following steps, and couldn't reproduce:
mkdir /tmp/foo
cd /tmp/foo
nix shell "nixpkgs#haskell-language-server"
nvim Test.hs
The LSP client started up normally and added a code lens suggesting a module name.
in lsp.log it prints some stuff from .../lean which is a completely unrelated directory...
Do you have any cabal or stack project files in a parent directory? If so, then haskell-tools is probably picking them up as the project root.
Thank you! Well good it’s not a bug and again just me. Wrt the project files I don’t think so. I also have this on two systems. Perhaps it’s related to my setup. Again I’m too stupid to debug this :3
I’ll see what goes on. Thanks for testing this :)
Let me know if you find anything :smile:
Alright <3
Neovim version (nvim -v)
v0.9.5
Operating system/version
nixos 24.05
Output of :checkhealth haskell-tools
How to reproduce the issue
just have a haskell file, but no cabal or stack projct
Expected behaviour
hls starts as normal
Actual behaviour
hls does fishy stuff. the log just shows "no project root found" warning but in lsp.log it prints some stuff from
.../lean
which is a completely unrelated directory...Log files
No response
The minimal config used to reproduce this issue.