# Error \`julia.environmentPath\` on Linux

**URL:** <https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878>\
**Category:** VS Code\
**Created:** [September 27, 2022, 5:14pm UTC](https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878 "2022-09-27T17:14:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tbl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbl/32/5984_2.png) [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Post date:** [September 27, 2022, 5:14pm UTC](https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878/1 "2022-09-27T17:14:10Z")

</div>

Hi,

After a break I’ve installed new Julia 1.8.1 version on Ubuntu 20.04.5 LTS machine, set path variable, in terminal Julia works just fine, but in VS Code I’m getting untypical error

> Could not start the Julia language server. Make sure the `julia.environmentPath` setting is valid.

I cannot find any sources what one can do with this. My path settings are pretty standard

> {  
> “terminal.integrated.commandsToSkipShell”: [  
> “language-julia.interrupt”  
> ],  
> “julia.symbolCacheDownload”: true,  
> “julia.executablePath”: “”,  
> “julia.environmentPath”: “”,  
> }

VS Code v1.71.2, Julia extension v1.7.12

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [September 28, 2022, 3:07am UTC](https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878/2 "2022-09-28T03:07:37Z")

</div>

Not an expert but I think that you can ignore setting `julia.environmentPath`, but it is more important to set `julia.executablePath` if VS Code is having trouble finding the `julia` executable for some reason: can you say whether or not you can launch an integrated REPL in VS Code?  
Also, try manually setting your Julia environment by clicking on `Julia env: ...` on the bottom blue bar of the window?

---

<div class="post-metadata">

**Author:** ![Tbl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbl/32/5984_2.png) [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Post date:** [September 28, 2022, 11:23am UTC](https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878/3 "2022-09-28T11:23:23Z")

</div>

In the terminal Julia works just fine, in the one integrated with VS Code too. The `Julia env: ...` is loading indefinitely, the error is `Cannot read properties of undefined (reading 'file')`. All of this is very confusing.

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [September 28, 2022, 12:14pm UTC](https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878/4 "2022-09-28T12:14:24Z")

</div>

I would try opening VS Code Settings → Extensions → Julia, and under “Julia: Executable Path”, manually adding the path to julia, e.g. the result of `whereis julia` in the terminal.

---

<div class="post-metadata">

**Author:** ![Tbl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbl/32/5984_2.png) [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Post date:** [September 28, 2022, 9:55pm UTC](https://discourse.julialang.org/t/error-julia-environmentpath-on-linux/87878/5 "2022-09-28T21:55:35Z")

</div>

It worked, thanks! Executable path was one of the first things I tried, but I have given soft link location, not the binary location. Only the binary location works. Strange.
