# How do I add \[1.5.3\] to VS code in Ubuntu?

**URL:** <https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127>\
**Category:** General Usage\
**Tags:** question, linux, vscode\
**Created:** [January 10, 2021, 11:03pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127 "2021-01-10T23:03:07Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [January 11, 2021, 9:30pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/21 "2021-01-11T21:30:32Z")

</div>

I am not sure what your status is now. Do you still require help? If you’ve exported your path properly (and the executable path is left blank), the language server extension should also launch 1.5.3. I’d also advise to make sure everything (i.e. vscode and extension) are updated.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 11, 2021, 9:33pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/22 "2021-01-11T21:33:56Z")

</div>

![Screenshot from 2021-01-11 15-30-20](https://global.discourse-cdn.com/julialang/original/3X/7/1/716a5355f4b7057c9f63588d441978d8e269764e.png)

I can’t find the latest version of the Julia extension in the VS marketplace, and the version is old, but you can see, that I have 1.5.3 in my Linux terminal, so I can run  
Pluto, and should be able to run Jupyter. I guess I’d like to get it working in VS Code, but it’s not necessary.

---

<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:** [January 11, 2021, 9:41pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/23 "2021-01-11T21:41:25Z")

</div>

Julia and Julia Extension for vscode are two very separate things with different version numbers. Julia is the programming language and can be used with any editor of your choice (or even directly from the terminal). Your Julia version is 1.5.3, but you may have other versions installed as well.

The Julia Extension for vscode is an extension primarily built with typescript (I think) and interfaces with the features provided in vscode. It’s got functionality for launching code, showing inline results, showing plots, providing a debugging toolchain, linting, and overall interacting with the julia REPL. The current version of this extension is [1.0.12](https://github.com/julia-vscode/julia-vscode/tags) (you have 1.0.10 which is fairly new as well but you can update if you want). So everything seems fine to me.

I don’t understand though why your Julia REPL in vscode defaults to some `1.0` version. This is likely because you’ve told the extension to look for Julia in a particular location and thus overwriting the mechanism that uses the `$PATH` variable. Can you show your JSON settings file? And make sure your executable path is left blank?

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 14, 2021, 2:25am UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/24 "2021-01-14T02:25:08Z")

</div>

I think 1.0.4 is the snaps version, I downloaded 1.5.3 and 1.6 later. That’s why I thought I had to put a new location. So, it would use the later version instead of the one I downloaded first.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 14, 2021, 2:31am UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/25 "2021-01-14T02:31:53Z")

</div>

I tried to change from 1.5.3 to 1.6, and it loaded 1.0.4 .

 ![Screenshot from 2021-01-13 20-27-37](https://global.discourse-cdn.com/julialang/original/3X/8/b/8bcd4b171ab80ee6c6920d6d80f34c91652b6f85.jpeg)

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 14, 2021, 2:33am UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/26 "2021-01-14T02:33:51Z")

</div>

Unless of course 1.6 Linux has the 1.0.4 load screen. Plots loaded faster to Pluto than 1.5.3, I might try something like ModelingToolkit.jl, that doesn’t work right in older versions.

---

<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:** [January 14, 2021, 5:58pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/27 "2021-01-14T17:58:01Z")

</div>

No, it’s not likely that the 1.6 version has “1.0.4” on the launch screen. That would’ve been caught already in testing.

Recall I said that when you type in `julia` it traverses the folders stored in `$PATH`. And it does so sequentially and as soon as it finds the first folder where `julia` resides, thats the one it launches.

Notice how you modify your `$PATH`:

```julia
export PATH = "$PATH:$HOME/Julia...." 

```

which basically adds your 1.6 folder at the very end.

What this means is that you likely have another julia binary (the 1.0.4 version) in one of the folders stored in `$PATH`. If you run

```julia
affan@XPS13:~$ which julia
/usr/bin/julia

```

