-
Notifications
You must be signed in to change notification settings - Fork 90
Failing to auto-download HLS on macOS #500
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
Comments
I was able to get it to work by running |
@lylek hi! thanks for the bug report, from the report i guess you are on a new mac with the new arm chipset:
Could you confirm that such is your case? thanks! |
Hi @jneira, thanks for your response. I'm using a late-2016 model (Touch Bar) Intel Mac, with Big Sur. Not a new Mac with the Arm chipset, though I will be getting one of those soon. |
Ok, thanks for confirming it, i dont see the output from the client side in the log, could you change the config as described here: https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems to see if we can see something more in the output?. does the extension shows any alert about downloading hls? |
OK, I set the extension config as you requested, uninstalled HLS, and restarted VS Code. I got the output below. I don't see anything in there about downloading.
|
How you installed haskell-language-server-wrapper? using ghcup? if that is the case, could you check you have set a hls version? |
Apparently, yes, because I had used ghcup to install prior versions of hls (1.0.0 and 1.1.0), there was a haskell-language-server-wrapper in my .ghcup directory. When I shut down VS Code, then used ghcup to remove all its versions of hls, then started up VS Code, the Haskell extension downloaded the latest version of HLS, and everything worked fine. So I guess because HLS already had haskell-language-server-wrapper in the path, and it was an old version (1.1.0), the VS Code extension was stuck using that? Here's what I got when I ran haskell-language-server-wrapper-1.1.0 on the command line:
|
Yeah, the extension honours the hls-wrapper/hls in PATH and it even dont try to download the new version as it assumes user will upgrade manually it. If you dont mind i am gonna close this as duplicate of #456, if you want and have the opportunity to contribute feel free to take over #461 or open a new one, addressing the changes or simply create the warning. |
Thanks @jneira, yes, closing this makes sense in light of those other issues. |
When I open a project, I get errors from the extension that it crashed 5 times in the last 3 minutes. Looking at the log, it appears that it's correctly deducing the project GHC version as 8.10.7. Then it's complaining that it can't find any HLS executable. But isn't it supposed to automatically download it? It's a supported version. Do I need to manually download and install it?
Using latest version of the extension, latest VS Code. Have tried restarting VS Code, reinstalling the extension. Here's the log:
The text was updated successfully, but these errors were encountered: