# VSCode cannot find the Julia executable that exists

**URL:** https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133
**Category:** VS Code
**Created:** [March 28, 2021, 7:22pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133 "2021-03-28T19:22:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 28, 2021, 7:22pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/1 "2021-03-28T19:22:33Z")

</div>

Hi. I am trying to get my Julia 1.5.4 to work with my VSCode but it does not. I do not understand why this is the case. I renewed the installation for each but the problem persists. This is my `Preferences > Settings > Julia: Executable Path`:

 ![1](https://global.discourse-cdn.com/julialang/original/3X/3/1/319f515c2391ee10e40f91d85e4f7c8aaa19bd3b.png)

This path does indeed exist. This is my `settings.json`:

```julia
{
    "[julia]": {

        "editor.quickSuggestions": true,
        "editor.wordSeparators": "`~#$%^&*()-=+[{]}\\|;:'\",.<>/?"
    },
    "julia.executablePath": "/home/onur/julia-1.5.4/bin/julia"
}

```

Again. The path does exist. But each time I try to run my example code, this is what I get:

 ![2](https://global.discourse-cdn.com/julialang/original/3X/6/b/6b02187210af376a4b1cb2914e9ba64e769ea20d.png)

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 28, 2021, 7:35pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/2 "2021-03-28T19:35:19Z")

</div>

How are you trying to run the code in that screenshot? I don’t think we ever try to run code in that task terminal thing?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 7:52pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/3 "2021-03-28T19:52:14Z")

</div>

Perhaps it is

```julia
.../julia 1.5.4/...

```

space instead of - ?

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 28, 2021, 8:03pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/4 "2021-03-28T20:03:41Z")

</div>

The triangular run button at the far right. That’s what I hit to run my code…

 ![3](https://global.discourse-cdn.com/julialang/original/3X/7/3/732fb16136fcab88485ef7842a5e7ccdbd986d86.png)

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 28, 2021, 8:07pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/5 "2021-03-28T20:07:38Z")

</div>

Hm. When you open the settings UI (as opposed to the json file) you should see a bunch of tabs at the top. Can you check whether you have set the executable path differently in any of those?

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 28, 2021, 8:35pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/6 "2021-03-28T20:35:49Z")

</div>

How is that different from the image in my original post?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 28, 2021, 8:45pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/7 "2021-03-28T20:45:39Z")

</div>

What you show (assuming it’s under the “user” tab) might not be what VSCode is actually using – it might be overwritten by workspace or remote specific settings.

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 28, 2021, 9:05pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/8 "2021-03-28T21:05:53Z")

</div>

So how can I confirm that?

---

<div class="post-metadata">

### Author: ![seba754](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/seba754/32/12312_2.png) [@seba754](https://discourse.julialang.org/u/seba754)
#### Post date: [March 28, 2021, 10:11pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/9 "2021-03-28T22:11:59Z")

</div>

Hey there,

Maybe you can try the following:

1. Check if you’re using the command prompt, or PowerShell shell as your default. Maybe your PS is blocked or something.
2. Try adding the full path (In my case it looks like “julia.executablePath”: “C:\Users\MY\_USER\AppData\Local\Programs\Julia-1.6.0\bin\julia.exe”)
3. To confirm the above. You should be able to copy paste your path, and run it by hand on cmd.exe, and initiate a Julia terminal.

Best!

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 28, 2021, 10:45pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/10 "2021-03-28T22:45:15Z")

</div>

Hello.

I’m on Ubuntu 20.04 so none of those apply to me…

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 29, 2021, 7:23am UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/11 "2021-03-29T07:23:30Z")

</div>

> [@oo92](#):
>
> So how can I confirm that?

By checking the other possibilities.

I’d also recommend using the “Julia: Start REPL” command from the command palette, just to make sure no other extension accidentally hijacked the run button or whatnot.

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 29, 2021, 5:29pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/12 "2021-03-29T17:29:34Z")

</div>

I tried to use Julia from the command palette as you’ve suggested:

```julia
The terminal process failed to launch: Path to shell executable ""julia.executablePath": "/home/onur/julia-1.5.4/bin/julia"" does not exist.

```

Same exact error.

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 29, 2021, 6:00pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/13 "2021-03-29T18:00:07Z")

</div>

Can you provide the output of:

```julia
ls -la /home/onur/julia-1.5.4/bin/julia

```

in a bash shell?  
I want to see prove that the path exist! 😉

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 29, 2021, 6:42pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/14 "2021-03-29T18:42:16Z")

</div>

`-rwxr-xr-x 1 onur onur 46192 Mar 11 14:25 /home/onur/julia-1.5.4/bin/julia`

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 29, 2021, 6:49pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/15 "2021-03-29T18:49:04Z")

</div>

You still have the wrong path set somewhere. Make sure to check the JSON formatting as well – the error should show something like

```julia
The terminal process failed to launch: Path to shell executable "/this/does/not/exist" does not exist.

```

and not have any JSON like formatting.

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 29, 2021, 6:57pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/16 "2021-03-29T18:57:50Z")

</div>

Proof accepted 🙂

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 29, 2021, 7:02pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/17 "2021-03-29T19:02:23Z")

</div>

In the erroe screenshot you have as path version 1.0.5 : /home/onur/julia-1.0.5/bin/julia  
Any idea where this comes from?  
Can we see bash output of

```julia
env | grep -i julia

```

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 29, 2021, 7:36pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/18 "2021-03-29T19:36:40Z")

</div>

It yields no output…

---

<div class="post-metadata">

### Author: ![oo92](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oo92/32/22963_2.png) [@oo92](https://discourse.julialang.org/u/oo92)
#### Post date: [March 29, 2021, 7:38pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/19 "2021-03-29T19:38:42Z")

</div>

Here is my JSON:

```julia
{
    "[julia]": {

        "editor.quickSuggestions": true,
        "editor.wordSeparators": "`~#$%^&*()-=+[{]}\\|;:'\",.<>/?"
    },
    "julia.executablePath": "/home/onur/julia-1.5.4/bin/julia"
}

```

I hear you that it is definitely what is causing this error. But the path is correct both in my JSON file and the user settings. Where else could it be?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 29, 2021, 7:43pm UTC](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133/20 "2021-03-29T19:43:32Z")

</div>

> [@pfitzseb](#):
>
> Hm. When you open the settings UI (as opposed to the json file) you should see a bunch of tabs at the top. Can you check whether you have set the executable path differently in any of those?

Did you check the workspace/remote/folder specific settings as mentioned above? Just to illustrate:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/8/9875a50d7318ea5009b749c806b1612b96c697ec.png)

[Next page](https://discourse.julialang.org/t/vscode-cannot-find-the-julia-executable-that-exists/58133.md?page=2)