it will tell you where the actual binary is located. You should likely delete that binary as its the old version. I have a feeling that if you installed 1.0.4, the binary likely exists in `/usr/bin/julia` or `/usr/local/bin/julia`

Can you tell me what the output it for `which julia`?

---

<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:** [January 16, 2021, 5:59pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/29 "2021-01-16T17:59:44Z")

</div>

It’s better to leave that field blank and just modify your PATH so that the correct julia version launches. Well maybe not better, but that’s how I would do it.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 16, 2021, 8:32pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/30 "2021-01-16T20:32:27Z")

</div>

> [@brett\_knoss](#):
>
> `export PATH="~/Julia/julia-1.6.0-beta1-linux-x86_64/julia-1.6.0-beta1/bin:$PATH"`

Where do I modify my path? is that the JSON in VS?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 16, 2021, 10:00pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/31 "2021-01-16T22:00:16Z")

</div>

No, your system path: [PATH (variable) - Wikipedia](https://en.wikipedia.org/wiki/PATH_(variable))

---

<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:** [January 16, 2021, 10:58pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/32 "2021-01-16T22:58:48Z")

</div>

No. Has nothing to do with vscode or JSON. See my reply here: [How do I add [1.5.3] to VS code in Ubuntu? - #13 by affans](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/13)

`PATH` is a Linux environment variable. It is a list of directories that Linux uses to search for particular binaries. It is how when you type in a binary say `julia` or `echo`, it knows where the binary is. So if you want to know which particular julia binary when you type in `julia`, you can see that by running `whereis julia`. The point is that you should include your julia directory in the path variable (if its not already there) so that simply typing in `julia` will launch the correct version, and that goes for vscode also. You can modify `PATH` by using the `export` function.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 26, 2021, 7:30pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/33 "2021-01-26T19:30:37Z")

</div>

Ok, thanks, sorry I didn’t get back sooner. The export works, but I have to reset it each time I start a new session. Why is this and how do I get it to stay?

---

<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:** [January 26, 2021, 8:05pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/34 "2021-01-26T20:05:43Z")

</div>

There is a file in your home directory called `.bashrc` (notice the dot). Modify this file and add the `export` statement in there as a new line.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 27, 2021, 4:54am UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/35 "2021-01-27T04:54:07Z")

</div>

No, I don’t see any file like that, might it be hidden?

---

<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:** [January 27, 2021, 4:55pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/36 "2021-01-27T16:55:14Z")

</div>

Yes, files that begin with `.` are hidden. Use `ls -a` to show all files. If you don’t have it, you can just create it yourself. Call it `.bashrc`

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 27, 2021, 4:57pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/37 "2021-01-27T16:57:15Z")

</div>

Ok, that found it. Now how do I open it?

---

<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:** [January 27, 2021, 4:58pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/38 "2021-01-27T16:58:36Z")

</div>

It’s just a text file so you can edit it anyway you want. You can open it in vscode (since I know you have that installed), or you could use `gedit` or `vi` (which are terminal based editors) or any other editor that comes with Linux. It’s a simple text file.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 27, 2021, 5:00pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/39 "2021-01-27T17:00:49Z")

</div>

I meant what terminal command do I use to open the file, (text editor would be fine, but changing default to VS code wouldn’t hurt).

---

<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:** [January 27, 2021, 5:07pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/40 "2021-01-27T17:07:22Z")

</div>

To open the file using vscode (assuming the binary is also in your `$PATH`) you can type in

```julia
code .bashrc # open using vscode 
gedit .bashrc # using gedit (probably the easiest) 
vi .bashrc # would not recommend if you don't know what vi is. 

```

or commands for any other text editors you have installed. Are you working on headless Ubuntu? Do you not have a GUI? It might just be easier to up the GUI file explorer and double click the file like in windows.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [January 27, 2021, 5:09pm UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127/41 "2021-01-27T17:09:34Z")

</div>

Thanks, got it set up.

[Previous page](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127.md?page=1)

[Next page](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127.md?page=3)
