# Error while communicating with the LS

**URL:** <https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312>\
**Category:** VS Code\
**Tags:** languageserver, error-message, juliaup\
**Created:** [July 21, 2024, 6:44pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312 "2024-07-21T18:44:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [July 21, 2024, 6:44pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/1 "2024-07-21T18:44:51Z")

</div>

While using VSCode in Win10, pressing `SHIFT+ENTER` or `CTRL+ENTER` produces a pop-up error message:

 ![VSCode_error_communicating_with_LS](https://global.discourse-cdn.com/julialang/original/3X/e/2/e23d4cd2e5620d8686d939dd98b0401d8781856a.png)

However, the error doesn’t show up when pressing `ALT+ENTER`.

Couldn’t find `Output > Julia Language Server` to troubleshoot.  
There is `Output > Julia`, but it doesn’t show any error.  
Any tips please? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![wssuzb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wssuzb/32/210805_2.png) [@wssuzb](https://discourse.julialang.org/u/wssuzb)\
**Post date:** [July 22, 2024, 2:05am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/2 "2024-07-22T02:05:18Z")

</div>

I’m having the same problem. 😭

---

<div class="post-metadata">

**Author:** ![wssuzb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wssuzb/32/210805_2.png) [@wssuzb](https://discourse.julialang.org/u/wssuzb)\
**Post date:** [July 26, 2024, 12:30pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/3 "2024-07-26T12:30:29Z")

</div>

I finally ran the command “juliaup add release” in my terminal and this problem was solved for me.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [July 26, 2024, 12:44pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/4 "2024-07-26T12:44:10Z")

</div>

> [@wssuzb](#):
>
> juliaup add release

Thank you so much, it solved the problem.

No idea if important, but I have also defined it as the default version in `juliaup`, even if `release` and the previous default versions, seem to be the same:

```DOS
 Default Channel Version Update
----------------------------------------------------
          1.10 1.10.4+0.x64.w64.mingw32
       * release 1.10.4+0.x64.w64.mingw32

```

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [July 26, 2024, 3:25pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/5 "2024-07-26T15:25:36Z")

</div>

> [@rafael.guerra](#):
>
> No idea if important, but I have also defined it as the default version

That should not be necessary, it should be enough that the `release` channel is installed.

---

<div class="post-metadata">

**Author:** ![Arved](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arved/32/209192_2.png) [@Arved](https://discourse.julialang.org/u/Arved)\
**Post date:** [August 11, 2024, 7:48pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/6 "2024-08-11T19:48:54Z")

</div>

Hi,  
seems I am having a similar error. I cannot use “execute code in repl” anymore. When I am running “Julia: restart language server” I get an error but I can use execute code in repl again. However everytime I use it I get the following error "Error while communicating with the LS. Check Output \> Julia Language Server for additional information. There is no output in Julia Language Server…

Any idea what to do?  
Thanks

![grafik](https://global.discourse-cdn.com/julialang/original/3X/3/4/341d3a9763f6fdcb571d9e5743ed98fe8bac8228.png)  
 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/3/a/3a86e592bce2fd6717038d33214b3b0b92f0d024.png)  
 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/b/a/baa5babd6638d2c782bdc2fd17b6d7a47441d8e5.png)

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [August 12, 2024, 4:32pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/7 "2024-08-12T16:32:01Z")

</div>

We show a (short) notice at startup if we can’t start the LS, maybe it auto-disappeared again. How is Julia installed on your system? Is the extension configured to use a custom path or something?

---

<div class="post-metadata">

**Author:** ![Arved](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arved/32/209192_2.png) [@Arved](https://discourse.julialang.org/u/Arved)\
**Post date:** [August 12, 2024, 5:42pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/8 "2024-08-12T17:42:16Z")

</div>

Hi @davidanthoff ,  
thanks for your help.  
I do not see a message at startup that the LS was not started. Moreover, variables are shown in the debug workspace section of the julia pane if a directly type them in the REPL. (So I assume there is some kind of functionality). This is the output of the Julia Language Server:  
`[ Info: Starting LS with Julia 1.10.4 Activating project at `c:\Users\xxx\.vscode\extensions\julialang.language-julia-1.105.2\scripts\environments\languageserver\v1.10` [ Info: Starting the Julia Language Server [ Info: Symbol server store is at 'c:\Users\xxx\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\symbolstorev5'. [ Info: Starting LS at 1723484017 [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: Downloading cache files... [ Info: All cache files downloaded (took 5.3s). [ Info: Package Plots (91a5bcdd-55d7-5caf-9e0b-520d859cae80) is cached. [ Info: Symbol server indexing took 29.6801845 seconds. [ Info: Loading Plots from cache... [ Info: Done loading Plots from cache... (took 39.0s) [ Info: Loading Downloads from cache... [ Info: Done loading Downloads from cache... (took 24.0s) [ Info: Loading LibCURL from cache... ...`

I am using Juliaup with only adding release channel and setting it as default. I did not specify any executable path (it is empty) in vscode or any custom location in juliaup…

What is strange that when I am using `restart language server` all the commands I tried to execute are performed in a row, but the errors mentioned earlier persist). (Seems like sth is blocking the asynchronous command pipeline)

Thanks

---

<div class="post-metadata">

**Author:** ![Arved](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arved/32/209192_2.png) [@Arved](https://discourse.julialang.org/u/Arved)\
**Post date:** [August 13, 2024, 9:50am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/9 "2024-08-13T09:50:52Z")

</div>

Hi again,  
it seems I found the issue. I added the .Julia folder to the workspace in vscode. This seemed to have caused all the errors maybe because of circular references (folders and files appearing twice in the workspace???). I do not know if this is a bug or just stupid behaviour on my side. Anyway, just wanted to let you know.  
Thanks

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [August 13, 2024, 5:51pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/10 "2024-08-13T17:51:04Z")

</div>

It probably just made everything very slow…

---

<div class="post-metadata">

**Author:** ![Arved](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/arved/32/209192_2.png) [@Arved](https://discourse.julialang.org/u/Arved)\
**Post date:** [August 16, 2024, 11:57am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/11 "2024-08-16T11:57:37Z")

</div>

Yep, that’s how I figured it out. I accidentally kept VSCode runnning for half a day and then it worked again 🙂.  
However, there is no obvious way for me to tell if the vscode extension is doing sth in the background from the outputs. Maybe this could be a future improvement somehow. (I mean, one could check the windows task manager to see if julia is still running with lots of cpu and memory)

---

<div class="post-metadata">

**Author:** ![JMLuther](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmluther/32/22832_2.png) [@JMLuther](https://discourse.julialang.org/u/JMLuther)\
**Post date:** [October 17, 2024, 10:08pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/12 "2024-10-17T22:08:14Z")

</div>

note: Even if everything looks fine, you still apparently need to run it.  
Even running `juliaup update release` did not fix it, but immediately VScode worked fine after running `juliaup add release`.

---

<div class="post-metadata">

**Author:** ![lionisxn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lionisxn/32/37989_2.png) [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Post date:** [October 18, 2024, 3:19am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/13 "2024-10-18T03:19:52Z")

</div>

> [@wssuzb](#):
>
> “juliaup add release

May I ask in which terminal you executed “juliaup add release”?

---

<div class="post-metadata">

**Author:** ![wssuzb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wssuzb/32/210805_2.png) [@wssuzb](https://discourse.julialang.org/u/wssuzb)\
**Post date:** [October 18, 2024, 6:40am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/14 "2024-10-18T06:40:03Z")

</div>

Terminal (version 2.12), the default terminal for Macos, is used.

---

<div class="post-metadata">

**Author:** ![jewh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jewh/32/28586_2.png) [@jewh](https://discourse.julialang.org/u/jewh)\
**Post date:** [November 13, 2024, 11:04am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/15 "2024-11-13T11:04:20Z")

</div>

Any idea if this works on windows?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 13, 2024, 11:06am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/16 "2024-11-13T11:06:31Z")

</div>

I am on Windows and the problem has been fixed.

---

<div class="post-metadata">

**Author:** ![johnwood-utm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnwood-utm/32/214434_2.png) [@johnwood-utm](https://discourse.julialang.org/u/johnwood-utm)\
**Post date:** [December 29, 2024, 3:11pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/17 "2024-12-29T15:11:31Z")

</div>

this command gives me error. did I do it at wrong place?  
julia\> julia add release  
ERROR: ParseError:

# Error @ REPL[20]:1:6

julia add release

# └──────────┘ ── extra tokens after end of expression

Stacktrace:  
[1] top-level scope  
@ none:1

---

<div class="post-metadata">

**Author:** ![cshen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cshen/32/217287_2.png) [@cshen](https://discourse.julialang.org/u/cshen)\
**Post date:** [December 31, 2024, 3:41pm UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/18 "2024-12-31T15:41:58Z")

</div>

Yes,  
The command is

```julia
juliaup add release

```

And must be run from the shell (with `juliaup` installed and on the PATH). Not from within the julia REPL. 🙂

---

<div class="post-metadata">

**Author:** ![Jax\_Xu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jax_xu/32/213903_2.png) [@Jax\_Xu](https://discourse.julialang.org/u/Jax_Xu)\
**Post date:** [July 10, 2026, 10:39am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/19 "2026-07-10T10:39:52Z")

</div>

Thank you heaps! This trouble me for a while but was finally solved!

---

<div class="post-metadata">

**Author:** ![Mark-Anthony](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mark-anthony/32/222430_2.png) [@Mark-Anthony](https://discourse.julialang.org/u/Mark-Anthony)\
**Post date:** [July 10, 2026, 11:40am UTC](https://discourse.julialang.org/t/error-while-communicating-with-the-ls/117312/20 "2026-07-10T11:40:47Z")

</div>

Same here bro. Really Thank you so much.
