# Startup time in VSCode extraordinarily long

**URL:** https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386
**Category:** VS Code
**Tags:** performance, vscode, startup
**Created:** [August 26, 2022, 2:16pm UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386 "2022-08-26T14:16:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MikolasVolek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikolasvolek/32/39128_2.png) [@MikolasVolek](https://discourse.julialang.org/u/MikolasVolek)
#### Post date: [August 26, 2022, 2:16pm UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386/1 "2022-08-26T14:16:23Z")

</div>

Hi,

I wanted to share an issue that I keep encountering upon starting Julia in VSCode, hoping that I might not be the only one affected by it.

Whenever I start VSCode, open a \*.jl file and try to run a line of code, it takes a somewhat surprisingly long period of time for VSCode to execute, or even acknowledge the command. No “circular arrow” symbol appears at the end of the line, and nothing gets executed for a _long_ time. That is, usually minutes but up to half an hour.

There is no indication of progress whatsoever, no signs that a package is loading, or that a computation is undervway. However, Julia _does_ appear to be running, as a subprocess of VSCode, constantly consuming about 30 % of CPU time.

Curiously enough, the command eventually _does_ execute. So my usual workflow is to fire up VSCode, ‘execute’ some lines, then do some other work, and after half an hour when I come back to the IDE I proceeed to work normally.

This only happens with the first command after starting VSCode. Any subsequent commands run just fine.

I’m using VSCode v1.70.2 on Win64 with the Julia Language Support package v1.7.6. My Julia version is 1.8.0.

Does anyone else have this experience? What would be the proper forum to report this to?

---

<div class="post-metadata">

### Author: ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)
#### Post date: [August 26, 2022, 3:29pm UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386/2 "2022-08-26T15:29:32Z")

</div>

> [@MikolasVolek](#):
>
> nothing gets executed for a _long_ time. That is, usually minutes but up to half an hour.

That must be very unusual! I suspect a virus of something in your Windows, unless you’re really low on RAM, to low to support VS Code well, or the line you run very unusual (what is it?).

Julia 1.8.0 is rather new, and hopefully someone already tested with VS Code… I haven’t used VS Code in a while now and will test on my Linux. You could try the older 1.7.3 to compare or newer 1.9-DEV. It seems you’re on latest version of everything, I doubt needed but you could also check as a last recourse 1.71 insider version. It might also be intriguing to check Linux version in WSL2.

> **[Issues · julia-vscode/julia-vscode](https://github.com/julia-vscode/julia-vscode/issues)**
>
> Julia extension for Visual Studio Code. Contribute to julia-vscode/julia-vscode development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![MikolasVolek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikolasvolek/32/39128_2.png) [@MikolasVolek](https://discourse.julialang.org/u/MikolasVolek)
#### Post date: [August 26, 2022, 4:11pm UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386/3 "2022-08-26T16:11:42Z")

</div>

It doesn’t seem to be any of these. I’ve got plenty of RAM, and this was taking place already with Julia 1.7. The expression does not matter either. I usually run something like “3+3” to try things out first.

---

<div class="post-metadata">

### Author: ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)
#### Post date: [August 27, 2022, 4:36am UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386/4 "2022-08-27T04:36:21Z")

</div>

These kinds of issues are usually caused by antivirus software AFAIK.

---

<div class="post-metadata">

### Author: ![MikolasVolek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikolasvolek/32/39128_2.png) [@MikolasVolek](https://discourse.julialang.org/u/MikolasVolek)
#### Post date: [August 27, 2022, 9:59am UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386/5 "2022-08-27T09:59:21Z")

</div>

Thank you for the GitHub link. I found an issue that describes the same problem: [Slow Response from Extension when working in a folder · Issue #2788 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/issues/2788).

It looks like I managed to reduce the waiting time to “first result” to about 90 sec by paring down my workspace to only ‘essential’ directories (that contain actual code and not other data).
