# VSCode extension not seeing my julia 1.7.1 install

**URL:** https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267
**Category:** VS Code
**Created:** [January 9, 2022, 3:51am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267 "2022-01-09T03:51:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![quailman1031](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quailman1031/32/32577_2.png) [@quailman1031](https://discourse.julialang.org/u/quailman1031)
#### Post date: [January 9, 2022, 3:51am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/1 "2022-01-09T03:51:49Z")

</div>

I can not get the VS Code Julia extension (version 1.5.8) to find my installation of the most recent Julia version (1.7.1). Specifying the execution path does not help. It seems to work for other Julia versions (Julia 1.5.2 and Julia 1.6.2) when I put in those paths, and when I don’t specify the path, it picks up my Julia 1.6.2 install. All are in the default install location, “AppData\Local\Programs”.

From Windows command line (cmd) and PowerShell, “julia” launches the Julia 1.7.1 REPL, and commands work fine there.

I various reboots, uninstalls, and reinstalls of Julia 1.7.1, the extension, and VS Code. I don’t think that it is a permissions problem since running VS Code as Administrator does the same thing. I am not sure what else to try.

Is the extension incompatible with Julia 1.7.1?

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [January 9, 2022, 8:10pm UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/2 "2022-01-09T20:10:53Z")

</div>

I use a bash script to start vscode, which makes it possible to simply refer to `julia`.

```julia
#

# Installation script for portable Julia with VS Code
# version 1.0 (C) 2022, Petr Krysl
set -o errexit 
set -o nounset

# Make sure we are in the folder in which the portable Julia is installed.
MyPortableJulia=julia-1.7.1
if [! -d "$(pwd)"/assets/$MyPortableJulia] ; then
    if [! -f "$(pwd)"/assets/$MyPortableJulia-win64.zip] ; then
        echo "Need to be in the folder with the portable Julia, $MyPortableJulia"
        echo "or the zip file with the portable Julia, assets/$MyPortableJulia-win64.zip"
        exit 1
    fi
    cd assets
    echo "Unzipping assets/$MyPortableJulia-win64.zip"
    unzip -q "$(pwd)"/$MyPortableJulia-win64.zip
    cd ..
fi

# Locate the Julia depot in the current folder.
export MyDepot="$(pwd)"/assets/.$MyPortableJulia-depot
if [! -d "$MyDepot"] ; then
    mkdir "$MyDepot"
fi
export JULIA_DEPOT_PATH="$MyDepot"

# Expand the other zip files
cd assets
if [! -d gnuplot] ; then
    echo Expanding gnuplot assets
    unzip -q gnuplot.zip
fi
cd ..

# Make sure we can start Julia just by referring to the program name.
export PATH="$(pwd)"/assets/$MyPortableJulia/bin:$PATH

# Make sure we can start gnuplot just by referring to the program name.
export PATH="$(pwd)"/assets/gnuplot/bin:$PATH

# Add the Git binary
export PATH="$(pwd)"/assets/PortableGit/bin:$PATH

# Download, and instantiate the tutorial packages, in order to bring Julia depot up-to-date 
echo "Activating/instantiating a package"
for n in Example.jl 
do 
    if [! -d $n] ; then
        echo "Activating and instantiating $n"
        git clone https://github.com/PetrKryslUCSD/$n.git
    fi
    cd $n
    julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate(); Pkg.precompile(); exit()'
    cd ..
done

# Make sure the Julia REPL when started activates/instantiates
if [! -f "$MyDepot"/config/startup.jl] ; then
        if [! -d "$MyDepot"/config] ; then
                mkdir "$MyDepot"/config
        fi
        touch "$MyDepot"/config/startup.jl
cat<<EOF >> "$MyDepot/config/startup.jl"
using Pkg 
# Disable updating registry on add (still runs on up), as it is slow
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true
if isfile("Project.toml") && isfile("Manifest.toml")
   Pkg.activate(".") 
   Pkg.instantiate()
end
# Setup Revise.jl
atreplinit() do repl
    try
        @eval using Revise
    catch err
        println("Error starting Revise \$err")
    end
end
# Better format for floats
using Printf 
Base.show(io::IO, f::Float64) = @printf(io, "%1.5e", f)
Base.show(io::IO, f::Float32) = @printf(io, "%1.5e", f)
Base.show(io::IO, f::Float16) = @printf(io, "%1.5e", f)
EOF
fi

# Configure Julia to activate/instantiate opened project
if [! -d "$MyDepot"/config] ; then
    mkdir "$MyDepot"/config
    touch "$MyDepot"/config/startup.jl
fi

# Start VS Code
echo "Starting editor"
assets/VSCode/Code -a Example.jl

```

See: Portable Julia thread.

---

<div class="post-metadata">

### Author: ![mrVeng](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrveng/32/8836_2.png) [@mrVeng](https://discourse.julialang.org/u/mrVeng)
#### Post date: [January 10, 2022, 10:46am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/3 "2022-01-10T10:46:08Z")

</div>

I have the same problems. I assume VSCode is not yet compatible with Julia 1.7.1?

---

<div class="post-metadata">

### Author: ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)
#### Post date: [January 10, 2022, 11:33am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/4 "2022-01-10T11:33:06Z")

</div>

My experience is different: Windows 10, Julia 1.7.1 and VS code (Julia extension version 1.5.8) - and it works well. Perhaps something to notice: I have Julia 1.7.1 in my system path (but it appears @quailman1031 has that too).

---

<div class="post-metadata">

### Author: ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)
#### Post date: [January 10, 2022, 1:03pm UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/5 "2022-01-10T13:03:52Z")

</div>

It sometimes happens for Julia 1.7.0 as well. My workaround is simply to restart VS code until it finds Julia kernel again. 😂

---

<div class="post-metadata">

### Author: ![quailman1031](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quailman1031/32/32577_2.png) [@quailman1031](https://discourse.julialang.org/u/quailman1031)
#### Post date: [January 10, 2022, 7:15pm UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/6 "2022-01-10T19:15:45Z")

</div>

For completeness, I should have mentioned that I am running under Windows 7.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [January 10, 2022, 8:14pm UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/7 "2022-01-10T20:14:27Z")

</div>

Try [http://hogwarts.ucsd.edu/~pkrysl/shared/Portable\_Julia-1.7.zip](http://hogwarts.ucsd.edu/~pkrysl/shared/Portable_Julia-1.7.zip)  
I think you may like it.

---

<div class="post-metadata">

### Author: ![ivborissov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ivborissov/32/2841_2.png) [@ivborissov](https://discourse.julialang.org/u/ivborissov)
#### Post date: [January 12, 2022, 9:31am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/8 "2022-01-12T09:31:27Z")

</div>

I have the same problem with my Windows 7

> [@VSCode / Julia 1.7.1 / Windows 7 issue](https://discourse.julialang.org/t/vscode-julia-1-7-1-windows-7-issue/73920):
>
> Hi, The problem seems to be trivial, but I haven’t found any solutions yet. VSCode Extension reports Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary. The path (C:/Julia/bin/julia.exe) is correct and I can run it in powershell terminal in VSCode. My environment is: Windows 7 SP1 (prereqs met), Julia 1.7.1, VSCode 1.63.2 and VSCode Extension 1.5.8. The problem is not present with Julia 1.6.5 and the LanguageServer sta…

---

<div class="post-metadata">

### Author: ![kingsley1989](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kingsley1989/32/31950_2.png) [@kingsley1989](https://discourse.julialang.org/u/kingsley1989)
#### Post date: [February 16, 2022, 1:10pm UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/9 "2022-02-16T13:10:43Z")

</div>

Is this issue resolved? I also met this problem when I upgraded Julia from 1.5 to 1.7.2. Even if my path is correct, Julia extension (v1.5.11) could not start the language server. My system is also windows 7. I can also run Julia in PowerShell without a problem by just typing julia.

---

<div class="post-metadata">

### Author: ![quailman1031](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quailman1031/32/32577_2.png) [@quailman1031](https://discourse.julialang.org/u/quailman1031)
#### Post date: [February 22, 2022, 12:24am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/10 "2022-02-22T00:24:26Z")

</div>

I am still having the same issue. I just installed the latest VSCode today. Behave is unchanged.

---

<div class="post-metadata">

### Author: ![wfrgra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wfrgra/32/10702_2.png) [@wfrgra](https://discourse.julialang.org/u/wfrgra)
#### Post date: [March 10, 2022, 6:42am UTC](https://discourse.julialang.org/t/vscode-extension-not-seeing-my-julia-1-7-1-install/74267/11 "2022-03-10T06:42:43Z")

</div>

I also have this issue on a couple of computers running windows 7. It also appears to not work with Julia 1.8.0-beta1. I’ve opened an issue on the julia-vscode github page. [https://github.com/julia-vscode/julia-vscode/issues/2772](https://github.com/julia-vscode/julia-vscode/issues/2772)
