-
Notifications
You must be signed in to change notification settings - Fork 81
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
LanguageServer crashing #708
Comments
I'm receiving the same (second) error with Julia 1.3.1. I tried the language server bundled with lsp-julia and it finally worked. |
Same traceback with Julia 1.4.2. I have just had a user report this problem. |
v3.1.0 (with coc.nvim) still crashing with same traceback. I'm using julia v1.4.0. |
So is LSP totally broken for recent Julia versions? As in, does not work at all for any client? |
Well, it crashes as soon as you attempt completion at the very least. |
Shouldn't this be mentioned on the README.md? That this project doesn't work at all right now? Like this issue should be affecting everyone who uses Julia, right? Why is there so little attention on this right now? |
I may found what wrong. The call siguniture of
|
Just to be clear, this package works very successfully for thousands of users every day as part of the VS Code extension. I don't know much about other editors, so can't really help much with that, I'm afraid. |
The language server bundled with lsp-julia is not compatible with Julia 1.4+. Meanwhile, the latest version of languageserver.jl requires a different calling convention (thus the major version increment); see the docstring for @davidanthoff I'm going to start using the "client-bug" tag for issues like this if you don't object? |
Yes, a client-bug label makes sense. I think we might also have an |
Are you saying that you are unable or unwilling to support usage anywhere else ?
We are using the this code to start the server based on what's in your README to start the LS; does that need to be updated ? Out of curiosity, would it be possible to include a wrapper which starts the language server so that each client doesn't have to write this code ? |
Check the README again. In major version 3 of LanguageServer.jl, the
There's a bash script in the contrib directory, but it needs a bit of love. What would a wrapper ideally need to look like to be useful to you? Obviously bash isn't generally available on Windows; is that a target for y'all? Maybe something like #695? Just a julia script that could be called with e.g. |
Not at all, I think this was in direct response to the statement that this package doesn't work at all, which is demonstrably false. We're keen to support as many clients as possible but as you can imagine it is slightly challenging to support everything, across multiple versions of Julia. We're trying but aren't there yet. |
A binary maybe? Isn't julia a compiled language ? Forgive my ignorance.
Yeah that would be great too - just some interface that is independent (mostly) of the underlying implementation, and makes it easy for users to configure "generic" LSP clients to just start the server. TBH i feel like the project path should come from the LSP initialise, not the command line though. Yeah that looks useful. Perhaps publish the binaries as GitHub releases for example.
Sure understood, i can't condone that sort of claim either ;) |
Julia is kind of a compiled language but it can't usually produce a self-contained binary. We can sometimes contort it to make it so which is what #695 is doing, but that isn't well-tested or integrated for LanguageServer.jl.
See #748. @ZacLN |
So I'm having some issues with LanguageServer. I'm using emacs and actually having issues with both the version bundled with
julia-lsp
and the system one. I'm using julia 1.4.1. Here's the elisp code (from lsp-julia) that starts the server:lsp-julia-root
is set to~/.julia/environments/v1.4
lsp-julia-depot
is set to~/.julia/
The error I get is:
If I instead use the bundled language server that comes with
lsp-julia
, I get a different error:Does anyone know what the problem is? Thanks!
The text was updated successfully, but these errors were encountered: