# Setting up Julia in Visual Studio Code?

**URL:** https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311
**Category:** New to Julia
**Tags:** question
**Created:** [January 21, 2023, 1:23pm UTC](https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311 "2023-01-21T13:23:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marianoarnaiz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marianoarnaiz/32/19377_2.png) [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)
#### Post date: [January 21, 2023, 1:23pm UTC](https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311/1 "2023-01-21T13:23:26Z")

</div>

Hi all!

I wonder if you can help me here with something Julia and VSC related

I used to work with Atom as a Julia IDE. Now that Atom is gone, I hear everyone is using VSC.

In my clean new s MAC OS system I installed Julia 1.9 beta (downloaded the .dmg, moved the file to Applications, and added the bin to the tcsh path).

I installed VSC and downloaded the Julia package, and put the path to the bin.

I keep getting this messages:

 ![Screenshot 2023-01-21 at 2.18.18 PM](https://global.discourse-cdn.com/julialang/original/3X/2/d/2d2a47247c631359f66324f9082e3474d82724c9.png)

and the next log output:

> The Language Server failed to precompile.  
> Please make sure you have permissions to write to the LS depot path at  
> /Users/andurin/Library/Application Support/Code/User/globalStorage/julialang.language-julia/lsdepot/v1
> 
> ┌ Error: Some Julia code in the VS Code extension crashed  
> └ @ Main ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/error\_handler.jl:15  
> ERROR: Failed to precompile LanguageServer [2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7] to “/Users/andurin/Library/Application Support/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/LanguageServer/jl\_TjdsR4”.  
> Stacktrace:  
> [1] top-level scope  
> @ ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/languageserver/main.jl:77  
> [2] include(mod::Module, \_path::String)  
> @ Base ./Base.jl:456  
> [3] exec\_options(opts::Base.JLOptions)  
> @ Base ./client.jl:307  
> [4] \_start()  
> @ Base ./client.jl:522  
> [Info - 2:18:31 PM] Connection to server got closed. Server will restart.  
> [Error - 2:18:31 PM] Server initialization failed.  
> Message: Pending response rejected since connection got disposed  
> Code: -32097  
> [Error - 2:18:31 PM] Julia Language Server client: couldn’t create connection to server.  
> Message: Pending response rejected since connection got disposed  
> Code: -32097  
> [Error - 2:18:31 PM] Restarting server failed  
> Message: Pending response rejected since connection got disposed  
> Code: -32097  
> Activating project at `~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/environments/languageserver/fallback`  
> [ Info: Starting the Julia Language Server  
> ERROR: LoadError: ArgumentError: Package DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] is required but does not seem to be installed:
> 
> - Run `Pkg.instantiate()` to install all recorded dependencies.
> 
> Stacktrace:  
> [1] \_require(pkg::Base.PkgId, env::String)  
> @ Base ./loading.jl:1681  
> [2] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
> @ Base ./loading.jl:1567  
> [3] macro expansion  
> @ ./loading.jl:1555 [inlined]  
> [4] macro expansion  
> @ ./lock.jl:267 [inlined]  
> [5] require(into::Module, mod::Symbol)  
> @ Base ./loading.jl:1518  
> [6] top-level scope  
> @ ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/Compat/src/deprecated.jl:23  
> [7] eval(m::Module, e::Any)  
> @ Core ./boot.jl:370  
> [8] top-level scope  
> @ ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/Compat/src/deprecated.jl:22  
> [9] include(mod::Module, \_path::String)  
> @ Base ./Base.jl:456  
> [10] include(x::String)  
> @ Compat ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/Compat/src/Compat.jl:1  
> [11] top-level scope  
> @ ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/Compat/src/Compat.jl:1328  
> [12] include  
> @ ./Base.jl:456 [inlined]  
> [13] 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:1952  
> [14] top-level scope  
> @ stdin:2  
> in expression starting at /Users/andurin/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/Compat/src/deprecated.jl:18  
> in expression starting at /Users/andurin/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/Compat/src/Compat.jl:1  
> in expression starting at stdin:2  
> ERROR: LoadError: Failed to precompile Compat [34da2185-b29b-5c13-b0c7-acf172513d20] to “/Users/andurin/Library/Application Support/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/Compat/jl\_mAMaU4”.  
> 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)  
> @ Base ./loading.jl:2195  
> [3] compilecache  
> @ ./loading.jl:2068 [inlined]  
> [4] \_require(pkg::Base.PkgId, env::String)  
> @ Base ./loading.jl:1712  
> [5] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
> @ Base ./loading.jl:1567  
> [6] macro expansion  
> @ ./loading.jl:1555 [inlined]  
> [7] macro expansion  
> @ ./lock.jl:267 [inlined]  
> [8] require(into::Module, mod::Symbol)  
> @ Base ./loading.jl:1518  
> [9] include  
> @ ./Base.jl:456 [inlined]  
> [10] 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:1952  
> [11] top-level scope  
> @ stdin:2  
> in expression starting at /Users/andurin/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/DataStructures/src/DataStructures.jl:1  
> in expression starting at stdin:2  
> ERROR: LoadError: Failed to precompile DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] to “/Users/andurin/Library/Application Support/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/DataStructures/jl\_Ubvx6y”.  
> 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)  
> @ Base ./loading.jl:2195  
> [3] compilecache  
> @ ./loading.jl:2068 [inlined]  
> [4] \_require(pkg::Base.PkgId, env::String)  
> @ Base ./loading.jl:1712  
> [5] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
> @ Base ./loading.jl:1567  
> [6] macro expansion  
> @ ./loading.jl:1555 [inlined]  
> [7] macro expansion  
> @ ./lock.jl:267 [inlined]  
> [8] require(into::Module, mod::Symbol)  
> @ Base ./loading.jl:1518  
> [9] include  
> @ ./Base.jl:456 [inlined]  
> [10] 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:1952  
> [11] top-level scope  
> @ stdin:2  
> in expression starting at /Users/andurin/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/JuliaFormatter/src/JuliaFormatter.jl:1  
> in expression starting at stdin:2  
> ERROR: LoadError: Failed to precompile JuliaFormatter [98e50ef6-434e-11e9-1051-2b60c6c9e899] to “/Users/andurin/Library/Application Support/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/JuliaFormatter/jl\_wdbaVX”.  
> 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)  
> @ Base ./loading.jl:2195  
> [3] compilecache  
> @ ./loading.jl:2068 [inlined]  
> [4] \_require(pkg::Base.PkgId, env::String)  
> @ Base ./loading.jl:1712  
> [5] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
> @ Base ./loading.jl:1567  
> [6] macro expansion  
> @ ./loading.jl:1555 [inlined]  
> [7] macro expansion  
> @ ./lock.jl:267 [inlined]  
> [8] require(into::Module, mod::Symbol)  
> @ Base ./loading.jl:1518  
> [9] include  
> @ ./Base.jl:456 [inlined]  
> [10] 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:1952  
> [11] top-level scope  
> @ stdin:2  
> in expression starting at /Users/andurin/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/LanguageServer/src/LanguageServer.jl:1  
> in expression starting at stdin:2

---

<div class="post-metadata">

### Author: ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)
#### Post date: [January 21, 2023, 2:07pm UTC](https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311/2 "2023-01-21T14:07:50Z")

</div>

Duplicate of:

> [@How to use Julia 1.9?](https://discourse.julialang.org/t/how-to-use-julia-1-9/92442):
>
> I heard people use pre-release builds of Julia 1.9 but apparently the language server [doesn’t support it](https://github.com/julia-vscode/julia-vscode/issues/2939#issuecomment-1280048479). Are people using Julia without language server or what?

Github issue:

> <https://github.com/julia-vscode/julia-vscode/issues/3194>
>
> This pop up shows repeatedly with the beta version:
> 
> !\[image\](https://user-ima…ges.githubusercontent.com/3345261/211828617-a0b854fa-b17f-4e96-a8d8-c20f041bd42e.png)
> 
> I've installed Julia with juliaup on Windows.

As per the first link, try switching to a pre-release version of the VSCode extension.

---

<div class="post-metadata">

### Author: ![marianoarnaiz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marianoarnaiz/32/19377_2.png) [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)
#### Post date: [January 23, 2023, 9:16am UTC](https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311/3 "2023-01-23T09:16:17Z")

</div>

Thanks!
