# Julia in VSCode not working properly on WSL

**URL:** <https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607>\
**Category:** General Usage\
**Tags:** vscode\
**Created:** [October 22, 2024, 6:52pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607 "2024-10-22T18:52:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_sanchez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martin_sanchez/32/207525_2.png) [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Post date:** [October 22, 2024, 6:52pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/1 "2024-10-22T18:52:31Z")

</div>

I have been using Julia with wsl and vscode. I didn’t have much problems, though it was a little bit slow when running. After I had several issues with errors with the LS and others, I finally made it work, but it still is slow and more so, and now the terminal only shows the results, but no longer shows the commands it is running. Also, but that is a detail, once a line has an error, it remains marked as red even if I run it again and correct the error:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/8/d81aa8b4a9739f79b8bfdf8d0495d6164de54746.png)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 22, 2024, 7:32pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/2 "2024-10-22T19:32:38Z")

</div>

Well, in your scenario there are many layers of abstraction. Do thinks work if you:

- install Julia 1.10 using juliaup (1.11. still has a few more issues than 1.10)
- launch a bash terminal in VSCode
- launch Julia from the bash terminal by typing `julia` or `julia --project`

?

---

<div class="post-metadata">

**Author:** ![martin\_sanchez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martin_sanchez/32/207525_2.png) [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Post date:** [October 23, 2024, 3:10am UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/3 "2024-10-23T03:10:10Z")

</div>

I am working with juliaup, I added the lts and put it as the julia extension executable path, From the terminal in VScode I can run julia normally and use the REPL, but I would like to have normal functionallity when standing on a code line and ctrl+enter and have a response, or execute the whole file. Just normal stuff. Also, I am not able to make it show any plots:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/9/c9dd3fbe474d16af6032734e81ccc3193815678b.png)n

Not even in the extension window does it show any result of the plot

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 23, 2024, 4:31am UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/4 "2024-10-23T04:31:29Z")

</div>

Feel free to create a bug report: [GitHub · Where software is built](https://github.com/julia-vscode/julia-vscode/issues)

The other question is, why are you using WSL in the first place? On Windows VSCode and Julia work together well, if you install [Git for Windows](https://gitforwindows.org/) first. It also provides a bash shell which can be used within VSCode to give you some Linux feeling.

---

<div class="post-metadata">

**Author:** ![martin\_sanchez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martin_sanchez/32/207525_2.png) [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Post date:** [October 27, 2024, 2:12pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/5 "2024-10-27T14:12:32Z")

</div>

I do almost everythin relating to development in wsl, precisely because usually the problems arise trying to integrate windows with whichever programming language or environment. It should work well in linux, right?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 27, 2024, 2:41pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/6 "2024-10-27T14:41:03Z")

</div>

Well, I guess Julia and VSCode are mainly tested on Windows, Linux and Mac and less often on WSL.

But the Julia VSCode plugin has a lot of issues, in the moment 962 open issues, so I prefer to use it only for basic tasks like syntax highlighting and goto-definition, not for advanced stuff like code execution, debugging or displaying figures. But everybody has different preferences.

---

<div class="post-metadata">

**Author:** ![martin\_sanchez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martin_sanchez/32/207525_2.png) [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Post date:** [October 27, 2024, 7:38pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/7 "2024-10-27T19:38:12Z")

</div>

How is your setup for code devlopment and execution? Writing the scripts and directly running them on the REPL? At the moment, my main pain is being able to plot. If I run a notebook, it shows the plots, but in a script, it does nothing.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 27, 2024, 8:43pm UTC](https://discourse.julialang.org/t/julia-in-vscode-not-working-properly-on-wsl/121607/8 "2024-10-27T20:43:37Z")

</div>

> [@martin\_sanchez](#):
>
> At the moment, my main pain is being able to plot.

Why are you not using a plotting package that opens a new window per plot? I find this very convenient because it allows to compare many plots on one screen. Many packages can do that, for example [GitHub - aenarete/ControlPlots.jl: Easy to use plotting for control engineers and students](https://github.com/aenarete/ControlPlots.jl)

Sometimes you have to do that explicitely, like:

```julia
p=plot(rand(3))
display(p)

```

if it doesn’t work automatically.
