I’m new to Julia, already made a github issue and another post here.
Maybe this is the place.
Whenever I open VS Code the language server start is painfully slow (takes ~1min without packages, ~3min with some packages) and seems to redownload cache on the symbol server every time.
But the problem is the fact that unless the language server has started I’m unable to:
- send anything to repl (with ctrl+enter or shift+enter), it opens the REPL but nothing is sent
- use latex characters (\alpha + tab doesn’t work)
When working using VS code notebooks instead I’m able to run cells (they work fine) but latex characters still do not work unless language server has started.
Any fix? running on Windows 11 (maybe this is the problem?).
Same behaviour on my 2 machines (ryzen 5 3600 and i5 1235u).
My installation was:
- Install julia 1.8.3 from website (64bit exe)
- Install vscode extension
This is my message Language Server trace from VS Code:
[Trace - 10:23:50 AM] Sending request 'initialize - (0)'.
[Trace - 10:24:13 AM] Received response 'initialize - (0)' in 22571ms.
[Trace - 10:24:13 AM] Sending notification 'initialized'.
[Trace - 10:24:13 AM] Sending request 'julia/getModuleAt - (1)'.
[Trace - 10:24:13 AM] Sending request 'julia/getModuleAt - (2)'.
[Trace - 10:24:13 AM] Sending request 'julia/getModuleAt - (3)'.
[Trace - 10:24:13 AM] Sending notification 'textDocument/didOpen'.
[Trace - 10:24:13 AM] Sending notification 'textDocument/didOpen'.
[Trace - 10:24:13 AM] Sending notification 'textDocument/didOpen'.
[Trace - 10:24:13 AM] Sending notification 'textDocument/didOpen'.
[Trace - 10:24:13 AM] Sending request 'textDocument/codeAction - (4)'.
[Trace - 10:24:13 AM] Sending request 'textDocument/codeAction - (5)'.
[Trace - 10:24:13 AM] Sending request 'textDocument/codeAction - (6)'.
[Trace - 10:24:13 AM] Sending request 'textDocument/documentLink - (7)'.
[Trace - 10:24:13 AM] Sending request 'textDocument/documentLink - (8)'.
[Trace - 10:24:13 AM] Sending request 'textDocument/documentLink - (9)'.
[Trace - 10:24:13 AM] Sending request 'textDocument/documentLink - (10)'.
[Trace - 10:24:14 AM] Received request 'client/registerCapability - (39114ed9-e3a9-48f5-b4c5-ac7ae3676fcb)'.
[Trace - 10:24:14 AM] Sending response 'client/registerCapability - (39114ed9-e3a9-48f5-b4c5-ac7ae3676fcb)'. Processing request took 1ms
[Trace - 10:25:00 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:00 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:00 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:00 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:01 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:01 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:04 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:07 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:10 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:13 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:43 AM] Received request 'workspace/configuration - (345613d9-bacd-48e6-a315-7f5428dcac73)'.
[Trace - 10:25:43 AM] Sending response 'workspace/configuration - (345613d9-bacd-48e6-a315-7f5428dcac73)'. Processing request took 1ms
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received response 'julia/getModuleAt - (1)' in 92182ms. Request failed: document vscode-notebook-cell:/e%3A/Google%20Drive%20Shared/Fisica%20Shared/tests/julia_test.ipynb#W1sZmlsZQ== requested but not present in the JLS (-33100).
[Trace - 10:25:45 AM] Received response 'julia/getModuleAt - (2)' in 92182ms. Request failed: document vscode-notebook-cell:/e%3A/Google%20Drive%20Shared/Fisica%20Shared/tests/julia_test.ipynb#W2sZmlsZQ== requested but not present in the JLS (-33100).
[Trace - 10:25:45 AM] Received response 'julia/getModuleAt - (3)' in 92182ms. Request failed: document vscode-notebook-cell:/e%3A/Google%20Drive%20Shared/Fisica%20Shared/tests/julia_test.ipynb#W3sZmlsZQ== requested but not present in the JLS (-33100).
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received response 'textDocument/codeAction - (4)' in 92120ms.
[Trace - 10:25:45 AM] Received response 'textDocument/codeAction - (5)' in 92121ms.
[Trace - 10:25:45 AM] Received response 'textDocument/codeAction - (6)' in 92121ms.
[Trace - 10:25:45 AM] Received response 'textDocument/documentLink - (7)' in 92119ms.
[Trace - 10:25:45 AM] Received response 'textDocument/documentLink - (8)' in 92119ms.
[Trace - 10:25:45 AM] Received response 'textDocument/documentLink - (9)' in 92119ms.
[Trace - 10:25:45 AM] Received response 'textDocument/documentLink - (10)' in 92119ms.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:25:45 AM] Received notification 'julia/publishTestitems'.
It takes most of the time while looking at all my julia files in all my workspaces.
So my first question is, why does the language server look throughout all my julia files?
Also why some request fail?