-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
This HLS binary does not support Template Haskell #2666
Comments
As per a related reddit post this seems to be nonspecific to VSCode. Perhaps an Issue to move to the main HLS repo? |
Hello, thank you for the bug report! Yeah, this issue is not VSCode specific, I am going to transfer it so more people notice it :) |
@why-not-try-calmer hi, thanks for the report.
|
@jneira @fendor Thank you very much for your quick and helpful replies. I have two more questions about VSCode, I hope it's not too late to post them here. As a Linux guy I don't mind compiling stuff but I am a bit concerned about the UX here. I mean, I am using HLS via a VSCode precisely because I want to make the list of things I need to micromanage shorter, not longer. Is there an option to allow VSCode users to not have to worry about this at all, or at least, make the alert more actionable, as in "Hello, you'll need to run <stack build ... | cabal install ...> if you want to fix HLS and make this alert disappear." ? Also a related but more general question: does that mean that the user is expected to rebuild from source with every update to their HLS VSCode extension? |
Agree with you but the build instructions are complex enough (specially if you want to use more than one ghc version) to not fit an alert i am afraid. You could use cabal, stack or nix or other build system. Now it has a link where you can consult the rationale and instructions: Screen.Recording.2021-12-11.at.20.47.03.mov
vscode uses a client/server design so update the extension and the server (hls) are separated things. |
@why-not-try-calmer if you dont mind i am gonna close this one as we have a general issue about (the mentioned #2659) |
I don't mind and your reply makes sense. Thanks! |
Oh if I may @jneira perhaps one very last thing: if I am
I am not supposed to find any HLS binary on my system except for e.g. In which case running Does this entail that manually building + removing leftovers is what I should expect to be doing with every new release from HLS, under the assumptions above? (Honest question, no irony here) |
well, the vscode extension uses the hls on |
Your environment
Which OS do you use:
Pop!_OS + Nix.
Steps to reproduce
Launch VSCode with the current (latest) workspace (my project does make use of Template Haskell). All was fine with I think the one before the last version of the extension. It's still mostly fine -- everything works, this annoying popup notwithstanding.
Expected behaviour
No error.
Actual behaviour
This HLS binary does not support Template Haskell
.Include debug information
The text was updated successfully, but these errors were encountered: