# How to tell vscode language server to use julia executable path and DEPOT\_PATH?

**URL:** <https://discourse.julialang.org/t/how-to-tell-vscode-language-server-to-use-julia-executable-path-and-depot-path/133498>\
**Category:** VS Code\
**Tags:** vscode, languageserver, ssh\
**Created:** [October 29, 2025, 9:00am UTC](https://discourse.julialang.org/t/how-to-tell-vscode-language-server-to-use-julia-executable-path-and-depot-path/133498 "2025-10-29T09:00:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![progtw1](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@progtw1](https://discourse.julialang.org/u/progtw1)\
**Post date:** [October 29, 2025, 9:00am UTC](https://discourse.julialang.org/t/how-to-tell-vscode-language-server-to-use-julia-executable-path-and-depot-path/133498/1 "2025-10-29T09:00:50Z")

</div>

I am using a setup on a shared cluster where I work with the vscode remote extension and where Julia is installed using a module system rather than juliaup.

In VSCode settings I set both Julia Executable path and Language Server Executable path to the 1.11.7 binary: `/Net/Groups/Services/HPC_22/apps/julia/julia-1.11.7/bin/julia`

Starting the Julia REPL correctly uses Julia 1.7:

```julia-auto
julia> VERSION, DEPOT_PATH
(v"1.11.7", ["/User/homes/twutz/scratch/twutz/julia_gpu_depots", "/Net/Groups/Services/HPC_22/apps/julia/julia-1.11.7/local/share/julia", "/Net/Groups/Services/HPC_22/apps/julia/julia-1.11.7/share/julia"])

```

However the language server output pane reports:

```julia-auto
 Info: Starting LS with Julia 1.11.6
  Activating project at `/Net/Groups/BGI/scratch/twutz/.vscode-server/extensions/julialang.language-julia-1.149.2/scripts/environments/languageserver/v1.11`
...
Failed to precompile Tokenize [0796e94c-ce3b-5d07-9a54-7f471281c624] to "/User/homes/twutz/.vscode-server/data/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.11/Tokenize/jl_Qe9nz4".

ERROR: Unable to load dependent library /Net/Groups/BGI/scratch/twutz/julia_cluster_depots/juliaup/julia-1.11.6+0.x64.linux.gnu/bin/../lib/julia/libjulia-codegen.so.1.11

Message:libLLVM-16jl.so: failed to map segment from shared object

```

From that output I suspect that the LS (language server)

- uses the wrong julia executable (the juliaup version from the shared file system rather than the module version)
- uses a wrong JULIA\_DEPOT\_PATH (I set it to different value in my `.profile` when running julia from a gpu node:

```julia-auto
if ["$(hostname)" == "node-r6-he01.bgc-jena.mpg.de"]; then
  export JULIA_DEPOT_PATH="/User/homes/twutz/scratch/twutz/julia_gpu_depots:"
else
  export JULIA_DEPOT_PATH="/User/homes/twutz/scratch/twutz/julia_cluster_depots:"
fi 

```

I try to only use the module version and to use separate DEPOT\_PATH depending on which node on the cluster julia is started (the nodes share the same file system). I suspect that the usage of the wrong julia executable and wrong DEPOT\_PATH by the LS seems to mess up my julia installation, e.g. by compiling CUDA with available shared NVIDIA libraries or without them to the wrong DEPOT\_PATH.

How do I tell vscode language server to use correct julia executable path and DEPOT\_PATH?

---

<div class="post-metadata">

**Author:** ![mihalybaci](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mihalybaci/32/13528_2.png) [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Post date:** [October 29, 2025, 2:44pm UTC](https://discourse.julialang.org/t/how-to-tell-vscode-language-server-to-use-julia-executable-path-and-depot-path/133498/2 "2025-10-29T14:44:35Z")

</div>

In VS Code, click on the “Extensions” tab, and click on the gear symbol next to the Julia exentions and go to “Settings”. Just type in “path” into the search bar and all the path-related fields will appear.

You can definitely select the correct executable, but I don’t see a field for DEPOT\_PATH explicitly.

---

<div class="post-metadata">

**Author:** ![progtw1](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@progtw1](https://discourse.julialang.org/u/progtw1)\
**Post date:** [October 29, 2025, 5:18pm UTC](https://discourse.julialang.org/t/how-to-tell-vscode-language-server-to-use-julia-executable-path-and-depot-path/133498/3 "2025-10-29T17:18:41Z")

</div>

Thanks for the reply. The suggested procedure results in two additional settings:

- Julia: environment Path
- Julia \> Plots:Path  
Both seem to be of no significance.

I already configured

- Julia Executable path
- Language Server Executable path

but those are not picked up by the LS.

---

<div class="post-metadata">

**Author:** ![jlchan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlchan/32/10958_2.png) [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Post date:** [January 19, 2026, 11:07pm UTC](https://discourse.julialang.org/t/how-to-tell-vscode-language-server-to-use-julia-executable-path-and-depot-path/133498/4 "2026-01-19T23:07:35Z")

</div>

I’m running into this same issue; I can set `JULIA_DEPOT_PATH` correctly in the terminal, but not when connecting remotely using SSH through VSCode.

Edit: I think I got something to work based on [Unable to set/change Julia environment in vscode · Issue #2631 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/issues/2631). Setting `terminal.integrated.env.linux` in VSCode seems to work

 ![Screenshot 2026-01-19 at 5.36.05 PM](https://global.discourse-cdn.com/julialang/original/3X/9/0/901dfac7a95d09b0340864ee0f9c07356bc0e675.png)  
 ![Screenshot 2026-01-19 at 5.36.22 PM](https://global.discourse-cdn.com/julialang/original/3X/7/b/7b714084b0684f9c108d3cdabc384c4075b901f8.png)
