I was using Julia-1.10.3, it was working smoothly with VS Code. But when I upgraded to Julia-1.11.5, VS Code stopped suggestions and tab-autocompletion of function names from any module, standard library. It is suggesting the base functions only. In below-right corner of VS Code I noticed this notification:
Error while communicating with LS. Check output > Julia Language Server for additional information
.
So, checked the OUTPUT, it is showing like this:
Using
--Windows 11
--Julia v1.11.5
--VS Code v1.99.3
--Julia extension for VS Code v1.127.2
It is very difficult to develop code without suggestions and autocompletion support. Can someone please help to resolve this issue? Thank you in advance…
I’ve never used VS Code, but have you scrolled to the bottom of that window?
Okay. Bottom of the Window looks like this:
I think you mean the status bar. Isn’t it?
What I meant is that in the image of your first post there is no error message, but I cannot see if that is the entire output (it could just be the first dozen lines or so), so I wanted to make sure that you have scrolled to the bottom. I expect that you can do this by clicking in the middle of the window and pressing the down arrow key a lot of times (e.g. 50 times).
If there are any error messages hidden at the bottom of the output, maybe they can give a clue about what is wrong.
Oh oh. In the first post that’s all. Nothing hidden there in the information from OUTPUT tab. Let me take the screenshot once again. In VS Code notification below-right corner this error message pops up:
which says Error while communicating with LS. Check output > Julia Language Server for additional information
.
Okay, in that case I am out of ideas (as I said, I know very little about VS Code). It seems that this is very much a CS Code issue, so I changed the title and category to better reflect that (feel free to change it back if you disagree). This will hopefully attract the attention of someone with more experience with VS Code.
Thank you. It’s okay you changed the category you felt it to be in.
If you don’t mind, which editor do you use for developing in Julia?
1 Like
I use Vim and work on Linux. I don’t know if Vim has autocompletion, I have not set it up to do that.
1 Like
In order to auto-complete, you need to make sure that VSCode is looking into the correct environment with the packages you are using. In your screenshot at the bottom of the window you see
Julia env: v1.11
Click on it and set the environment to your project folder (it should contain a Project.toml).
I am using standard libraries Dates
, LinearAlgebra
. In that case also should I set the environment?
I don’t think so, but try to create a project folder with an environment and check if the auto-complete works there. If it does, then the standard libraries auto-completion can be a separate issue.
1 Like