Closed arademaker closed 1 year ago
It is related to https://github.com/haskell/haskell-language-server/issues/3114
More details
VS Code started just fine. Inspecting the processes I found
% ps aux | grep has
ar 50967 0.0 0.0 33588072 192 s002 R+ 3:27PM 0:00.00 grep has
ar 50445 0.0 3.4 1108409952 571204 ?? Ss 3:26PM 0:01.45 /Users/ar/.ghcup/hls/1.7.0.0/lib/haskell-language-server-1.7.0.0/bin//haskell-language-server-8.10.7 --lsp -d -l /var/folders/b_/7nbv248s2nq019mcx58xrrb80000gn/T/hls.log
ar 48413 0.0 0.3 1107893416 44664 ?? S 3:21PM 0:01.62 /Users/ar/.ghcup/hls/1.7.0.0/lib/haskell-language-server-1.7.0.0/bin//haskell-language-server-9.0.2 --lsp
So VS Code found the right version of HLS
/Users/ar/.ghcup/hls/1.7.0.0/lib/haskell-language-server-1.7.0.0/bin//haskell-language-server-9.0.2 --lsp
But Emacs somehow is ignoring the information from my project (that uses GHC 9.0.2) and it is calling HLS 8.10.7:
/Users/ar/.ghcup/hls/1.7.0.0/lib/haskell-language-server-1.7.0.0/bin//haskell-language-server-8.10.7 --lsp -d -l /var/folders/b_/7nbv248s2nq019mcx58xrrb80000gn/T/hls.log
I believe we can close now given my last comment in https://github.com/haskell/haskell-language-server/issues/3114#issuecomment-1221349783.
If I call the haskell-language-server-wrapper from the command line in the main folder of my project (created with stack), I get the outputs below. Not sure what the
for "/Users/ar/Temp/lixo/a"
means, but it seems to work as expected.But, in the
*lsp-haskell::stderr*
buffer, I have a different result. Emacs found another version of GHC.. Thecurrent directory
was wrongly associated with the parent folder of the project folder... How can I fix it? What am I missing?Command line: