Context:
I run a Windows machine, and I've installed the Haskell Toolchain using GHCup. Initially, I selected "Y" to all the options mentioned during setup. Stack, Cabal, ghc (8.10.7 - recommended) worked and were/are on path (installation reference link attached at the end).
Sample Project Structure ("stack new project"):
Problem:
The Haskell Language Server Extension does not give me Intellisense. It did, for a brief moment after my first install, but never again.
Things I've tried that did not work:
Letting VS Code manage HLS via GHCup, to upgrade whenever, but to no avail.
Tried reinstalling everything, but that hasn't worked either.
Using the latest/same version of ghc that came with ghcup stack. (stack ghc -- -version = 9.0.2, ghc --version = 9.0.2)
Note: I did do the following commands too, with varying combinations (but in some logically dependent order)
- ghcup install ghc 9.0.2 (and latest)
- ghcup unset ghc 8.10.7
- ghcup set ghc 9.0.2 (and latest)
- ghcup rm ghc 8.10.7
All I end up getting is this cryptic message (shown below. "testing-p" is the project name).
Installation Reference:
https://betterprogramming.pub/haskell-vs-code-setup-in-2021-6267cc991551