Closed maralorn closed 10 months ago
I tried to falsify my assumptions, and sure enough I could. I’ll update the issue accordingly.
I am starting to doubt my sanity here. I think the issue I am describing exists somehow, though the actual symptom, i.e. the need to regularly restart the language-server I can‘t reproduce anymore …
I have edited the issue accordingly.
Maybe this PR is related if the issue is truly related to symlinks: https://github.com/haskell/haskell-language-server/pull/2359
@maralorn do you still see this?
Oh, phew. I have no clue. I can say that I have developed fine one the directory in question for the last year, so no need to chase ghosts here.
Your environment
Which OS do you use: Nixos Which LSP client (editor/plugin) do you use: VSCodium/coc-nvim Describe your project (alternative: link to the project): various, e.g. https://github.com/maralorn/nix-output-monitor
Steps to reproduce
My
~/git
folder is a symlink (onto another filesystem).I run
haskell-language-server -d
in~/git/nix-output-monitor
I get this log: https://termbin.com/pkk4 When I copy the project to~/nix-output-monitor
I get the expected behavior. When I manually resolve the symlink and run hls in/disk/persist/git/nix-output-monitor
I get the expected behavior.Expected behaviour
hls should load the project normally, which means loading the library component once, when it encounters a file from the library.
Actual behaviour
hls loads the component/cradle new for every file in the library. Crucially files first get listed in
2022-03-26 12:51:30.50850162 [ThreadId 113] DEBUG hls: Known files updated:
but then shortly after a new cradle get’s created for a supposedly known file:Include debug information