Your environment
Which OS do you use:
Ubuntu
Which LSP client (editor/plugin) do you use:
VS code + vscode-haskell
Describe your project (alternative: link to the project):
*.cabal and stack file
Steps to reproduce
Opening two haskell projects on vs-code causes the hls to fail on the second project. I can reproduce by opening one project. Then opening a new vscode window and opening another haskell project.
Expected behaviour
hls should work on both projects
Actual behaviour
hls fails to start on the second project. Specifically the haskell extension fails to find ghcup for some reason. Below is the error message.
Project requires GHCup but it isn't installed
Include debug information
haskell-language-server version: 1.7.0.0 (GHC: 9.2.2) (PATH: /home/twitu/.ghcup/hls/1.7.0.0/lib/haskell-language-server-1.7.0.0/bin/haskell-language-server-wrapper)
Tool versions found on the $PATH
cabal: 3.6.2.0
stack: 2.7.5
ghc: 8.10.7
Happy to share anything else needed.