# Julia Language Server failed to precompile

**URL:** <https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286>\
**Category:** General Usage\
**Created:** [August 28, 2023, 10:23am UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286 "2023-08-28T10:23:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBaisset](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaisset/32/223605_2.png) [@MBaisset](https://discourse.julialang.org/u/MBaisset)\
**Post date:** [August 28, 2023, 10:23am UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286/1 "2023-08-28T10:23:46Z")

</div>

Hello,

I’ve tried to install Julia 1.9.3 on my Mac OS Mojave 10.14.6 (previously using Julia 1.8.5 that perfectly worked).  
I use VScode as editor, but now with Julia 1.9.3, VScode Julia language server fails precompiling and crash with error messages like :

The Language Server failed to precompile.  
Please make sure you have permissions to write to the LS depot path at  
/Users/baisset/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.50.1/scripts/error\_handler.jl:15  
ERROR: Failed to precompile LanguageServer [2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7] to “/Users/baisset/Library/Application Support/Code/User/globalStorage/julialang.language-julia/lsdepot/v1/compiled/v1.9/LanguageServer/jl\_yvyGKP”.

Does anyone have an idea of how to solve the problem, as I have to use Julia 1.9 in order to run codes that require last version of Makie (which requires Julia 1.9) ?

Thank you,  
Marie

---

<div class="post-metadata">

**Author:** ![Gravlax](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Post date:** [August 28, 2023, 4:59pm UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286/2 "2023-08-28T16:59:28Z")

</div>

This problems looks similar to what is described [here](https://discourse.julialang.org/t/vscode-julia-server-fails-precompilation/98865).  
It seems that there is a conflict between Julia v1.9 and VScode language server on older macs. I would not know a solution though…

---

<div class="post-metadata">

**Author:** ![MBaisset](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaisset/32/223605_2.png) [@MBaisset](https://discourse.julialang.org/u/MBaisset)\
**Post date:** [August 30, 2023, 4:50pm UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286/3 "2023-08-30T16:50:02Z")

</div>

Yes you’re right the problem looks similar to that one but no solutions have been found for it…  
I tried to uninstall VSCode (in a very clean way, deleting “Code” and “~/.vscode” hidden folders in my computer) and install it again but the problem persists.  
It is strange because I now have installed the latest version of VSCode (1.81.1) with the latest version of Julia (1.9.3), so I do not understand why it is not working only because my Mac is old (2019 ! Obsolescence is a fast process…)

---

<div class="post-metadata">

**Author:** ![Gravlax](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Post date:** [September 1, 2023, 11:26am UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286/4 "2023-09-01T11:26:56Z")

</div>

Sorry to hear you that it still doesn’t work. You could try reaching the language server developers via [github](https://github.com/julia-vscode/LanguageServer.jl/issues).

---

<div class="post-metadata">

**Author:** ![MBaisset](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaisset/32/223605_2.png) [@MBaisset](https://discourse.julialang.org/u/MBaisset)\
**Post date:** [September 6, 2023, 12:39pm UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286/5 "2023-09-06T12:39:54Z")

</div>

You are right. I’m gonna do that, thanks.

---

<div class="post-metadata">

**Author:** ![Gravlax](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Post date:** [October 11, 2023, 10:55am UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286/6 "2023-10-11T10:55:42Z")

</div>

In my case the problem disappeared after an OS update, see [there](https://discourse.julialang.org/t/vscode-julia-server-fails-precompilation/98865/24) - maybe this could also help you?
