Julia autocompletion not working in VSCode

I returned to programming after a few months. VScode seems to have changed. I can’t use Julia with the autocompletion anymore! Please help!!!


look!

I checked whether they work for python to make sure the problem is with Julia alone and yes, it works…

How did you install Julia? Which version of Julia are you using?
Best way is is to use juliaup because it also sets up the paths for VSCode automatically.

Are you working with local environments? If yes, what is in your environment?
What is the output of:

julia --project
using Pkg
Pkg.status()

Finally, which version of the Julia extension of VSCode are you using?

Also try clicking on the Julia: Starting Language Server in the status bar, which should take you to the “Output” panel. There might be some error messages in there (or you may just need to be patient).

C:\Users\DELL\.julia\environments\v1.9"\Project.toml (empty project)

woah! I don’t want any environments in the first place. How do I exit it???
Also, I just updated Julia by downloading the latest version from the site, installing it in my software folder, updating the executable path in VSCode and adding Julia to path. Still not working

I’d suggest down-grading to the last release of the extension, not the pre-release (there’s a bug in there that messes up the environment path, as you can tell by the superfluous " in there).

how to I click it? I can’t! I can only click the environment thingy which opens the command pannel like thing, asking me to choose another folder (another environment) but again, I just wanna run the plain old Julia, which gives syntax highlighting, suggestions and autocompletion while working in VScode how do I do it??? pleaseee helpppppppp

Go to Output and select Julia Language Server in the dropdown:

[ Info: Precompiling VSCodeServer [9f5989ce-84fe-42d4-91ec-6a7a8d53ed0f]

why does it say that?? I don’t want an environment. How do I exit??? also, I did revert back to the released version, still doesn’t work

You’ll always be in an environment (though that might be the global one). Don’t worry about the “precompiling” message, that’s normal and expected.

ahhh task was selected earlier, as soon as I selected this the following message appears on the REPL:

The language client requires VS Code version ^1.82.0 but received version 1.80.1

but the precompiling message was not there until a few months ago… as far as I remember, then I would just run up the code and it would evaluate


Woah what? helpppp (I’m sorry I’m acting like a beginner… I mean I am … but idk… such a thing never happened before in like my past 2 years of programming. And I got an exam tomorrow so kinda stressed; just opened Julia to try an SDL package along with checking my answers for Matrix Multiplications xD and I get all this!)

What version of the extension are you on? It should be 1.61.2.

yes it is 1.61.2. I reckon it is some VSCode thing that I have toggled off unknowingly. What might be all the settings that I can mess up?

Okay, I figured the problem somehow was, as @pfitzseb pointed out, the status of Julia’s language server. It was stuck on Julia: Starting Language Server. I reverted to a previous release (v1.60.2) after a fresh install of both Julia and VScode (idk if that was even necessary) but yeah, that seemed to fix it.

Build and Test Docs

I have no idea why Julia’s build and test show ‘failing’ though.

On my student’s computer there is no autocomplete, and there is no “Julia Language Server” in the output tab, only “Julia”, “Julia Testserver” and “Julia Notebook Kernels”. It’s a newly installed VS Code with the Julia extension (Julia Tab works on the left) and juliaup.

In my example environment, all works well but in jupyter. It just dont autocomplete, and Language Server was started as expected:

 Info: Loaded all packages into cache in 2.0s (100%)
============== Startup timings ==============
       0.0 - LS startup started (0.0s since last event)
     0.054 - connection established (0.054s since last event)
     2.306 - (async) listening to client events (2.252s since last event)
     2.428 - (async) listening to symbol server events (0.122s since last event)
     2.428 - starting combined listener (0.0s since last event)
     2.432 - LSP/initialize (0.0039999s since last event)
     4.508 - LSP/initialized (2.076s since last event)
    64.279 - LSP/textDocument/didOpen (59.771s since last event)
    64.817 - LSP/textDocument/didOpen (0.538s since last event)
    64.818 - LSP/textDocument/didOpen (0.0010002s since last event)
     64.82 - LSP/textDocument/didOpen (0.0019999s since last event)
    64.821 - LSP/textDocument/didOpen (0.00099993s since last event)
    64.822 - LSP/textDocument/didOpen (0.0010002s since last event)
    64.823 - LSP/textDocument/didOpen (0.00099993s since last event)
    64.825 - LSP/textDocument/didOpen (0.0020001s since last event)
    64.826 - LSP/textDocument/didOpen (0.00099993s since last event)
    64.827 - LSP/textDocument/didOpen (0.00099993s since last event)
    64.828 - LSP/textDocument/didOpen (0.0010002s since last event)
    64.829 - LSP/textDocument/didOpen (0.00099993s since last event)
    64.831 - LSP/textDocument/didOpen (0.0019999s since last event)
    64.891 - LSP/textDocument/inlayHint (0.06s since last event)
    65.476 - LSP/textDocument/inlayHint (0.585s since last event)
    65.476 - LSP/textDocument/documentLink (0.0s since last event)
     65.73 - LSP/textDocument/inlayHint (0.254s since last event)
     65.73 - LSP/textDocument/documentLink (0.0s since last event)
     65.73 - LSP/textDocument/documentLink (0.0s since last event)
     65.73 - LSP/textDocument/codeAction (0.0s since last event)
    66.408 - LSP/textDocument/codeAction (0.678s since last event)
    66.408 - LSP/textDocument/codeAction (0.0s since last event)
    66.408 - LSP/textDocument/inlayHint (0.0s since last event)
    66.408 - LSP/textDocument/documentLink (0.0s since last event)
    66.408 - LSP/textDocument/codeAction (0.0s since last event)
    66.408 - LSP/textDocument/inlayHint (0.0s since last event)
    66.409 - LSP/textDocument/documentLink (0.00099993s since last event)
    66.854 - LSP/julia/getModuleAt (0.445s since last event)
    66.996 - LSP/textDocument/codeAction (0.142s since last event)
    66.996 - LSP/textDocument/inlayHint (0.0s since last event)
    66.996 - LSP/textDocument/documentLink (0.0s since last event)
    67.454 - LSP/textDocument/codeAction (0.458s since last event)
    67.462 - LSP/textDocument/inlayHint (0.0079999s since last event)
    67.462 - LSP/textDocument/documentLink (0.0s since last event)
    69.473 - LSP/julia/getModuleAt (2.011s since last event)
    69.476 - LSP/julia/getModuleAt (0.003s since last event)
    69.726 - LSP/textDocument/codeAction (0.25s since last event)
    82.938 - LSP/textDocument/hover (13.212s since last event)
     87.45 - LSP/textDocument/hover (4.512s since last event)
    88.271 - symbols received (0.821s since last event)
    88.286 - extended methods computed (0.015s since last event)
    88.286 - project deps computed (0.0s since last event)
    88.286 - env map computed (0.0s since last event)
    88.318 - initial lint done (0.032s since last event)
=============================================