-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HLS not starting if no HLS is installed in the system, even with "haskell.manageHLS": "GHCup" and ghcup installed #869
Comments
Heyo, thank you for the bug report! Please post the extension logs with debug info, step 3 from https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems. The extension should work as advertised, no prior installation of HLS is necessary. |
I uninstalled all hls versions using
|
There is no pop-up appearing... |
Ok, can you share your It is located at |
|
Hm, unfortunately, I can't tell then, why the pop up isn't shown :( |
Yeah, I tried replicating in a vm and I didn't find this problem. It must be something very specific about my system... I guess you can close the issue. |
Your environment
Which OS do you use:
Debian stable
Steps to reproduce
In the installation I selected keep normal stack behaviour and I didn't install an hls. I assumed that haskell vscode would manage the installation of hls.
Open a stack haskell project, open a .hs file
Expected behaviour
start hls
Actual behaviour
hls doesn't start
Include debug information
vscode user preferences has
vscode workspace preferences doesn't exist.
Execute in the root of your project the command
haskell-language-server-wrapper --debug .
and paste the logs here (you can find the executable location here):Debug output:
Paste the contents of extension specific log, you can check instructions about how to find it here
Extension log:
I believe the cause of this problem is that haskell vscode requires at least a version of HLS to be installed. After installing at least one hls the error goes away. But the readme almost says the opposite: "so if you want your HLS installations to be managed by the Extension, you will have to follow the installation instructions for GHCup.". This does not say that an HLS has to be installed manually, or during the ghcup installation, and hints at the opposite, that haskell vscode will manage the installation of HLS. I suggest changing the readme to say that at least one hls must be installed when installing ghcup.
The text was updated successfully, but these errors were encountered: