# Can't get Julia to work in VS Code

**URL:** <https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828>\
**Category:** VS Code\
**Created:** [March 23, 2021, 10:08pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828 "2021-03-23T22:08:51Z")\
**Posts on this page:** 19\
**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 23, 2021, 10:08pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/1 "2021-03-23T22:08:51Z")

</div>

Hi.

I have been endlessly trying to get Julia to work with my VS Code. I removed VS Code from my computer multiple times. I removed the Julia extension multiple times. I downgraded from 1.5.4 to 1.0.5. This is still what I get.

 ![julia-vscode](https://global.discourse-cdn.com/julialang/original/3X/9/e/9e559ab07cd2fcb74f70ab8822c29b4b01485cfb.png)

This path does indeed exist.

This is my settings.json file:

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

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

```

I have Julia in my system. I have the extension installed and I’ve been dealing with this for a while now.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [March 23, 2021, 10:54pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/2 "2021-03-23T22:54:55Z")

</div>

> [@oo92](#):
>
> This path does indeed exist.

can you show us the output of

```julia
ls -alFh /home/onur/julia-1.0.5/bin/julia

```

in your terminal?

---

<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 23, 2021, 11:39pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/3 "2021-03-23T23:39:52Z")

</div>

`-rwxr-xr-x 1 onur onur 47K Sep 9 2019 /home/onur/julia-1.0.5/bin/julia* `

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [March 24, 2021, 2:22pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/4 "2021-03-24T14:22:17Z")

</div>

Can you manually run julia from that directory i.e.:

```julia
cd /home/onur/julia-1.0.5/bin
./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 24, 2021, 3:24pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/5 "2021-03-24T15:24:00Z")

</div>

Yep

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [March 25, 2021, 12:40am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/6 "2021-03-25T00:40:41Z")

</div>

Are you on Ubuntu by chance? I believe VS Code on Ubuntu installs inside using their “snap” sandbox or whatever that is. It’s sandboxed to the point that it can’t execute anything in the home directory. I think if you install Ubuntu’s Julia you will be fine. If you want to use the official julia build try unzipping it in /opt or maybe under /usr/local somewhere. You might be able to execute it from those location…maybe.

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [March 25, 2021, 12:46am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/7 "2021-03-25T00:46:22Z")

</div>

I don’t know if this is the solution, but have you tried putting `/home/onur/julia-1.0.5/bin/`as the path without the binary at the end?

---

<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 25, 2021, 12:46am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/8 "2021-03-25T00:46:54Z")

</div>

It doesn’t work with the plugin either. And yes I’m on Ubuntu.

---

<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 25, 2021, 12:48am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/9 "2021-03-25T00:48:01Z")

</div>

What do you mean?

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [March 25, 2021, 12:49am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/10 "2021-03-25T00:49:46Z")

</div>

Instead of

```julia
"julia.executablePath": "/home/onur/julia-1.0.5/bin/julia"

```

try

```julia
"julia.executablePath": "/home/onur/julia-1.0.5/bin/"

```

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [March 25, 2021, 1:01am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/11 "2021-03-25T01:01:01Z")

</div>

I have an Ubuntu VM I keep clean, I just cloned it installed VS Code and Julia, and it works for me. 😕

 ![VSCode](https://global.discourse-cdn.com/julialang/original/3X/1/b/1bc46b0b1baf9c4e1c29fffc042dc5e63ceb5cce.png)  
Check the Julia extension, is it at 1.1.37? Did I get the same version of Visual Studio Code?

---

<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 25, 2021, 6:00am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/12 "2021-03-25T06:00:54Z")

</div>

Just changed it. Same problem.

This is why I despise Visual Studio Code so much. See, I got this to work with Atom/JUNO just via the standard installation route.

---

<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 25, 2021, 8:26am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/13 "2021-03-25T08:26:22Z")

</div>

That error is weird – it’s definitely not thrown directly by the Julia extension. Couple of questions:

1. How did you install VSCode?
2. What version of VSCode/the Julia extension do you have?
3. Did you try symlinking the Julia binary to e.g. `/usr/local/bin/julia’ and then deleting the path setting?

---

<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 25, 2021, 8:31am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/14 "2021-03-25T08:31:54Z")

</div>

1. Snap
2. v1.1.37
3. Could you elaborate?

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 25, 2021, 9:07am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/15 "2021-03-25T09:07:53Z")

</div>

`sudo ln -sf /home/onur/julia-1.0.5/bin/julia /usr/local/bin/julia`  
and then check that you can run julia just by typing `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 25, 2021, 9:20am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/16 "2021-03-25T09:20:20Z")

</div>

> [@oo92](#):
>
> Snap

I’d recommend trying a normal install then.

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 25, 2021, 9:22am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/17 "2021-03-25T09:22:57Z")

</div>

snap works fine for me and allow to easily follow the frequent updates

> [@Video : Julia setup for beginner](https://discourse.julialang.org/t/video-julia-setup-for-beginner/56559):
>
> Hi, I prepared a short video showing a possible setup for Julia project developments. In particular I show how to: install and configure git and github install Julia install Revise.jl create a project with PkgSkeleton install vscode and the Julia extension amortize the “Time to First Plot” with a Revise-based workflow. The video in English is here (Maurice Chevalier’s mode on) : [[- YouTube] ](https://www.youtube.com/watch?v=n8mV7eNwqzY&t=1s) The video in French is here : [https://youtu.be/qj-WO1wDExg](https://youtu.be/qj-WO1wDExg) Hope it is useful. Laurent …

---

<div class="post-metadata">

**Author:** ![Mark\_Mendlovitz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mark_mendlovitz/32/35709_2.png) [@Mark\_Mendlovitz](https://discourse.julialang.org/u/Mark_Mendlovitz)\
**Post date:** [May 9, 2022, 5:47am UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/18 "2022-05-09T05:47:37Z")

</div>

I am having trouble with VS Code too. It’s a pain in the ass. It does NOT see Julia even though it is installed!

---

<div class="post-metadata">

**Author:** ![Bas\_Ti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bas_ti/32/51000_2.png) [@Bas\_Ti](https://discourse.julialang.org/u/Bas_Ti)\
**Post date:** [June 23, 2023, 4:28pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828/19 "2023-06-23T16:28:02Z")

</div>

moving my julia folder to /opt solved the problem, thanks!  
I’m using  
-julia 1.9.1  
-Ubuntu 20.04.6 LTS  
-VSCode 1.79.2
