-
Notifications
You must be signed in to change notification settings - Fork 20
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
lsp-julia crash on Julia v1.4 #20
Comments
lsp-julia is currently not functioning with LanguageServer#v2.0.0. Furthermore, there was a change in Julia 1.4 that breaks compatability with the older LanguageServer#v1.0.0 and SymbolServer#v1.0.1. If you try to run LanguageServer#v1.0.0 on Julia 1.4 it complains that |
FWIW, I think this revision to |
To get the language server working on Julia v1.0 and v1.4 you can use the following patch for SymbolServer courtesy of @ashiklom. I merely removed the
Note: I am unsure what side-effects this change may have. |
You can |
There are some other problems when trying to compile the package.
|
|
I have updated the Julia packages and it still doesn't work for me julia-vscode/LanguageServer.jl#651 |
It works with Julia 1.4 now (after this patch: julia-vscode/LanguageServer.jl#688) but linting is still broken. I have asked both at |
@gdkrmr Can you put the elisp code for getting julia to work in your repo at https://github.com/gdkrmr/lsp-julia ? BTW, why is vscode not getting affected by these bugs? Their julia mode works like a horse on 1.4. |
If you want something that is working at the moment, use the code in this repository with Julia 1.3. If you want to help fixing this issue, you can get instruction how to make https://github.com/gdkrmr/lsp-julia work with Julia 1.4 here: https://gist.github.com/gdkrmr/624e423f774768563f30e1bd719579a4 any help is appreciated!
I have no idea, but it seems that other language server clients (e.g. vim and sublime text don't work either). |
I manually added your patch and deleted the the files under ``~/.julia/compiler/v1.4/` I now get a new error:
Does anyone know what's going on? |
You need to modify LanguageServer.jl. ProgressToken needs a constructor:
|
Yeah, I tried that, I get the error above. The bundled server that comes with lsp-julia works with 1.3.1 though. To be clear, adding the constructor fixes the original error. But it seems like there's another problem as well. Oh well, I guess I'll just use 1.3.1 in the meantime. |
@non-Jedi any update on this |
I am uninvolved. Please don't ping me. In general even if I were involved doing so is a bit rude. |
@non-Jedi Thanks .. looks like thats the fate of this project :-( |
To all the naysayers: I think I fixed the issue. |
@gdkrmr With Julia 1.5.1, I get the following error on a minimal Julia file:
Also, for any doom-emacs users ( |
Have you tried updating again? I made some changes. I would guess that somehow not the versions that come with the |
Also running into this, I included a Edit: With Edit2: @ashiklom, you need to run Edit3: I encountered an error by opening a file outside of a project (e.g. a one-off script in $HOME). After restarting, LSP works fine for that file but if I open yet another file outside of a project I get the error again.
|
I cannot reproduce the error in Edit3. When opening a file outside of project directory. |
According to suggestion
I've tried two versions of LanguageServer, v.2.0.0 and v 1.0.0 both failed.
The text was updated successfully, but these errors were encountered: