# Julia running in background (VS Code)

**URL:** <https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184>\
**Category:** VS Code\
**Created:** [April 7, 2020, 5:05pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184 "2020-04-07T17:05:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![martincornejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martincornejo/32/13436_2.png) [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Post date:** [April 7, 2020, 5:05pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/1 "2020-04-07T17:05:33Z")

</div>

First of all thank you and congrats on making Julia in VS Code such a smooth experience.

I’ve noticed there is a Julia process permanently running in the background, even before starting the REPL. It is using about 20% of my CPU power (so a full core of my quad-core). Is this intentional?

Julia: v1.4  
VS Code: v1.43.2  
Julia extension: v0.15.18

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/c/2c5fec73a44179a5d680284e1df8fa81deb6a41a.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:** [April 7, 2020, 6:47pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/2 "2020-04-07T18:47:26Z")

</div>

That Julia process runs the Julia language server, which is needed for all the code editing experience that the extension provides. It will initially parse all the code in your work space, but at some point it should certainly not continually use 20% of CPU. Does this go down if you wait a while?

---

<div class="post-metadata">

**Author:** ![martincornejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martincornejo/32/13436_2.png) [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Post date:** [April 7, 2020, 8:07pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/3 "2020-04-07T20:07:54Z")

</div>

Unfortunately the Julia process remains between 17%-20% continuously. My workspace currently has 12 .jl files, all of these together make about 1200 lines of code.

---

<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:** [April 7, 2020, 8:11pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/4 "2020-04-07T20:11:28Z")

</div>

That seems like a bug… Is there a chance that you could share the content of that folder with me? If you don’t want to share it publicly, you could also just send a zip file via email or something like that.

One other option: it might also be symbol server process, which is a _second_ Julia process we start. Does the status bar in VS Code show some UI that says that it is indexing packages?

---

<div class="post-metadata">

**Author:** ![martincornejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martincornejo/32/13436_2.png) [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Post date:** [April 7, 2020, 8:26pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/5 "2020-04-07T20:26:23Z")

</div>

Reading the other posts in this section I have found what the problem is. As stated [here](https://discourse.julialang.org/t/julia-vscode-stop-working-when-there-are-many-source-file-and-include-statements/36724/8), when the same “include” is stated in multiple files the Julia language server acts like crazy.

---

<div class="post-metadata">

**Author:** ![martincornejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martincornejo/32/13436_2.png) [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Post date:** [April 7, 2020, 9:18pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/6 "2020-04-07T21:18:17Z")

</div>

This might be the source behind other cases of the Julia language server issues (stated in this discourse and the github repo), is this a bug or “including” in multiple files is a practice that should be avoided (or both)?

---

<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:** [April 7, 2020, 9:42pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/7 "2020-04-07T21:42:47Z")

</div>

The problem is I can’t reproduce that bug (which we have reported a couple of times now…). If there is any chance that you might be able to just share the folder that is acting up it would probably help a lot locating the root problem here…

---

<div class="post-metadata">

**Author:** ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Post date:** [April 7, 2020, 9:56pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/8 "2020-04-07T21:56:08Z")

</div>

Personally I would still like to have an option to disable this parsing thing the language server does, I never managed to run the VS code extension properly because of it since a very long time and I always have to go hack files to disable it manually (c.f. [Is there a way to disable whatever LanguageServer does at startup ? · Issue #363 · julia-vscode/LanguageServer.jl · GitHub](https://github.com/julia-vscode/LanguageServer.jl/issues/363)).

---

<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:** [April 7, 2020, 10:15pm UTC](https://discourse.julialang.org/t/julia-running-in-background-vs-code/37184/9 "2020-04-07T22:15:06Z")

</div>

@jonathanBieler I think these are distinct issues: the indexing and the parsing. They happen in different processes etc. I believe the indexing should be _much_ more robust now, certainly it has been more or less rewritten since you last posted that issue. If there are still issues with the indexing, let us know!
