Closed Vic-M closed 1 year ago
Turns out it was the nix-env-selector extension not working properly, switching to direnv fixed the issue with:
{
"haskell.manageHLS": "PATH",
"direnv.path.executable": "/home/basic/.nix-profile/bin/direnv"
}
Thanks for sharing the solution 👍 Maybe we should consider switching from nix-env-selector to direnv as the suggested approach in our documentation
@Vic-M can you please give more info on how you solved it?
Here are the steps I've done:
which direnv
and copy directorydirenv.path.executable
But on load I still see
I've removed some weirdness on my computer, and it seems to work for me now. So not sure, if it's the above steps, or that software that blocked stuff for me.
I'm running vscode and trying to get HLS working with a basic ihp-new install. My setup is a windows host connecting through vscode's remote ssh extension into a CentOS 9 VM.
I'm following https://ihp.digitallyinduced.com/Guide/editors.html#using-ihp-with-visual-studio-code-vscode and I've set the nix-env environement in vscode's settings.json:
However, when running HLS, I get:
If I manually set the HLS path with
"haskell.serverExecutablePath": "/nix/store/232vdhix5bj14zgayv0i7ijhxg0b7j5h-ghc-9.2.4-with-packages/bin/haskell-language-server"
, I instead get:Is there some dependency I'm missing that ihp-new doesn't install?