# Vscode is not following the executable path

**URL:** https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825
**Category:** VS Code
**Tags:** path
**Created:** [October 27, 2024, 2:39pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825 "2024-10-27T14:39:49Z")
**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 27, 2024, 2:39pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/1 "2024-10-27T14:39:49Z")

</div>

I am having some trouble with Julia and VScode, so I decided to use (with juliaup) the lts version. I updated the path in VScode as I show in the image:

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

But even though, when I run a file or a line in VScode, it is still running version 1.11:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/d/8dea13da4e984d51c46a530637d0ba920de3ba0c.png)  
(Don’t know if it’s relevant, but I am using wsl)  
What am I missing?

---

<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:42pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/2 "2024-10-27T14:42:38Z")

</div>

Did you execute `juliaup default 1.10`?

---

<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:43pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/3 "2024-10-27T14:43:24Z")

</div>

Thank you for your response. Yes, if I run julia in the terminal it runs the lts version.

---

<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:44pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/4 "2024-10-27T14:44:46Z")

</div>

Perhaps you should set this executable path: `/home/msanchezr/.juliaup/bin/julia ` ?

---

<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:47pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/5 "2024-10-27T14:47:36Z")

</div>

I am going to try it. I was using the path I got from Sys.BINDIR, but that is a great point.

---

<div class="post-metadata">

### Author: ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)
#### Post date: [October 27, 2024, 2:49pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/6 "2024-10-27T14:49:42Z")

</div>

FWIW, VSCode caches the first path it has when loaded and keeps using that one. So if you were to update with Juliaup or change default channels while it is running, it won’t adjust. Restarting VSCode will allow it to find the new path. I believe I filed an issue for that.

---

<div class="post-metadata">

### Author: ![rocco\_sprmnt21](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rocco_sprmnt21/32/20127_2.png) [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)
#### Post date: [October 27, 2024, 3:04pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/7 "2024-10-27T15:04:25Z")

</div>

I just updated Julia from version 1.9 to 1.10.5.  
I changed the exec path parameter just by changing the version number and that seems to be enough.

 ![path exe](https://global.discourse-cdn.com/julialang/original/3X/1/b/1ba11d2868b371431fe707a8955745c42f9bd179.png)

Now, since the executable is in a seemingly different place, I wonder how vscode can find it.

```julia
julia> Sys.BINDIR
"C:\\Users\\sprmn\\.julia\\juliaup\\julia-1.10.5+0.x64.w64.mingw32\\bin"

```

Now I tried to point vscode to the new 😁 release of julia, but REPL (CTRL J+CTRL o) insists on using the old version

 ![julia 2.0 rc](https://global.discourse-cdn.com/julialang/original/3X/3/5/35bbfdeba18a735a4dc3760391da33d96bdb8656.png)

---

<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, 6:59pm UTC](https://discourse.julialang.org/t/vscode-is-not-following-the-executable-path/121825/10 "2024-10-27T18:59:25Z")

</div>

Okay, solved. I was editing on the user settings, but I needed to modify it in Remote (the wsl configuration)
