Closed tonyday567 closed 4 years ago
How are you opening the projects? For stack projects, lsp-root needs to be in the same directory as stack.yaml
.
If you open your lsp-client in some parent directory, we can not properly decide which HIE version to use.
However, if the correct version is used by "accident" (e.g. HIE just happens to be the version you want to use), you can ignore this warning.
Digging in, I discovered that my issue was being driven by https://github.com/emacs-lsp/lsp-haskell/issues/51, and lsp was opening in a parent directory.
Thanks very much for the hint!
Closing.
I am using hie via spacemacs and it's working for some projects but not for others.
lsp-log:
The output in
hie-wrapper --debug
looks fine for the project that isn't working at the emacs level, and very similar to the ones that are working.I am convinced that I have the same ghc versions across all projects. I use stack and only have complied projects with 8.8.3 (lts-15.6) after a clean install a few weeks ago.
Any advice how to go about debugging this would be appreciated.