Closed fbkarsdorp closed 2 years ago
I think I am getting the same error, can you format the error message nicely please, it is currently not legible.
Should be better now.
I have a fix but the fix only works on current master of LanguageServer.jl, so I will wait a couple of days, until the LanguageServer.jl people tag a new version.
See also: https://github.com/julia-vscode/LanguageServer.jl/issues/1003 https://github.com/julia-vscode/LanguageServer.jl/issues/998
EDIT: if you are really impatient, you can checkout https://github.com/gdkrmr/lsp-julia but you will have to install LanguageServer.jl#master manually, there is currently no automatism for it.
Excellent. Thanks so much!
Hello, I'm getting the same problem with the same error.
Are there any updates on this?
I'm a bit of a noob here and am not sure how to install the LanguageServer directly from git as indicated in the documentation on @gdkrmr's version of the lsp-julia mode gitHub repo.
Absolutely any help would be deeply appreciated
You start julia loading the environment that comes with lsp-julia
, then you can use Julia Pkg to install whatever version of the LanguageServer.jl you need.
The issue is that by default the latest tagged version is being installed which currently is 4.1.0 but that version is not compatible with lsp-julia
at the moment. Current lsp-julia
master from my repo and LanguageServer.jl
master are compatible but installing them requires manual intervention.
You start julia loading the environment that comes with
lsp-julia
, then you can use Julia Pkg to install whatever version of the LanguageServer.jl you need.
Thanks for this. I have already tried downgrading to 4.0 but that doesn't work either. Is there a version that you know for sure works?
The issue is that by default the latest tagged version is being installed which currently is 4.1.0 but that version is not compatible with
lsp-julia
at the moment. Currentlsp-julia
master from my repo andLanguageServer.jl
master are compatible but installing them requires manual intervention.
I understood this from the documentation on the main lsp-julia github page and is specifically what my original question was about. I've tried to just git clone the master branch into my JULIA_PATH but in that cause using LanguageServer results in an error because dependencies have not been installed properly. Is there a resource somewhere to guide me through the process of actually installing the master branch? I am also okay with installing a previous version of LanguageServe provided I know which one works. Thank you again!
This one is working for me on a different machine:
[[LanguageServer]]
deps = ["CSTParser", "DocumentFormat", "JSON", "JSONRPC", "Markdown", "Pkg", "REPL", "StaticLint", "SymbolServer", "Tokenize", "URIParser", "UUIDs"]
git-tree-sha1 = "ac9f7da10fbba9cad8455a3436d121eaf8f308f6"
uuid = "2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7"
version = "4.0.0"
A general guide is somewhat difficult, because the directory where lsp-julia
is being installed differs between machines.
@gdkrmr Thank you for your help. I'll try to revert back to that version and see if it works.
Thanks!
Should be fixed by new release. Requires Julia 1.7
I'm having trouble getting lsp-julia to run properly. From the log below, it seems that
exception = TypeError: in Expr, expected Symbol, got a value of type CSTParser.EXPR
is the problem. Not sure how to proceed from here. But perhaps the error is familiar to you?