VSCode LS broken?

Is the LS broken? After the recent round of updates I can’t seem to get anything out of the LS in VSCode.

  1. If I configure my own julia executable, it seems I have to do it in two places. Executable path and language-server exe path (is this correct, @pfitzseb ?). But then the LS doesn’t seem able to start (or to work, can’t tell which).
  2. If I give consent to having juliaup install the SDK, the proceedings get stuck at “Starting package install”. It is still running, after >30 minutes.

Can anyone confirm (before I try to report an issue)?

Thanks.

I am using VSCode Julia plugin version 1.170.2 on Linux, and it works fine (well, apart from the known issues).

With juliaup?

Yes.

Thanks!

I tried a different machine. This time juliaup apparently installed successfully. The language server does not work, however. It seems to be alive, I do get hover help on Base items


but nothing on other packages
image
or
image

Which Julia version are you using?

juliaup installed

1 Like

Issue submitted Dysfunctional language server · Issue #3962 · julia-vscode/julia-vscode · GitHub

Uwe, I noticed that you reported that one of your packages was not getting indexed. Did you ever get it fixed?

Edit: Suddenly the language server started working. I have no idea why (Dysfunctional language server · Issue #3962 · julia-vscode/julia-vscode · GitHub). I did try a few times to force reindexing, and I restarted the language server a few times. Nothing happened. Then I added a currently included package to the current environment, and suddenly I noticed the language server was functional.

I don’t think this can really be considered a solution, but the problem did go away.

1 Like

Well, the language server is crappy. I am currently testing JETLS.jl, which appears more promising, but it will require a few more months before it is mature enough for daily use.

2 Likes

Damn, I spoke too soon. I opened another project, same problems as before.

I got it to work in emacs by using the latest git master for LanguageServer.jl, SymbolServer.jl, and StaticLint.jl. Supposedly VSCode is supposed to download/build these already, but it’s broken for me on Julia 1.12.3 as well in a similar way as you showed. Some things in base work but most other things do not.

1 Like