subtle component caching issue when there is a symlink in the path of the repo #2801
Labels
component: ghcide
component: hie-bios
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Uh oh!
There was an error while loading. Please reload this page.
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/pkk4When 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
The text was updated successfully, but these errors were encountered: