# Loading Unitful from cache takes forever at every VScode restart

**URL:** <https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979>\
**Category:** Performance\
**Tags:** languageserver, cache\
**Created:** [May 4, 2026, 12:32pm UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979 "2026-05-04T12:32:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alequa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alequa/32/12338_2.png) [@alequa](https://discourse.julialang.org/u/alequa)\
**Post date:** [May 4, 2026, 12:32pm UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/1 "2026-05-04T12:32:51Z")

</div>

Hello,

I am using a large environment that loads several packages. The language server takes several minutes (!!!) every time it loads `Unitful` from cache. The other packages go just fine!

```julia-auto
[ Info: Done loading EasyFit from cache... (took 14.0s)
[ Info: Loading Unitful from cache...
[ Info: Done loading Unitful from cache... (took 460.0s)
...
[ Info: Loading DSP from cache... (3%)
[ Info: Done loading DSP from cache... (took 0.016s) (3%)

```

Do you know why? and how to fix it?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [May 4, 2026, 1:02pm UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/2 "2026-05-04T13:02:47Z")

</div>

Consider deleting the cache file. It’s possible that it got corrupted somehow. If that doesn’t help, let me know what Julia/Unitful versions you’re seeing this on and I’ll try to repro the issue.

---

<div class="post-metadata">

**Author:** ![alequa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alequa/32/12338_2.png) [@alequa](https://discourse.julialang.org/u/alequa)\
**Post date:** [May 5, 2026, 9:35am UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/3 "2026-05-05T09:35:42Z")

</div>

Hi! thanks!

I tried this:

```julia-auto
 rm -r .julia/compiled/v1.12/Unitful
 rm -rf .julia/packages/Unitful/      

```

didn´t work ☹

I have this version installed: Unitful ─ v1.28.0

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [May 5, 2026, 10:04am UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/4 "2026-05-05T10:04:59Z")

</div>

You need to delete `/.config/Code/User/globalStorage/julialang.language-julia/symbolstorev5/U/Unitful_1986cc42-f94f-5a68-af5c-568840ba703d/` or something similar (not sure what OS you’re on).

---

<div class="post-metadata">

**Author:** ![alequa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alequa/32/12338_2.png) [@alequa](https://discourse.julialang.org/u/alequa)\
**Post date:** [May 5, 2026, 2:27pm UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/5 "2026-05-05T14:27:08Z")

</div>

Yes, that worked (on Linux).

funny story, now the next on the list are taking long:

```julia-auto
[ Info: Loading Statistics from cache...
[ Info: Done loading Statistics from cache... (took 160.0s)
[ Info: Loading LinearAlgebra from cache...
[ Info: Done loading LinearAlgebra from cache... (took 250.0s)

```

Could it be that it’s actually the Language Server compilation time that I am seeing here? All the other packages (400+) are loaded in no time.

ex.

```julia-auto
[ Info: Loading TestItems from cache...
[ Info: Done loading TestItems from cache... (took 0.017s)
[ Info: Loading LsqFit from cache...
[ Info: Done loading LsqFit from cache...
[ Info: Loading ForwardDiff from cache...
[ Info: Done loading ForwardDiff from cache... (took 0.02s)
``
```

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [May 5, 2026, 2:29pm UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/6 "2026-05-05T14:29:19Z")

</div>

Hmm, I don’t see why that would happen. Try deleting the whole cache `~/.config/Code/User/globalStorage/julialang.language-julia/symbolstorev5` (or maybe just move it into a different dir for now).

Edit: And if you have any more info that could be helpful, please post that in

> <https://github.com/julia-vscode/SymbolServer.jl/issues/307>
>
> \- https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-…every-vscode-restart/136979
> \- cache deserialisation can sometimes catastrophically fail by taking an unbounded amount of memory
> 
> These two issues may be related. Need to investigate the codebase and create a fail-safe.

---

<div class="post-metadata">

**Author:** ![alequa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alequa/32/12338_2.png) [@alequa](https://discourse.julialang.org/u/alequa)\
**Post date:** [May 6, 2026, 9:48am UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/7 "2026-05-06T09:48:09Z")

</div>

> [@pfitzseb](#):
>
> ~/.config/Code/User/globalStorage/julialang.language-julia/symbolstorev5

Sorry for my slow responses, when during my working day it s usually complicated to restart the entire vscode session to test. I tried this morning, and deleted the `symbolstorev5`. It re-downloaded all the cache files, but we are in the same (or worse) situation:

```julia-auto
[ Info: Done loading EasyFit from cache... (took 15.0s)
[ Info: Loading Unitful from cache...
[ Info: Done loading Unitful from cache... (took 670.0s)

```

I am now downloading Julia v1.12.6 and see if this is a fix 😉

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [May 6, 2026, 10:19am UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/8 "2026-05-06T10:19:40Z")

</div>

Which Julia version were you on before?

---

<div class="post-metadata">

**Author:** ![alequa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alequa/32/12338_2.png) [@alequa](https://discourse.julialang.org/u/alequa)\
**Post date:** [May 6, 2026, 11:24am UTC](https://discourse.julialang.org/t/loading-unitful-from-cache-takes-forever-at-every-vscode-restart/136979/9 "2026-05-06T11:24:29Z")

</div>

1.12.5
