Problem with VSCode connecting to language server

This morning, I’m having a problem with VS Code. It seems unable to connect to the language server. It was fine yesterday. This is a work computer (but working from home). I do not see the same problem on my home computer which sits next to the work computer at home. Both are Win11. I can still execute scripts in VSCode despite this error.

I’ve not knowingly changed anything overnight on either machine.

The problem seems to be “Access is denied” - for example:

c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\JSON\uf6oy_bkEHX.dll: Access is denied. 

But I can navigate to this folder and open the files in it (eg in Notepad) from Windows Explorer, and save them back out under a different name to the same folder. However, this specific file doesn’t seem to be there. Correction, file is there - I was looking under ~\JSONRPC.

Any hints on a fix very welcome…

The output (long!) looks like this (repeated until it gives up…)

[ Info: Starting LS with Julia 1.11.4
  Activating project at `c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\environments\languageserver\v1.11`
[ Info: Starting the Julia Language Server
Precompiling LanguageServer...
           ✗ CSTParser
           ✗ DataStructures
           ✗ Salsa
           ✗ TestItemDetection
           ✗ JSONRPC
           ✗ JuliaWorkspaces
           ✗ PrecompileTools
           ✗ StaticLint
           ✗ CommonMark
           ✗ JuliaFormatter
Info Given LanguageServer was explicitly requested, output will be shown live e[0K
e[0KERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\JSON\uf6oy_bkEHX.dll: Access is denied. 
e[0K
e[0KStacktrace:
e[0K  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
e[0K    @ Base .\loading.jl:1245
e[0K  [2] _include_from_serialized (repeats 2 times)
e[0K    @ .\loading.jl:1210 [inlined]
e[0K  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
e[0K    @ Base .\loading.jl:2057
e[0K  [4] _require(pkg::Base.PkgId, env::String)
e[0K    @ Base .\loading.jl:2527
e[0K  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
e[0K    @ Base .\loading.jl:2388
e[0K  [6] #invoke_in_world#3
e[0K    @ .\essentials.jl:1089 [inlined]
e[0K  [7] invoke_in_world
e[0K    @ .\essentials.jl:1086 [inlined]
e[0K  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
e[0K    @ Base .\loading.jl:2375
e[0K  [9] macro expansion
e[0K    @ .\loading.jl:2314 [inlined]
e[0K [10] macro expansion
e[0K    @ .\lock.jl:273 [inlined]
e[0K [11] __require(into::Module, mod::Symbol)
e[0K    @ Base .\loading.jl:2271
e[0K [12] #invoke_in_world#3
e[0K    @ .\essentials.jl:1089 [inlined]
e[0K [13] invoke_in_world
e[0K    @ .\essentials.jl:1086 [inlined]
e[0K [14] require(into::Module, mod::Symbol)
e[0K    @ Base .\loading.jl:2260
e[0K [15] include
e[0K    @ .\Base.jl:557 [inlined]
e[0K [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
e[0K    @ Base .\loading.jl:2881
e[0K [17] top-level scope
e[0K    @ stdin:6
e[0Kin expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\LanguageServer\src\LanguageServer.jl:1
e[0Kin expression starting at stdin:6
           ✗ LanguageServer
  0 dependencies successfully precompiled in 13 seconds. 44 already precompiled.

┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\error_handler.jl:15
ERROR: The following 11 direct dependencies failed to precompile:

JuliaWorkspaces 

Failed to precompile JuliaWorkspaces [e554591c-7f10-434f-9f27-2097f62a04fd] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\JuliaWorkspaces\\jl_650E.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\JuliaSyntax\KyTzp_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\JuliaWorkspaces\src\JuliaWorkspaces.jl:1
in expression starting at stdin:6
LanguageServer 

Failed to precompile LanguageServer [2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\LanguageServer\\jl_81D6.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\JSON\uf6oy_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\LanguageServer\src\LanguageServer.jl:1
in expression starting at stdin:6

CSTParser 

Failed to precompile CSTParser [00ebfdb7-1f24-5e51-bd34-a7502290713f] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\CSTParser\\jl_5A0C.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\Tokenize\7Oi97_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\CSTParser\src\CSTParser.jl:1
in expression starting at stdin:6

JuliaFormatter 

Failed to precompile JuliaFormatter [98e50ef6-434e-11e9-1051-2b60c6c9e899] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\JuliaFormatter\\jl_7550.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\Tokenize\7Oi97_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\CSTParser\src\CSTParser.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile CSTParser [00ebfdb7-1f24-5e51-bd34-a7502290713f] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\CSTParser\\jl_767D.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
    @ Base .\loading.jl:3174
  [3] (::Base.var"#1110#1111"{Base.PkgId})()
    @ Base .\loading.jl:2579
  [4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\TGebbels\.julia\juliaup\julia-1.11.4+0.x64.w64.mingw32\share\julia\stdlib\v1.11\FileWatching\src\pidfile.jl:95
  [5] #mkpidlock#6
    @ C:\Users\TGebbels\.julia\juliaup\julia-1.11.4+0.x64.w64.mingw32\share\julia\stdlib\v1.11\FileWatching\src\pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\TGebbels\.julia\juliaup\julia-1.11.4+0.x64.w64.mingw32\share\julia\stdlib\v1.11\FileWatching\src\pidfile.jl:116
  [7] #invokelatest#2
    @ .\essentials.jl:1057 [inlined]
  [8] invokelatest
    @ .\essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:3698
 [10] maybe_cachefile_lock
    @ .\loading.jl:3695 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2565
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
 [13] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
 [16] macro expansion
    @ .\loading.jl:2314 [inlined]
 [17] macro expansion
    @ .\lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [19] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [22] include
    @ .\Base.jl:557 [inlined]
 [23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [24] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\JuliaFormatter\src\JuliaFormatter.jl:1
in expression starting at stdin:6

StaticLint 

Failed to precompile StaticLint [b3cc710f-9c33-5bdb-a03d-a94903873e97] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\StaticLint\\jl_64FB.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\SymbolServer\355ac_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\StaticLint\src\StaticLint.jl:1
in expression starting at stdin:6

TestItemDetection 

Failed to precompile TestItemDetection [76b0de8b-5c4b-48ef-a724-914b33ca988d] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\TestItemDetection\\jl_5A5D.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\JuliaSyntax\KyTzp_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\TestItemDetection\src\TestItemDetection.jl:1
in expression starting at stdin:6

DataStructures 

Failed to precompile DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\DataStructures\\jl_5AB4.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\Compat\GSFWK_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\DataStructures\src\DataStructures.jl:1
in expression starting at stdin:6

PrecompileTools 

Failed to precompile PrecompileTools [aea7be01-6a6a-4083-8856-8a6e6704d82a] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\PrecompileTools\\jl_64AA.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\Preferences\pWSk8_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] top-level scope
    @ c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\PrecompileTools\src\PrecompileTools.jl:4
 [16] include
    @ .\Base.jl:557 [inlined]
 [17] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [18] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\PrecompileTools\src\PrecompileTools.jl:1
in expression starting at stdin:6

Salsa 

Failed to precompile Salsa [1fbf2c77-44e2-4d5d-8131-0fa618a5c278] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\Salsa\\jl_5A92.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\MacroTools\38lnR_bkEHX.dll: Access is denied. 

Stacktrace:
  [1] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1245
  [2] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base .\loading.jl:2057
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
  [6] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
  [9] macro expansion
    @ .\loading.jl:2314 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [12] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
 [15] include
    @ .\Base.jl:557 [inlined]
 [16] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:2881
 [17] top-level scope
    @ stdin:6
in expression starting at c:\Users\TGebbels\.vscode\extensions\julialang.language-julia-1.140.2\scripts\packages\Salsa\src\Salsa.jl:1
in expression starting at stdin:6

JSONRPC 

Failed to precompile JSONRPC [b9b8584e-8fd3-41f9-ad0c-7255d428e418] to "c:\\Users\\TGebbels\\AppData\\Roaming\\Code\\User\\globalStorage\\julialang.language-julia\\lsdepot\\v1\\compiled\\v1.11\\JSONRPC\\jl_5A70.tmp".
ERROR: LoadError: Error opening package file c:\Users\TGebbels\AppData\Roaming\Code\User\globalStorage\julialang.language-julia\lsdepot\v1\compiled\v1.11\JSON\uf6oy_bkEHX.dll: Access is denied. 

[etc, etc]

[Error - 10:00:03 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 10:00:03 AM] Connection to server got closed. Server will restart.
true
[Error - 10:00:03 AM] Julia Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:00:03 AM] Server process exited with code 1.

Try the following

  1. uninstall the julia extension
  2. delete %HOMEPATH%\.vscode\extensions\julialang.language-julia-1.140.2
  3. delete %APPDATA%\Roaming\Code\User\globalStorage\julialang.language-julia
  4. install the julia extension again

Thank you for this suggestion which I tried, followed by a re-boot, but unfortunately it hasn’t worked.

VS Code still shows

I’ve rerun juliaup and it downloaded and installed julia 11.5 but VS Code still doesn’t connect.

Do I have to delete julia completely and reinstall?

I missed this executablePath error last time.

Do you actually have julia in the system path?

Does it work if you write down the julia path directly into the setting julia.executablePath ?