Loading Unitful from cache takes forever at every VScode restart

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!

[ 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?

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.

Hi! thanks!

I tried this:

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

didn´t work :frowning:

I have this version installed: Unitful ─ v1.28.0

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).

Yes, that worked (on Linux).

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

[ 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.

[ 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)
``

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

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:

[ 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 :wink:

Which Julia version were you on before?

1.12.5