-
Notifications
You must be signed in to change notification settings - Fork 244
Use hackage version of haskell-language-server #1015
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
Conversation
Also removes the custom-tools as haskell-language-server is now in hackage! The new `-wrapper` tool is needed for emacs but not vscode. You can get it with something like ``` project.shellFor { tools = { haskell-language-server = "latest"; haskell-language-server-wrapper = "latest"; }; } ```
bors try |
tryBuild succeeded: |
That's not true, you just change the server path in the emacs support (that's what I do already). So I don't think we need the |
The default value for |
Exactly: if you're providing the right binary version in your nix-shell, you don't need the version detection. This is IMO an issue with the emacs integration: we pick the default that works for people installing the "fat" bundle with the wrapper. Perhaps we should just fall-back to trying |
From what @michaelpj says, do I understand correctly that with |
Exactly. |
This reverts commit c7cfd39. # Conflicts: # overlays/tools.nix
bors try |
tryBuild succeeded: |
Note that this is backwards incompatible, because hackage versions are shellFor {
tools.haskell-language-server = "0.8.0.0";
} instead |
Also removes the custom-tools as haskell-language-server is now in hackage! Removes the custom-tools as haskell-language-server is now in hackage! We considered also adding support for -wrapper, but decided it was better to fix emacs so that it works if just haskell-language-server is present.
So, I had a very unpleasant experience the last two days. I had a multitude of issues that were very obscure and one of the problems was that emacs didn't use the right version of HLS. For quite some time I thought emacs or some of the packages (envrc-mode, inheritenv) are bugged (Wasted lots of time on this). Since I have So that this doesn't happen to others I think that e.g. |
Removes the custom-tools as haskell-language-server is now in
hackage!
We considered also adding support for
-wrapper
, but decided it was better to fix emacs so that it works if justhaskell-language-server
is present.