Skip to content

Fails to load HLS 0.9.0 for GHC 8.10.4 on Darwin #344

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

Closed
lylek opened this issue Feb 16, 2021 · 6 comments
Closed

Fails to load HLS 0.9.0 for GHC 8.10.4 on Darwin #344

lylek opened this issue Feb 16, 2021 · 6 comments

Comments

@lylek
Copy link

lylek commented Feb 16, 2021

Until recently I was using GHC 8.10.3 on macOS 10.15 with HLS 0.9.0 in VS Code and everything was fine. I upgraded to GHC 8.10.4 and now I get the error:

"haskell-language-server 0.9.0 for GHC 8.10.4 is not available on Darwin"

I checked the repo for HLS and it says that 0.9.0 supports GHC 8.10.4. I checked the releases page and there is a pre-built binary for macOS with HLS 0.9.0. Which in fact, I was already using.

So, why is it telling me that I can't use it with GHC 8.10.4?

According to the VS Code Haskell extension docs, it only supports up to GHC 8.10.2, which I know isn't right either, since I was using it with 8.10.3.

So, is there some hidden list somewhere that needs to be updated? Is there some way I can get around this in VS Code and force it to use HLS 0.9.0 and ignore the error?

Thanks for your help.

@lylek lylek changed the title Fails to load HLS 0.9.0 for GHC 8.10.4 Fails to load HLS 0.9.0 for GHC 8.10.4 on Darwin Feb 16, 2021
@jneira
Copy link
Member

jneira commented Feb 16, 2021

Hi, thanks for your bug report. I am afraid that for each version of hls (0.9.0 f.e.) we need a different executable for each supported ghc version. We recently added support for ghc-8.10.4 in hls and only left make a release to generate the binaries this extension downloads.
And yeah we already suppot 8.10.3 since some time ago, docs are outdated

@lylek
Copy link
Author

lylek commented Feb 16, 2021

OK, thanks for the explanation. How does the extension figure out whether there's an executable available? Is there someplace I could check myself to see whether there's a binary for a particular combination? That way I could check that instead of editing my stack.yaml and recompiling and loading VS Code and hoping for the best.

I'm on a development team and we have shifted to GHC 8.10.4. I'm the only one using VS Code so nobody else has a problem with the upgrade and HLS in their editors. I have to revert to 8.10.3 until the binary is available.

@jneira
Copy link
Member

jneira commented Feb 17, 2021

uh, sorry to hear that, I forgot to add some links in my comment:

will update docs to link to hls releases firectly

@RodriguezLucha
Copy link

OK, thanks for the explanation. How does the extension figure out whether there's an executable available? Is there someplace I could check myself to see whether there's a binary for a particular combination? That way I could check that instead of editing my stack.yaml and recompiling and loading VS Code and hoping for the best.

I'm on a development team and we have shifted to GHC 8.10.4. I'm the only one using VS Code so nobody else has a problem with the upgrade and HLS in their editors. I have to revert to 8.10.3 until the binary is available.

What is the process for downgrading to 8.10.3? Just getting started with Haskell was hoping to use all the nice VSCode features..

@lylek
Copy link
Author

lylek commented Feb 24, 2021

What is the process for downgrading to 8.10.3? Just getting started with Haskell was hoping to use all the nice VSCode features..

If you're using Stack, change your resolver version from lts-17.4 to lts-17.2.

@jneira
Copy link
Member

jneira commented Feb 25, 2021

haskell-language-server-1.0 with ghc-8.10.4 has been released so the extension should start downloading it auto, thanks for the patience!

@jneira jneira closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants