.sonarlint/work directory keeps accumulating diskspace until my C drive is full

Please provide

  • Operating system: Windows 11
  • SonarQube for VS Code plugin version: 4.34.0
  • Programming language you’re coding in: Java & Typescript
  • Is connected mode used: not connected to anything

And a thorough description of the problem / question:

Every day I have to clear the C:\Users\Davy\.sonarlint\work folder, as it easily consumes 40–50GB a day.

Context: I have 5 or 6 VS Code windows open for multiple days, and am working in multiple Java and Typescript projects.

My C drive is limited to 512GB and I normally manage to keep 50GB free, but every day I get into a 0 bytes free due to .sonarlint\work directory. I cannot find a way to configure it to my second drive, so what can I do to avoid it taking up so much space?

Looking at the directory, just after trying to delete most of the files (a chunk seems to be locked by a process) there are 1500 directories, every one roughly 8MB in size. all named:

8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9545487700657005892/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9546634482818219351/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9556497559633096144/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9561730601464265448/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9563582319246109651/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9566865360698358491/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9581912420358095130/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store96068723786144081/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9610236482852402801/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9612342069281167055/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9618283648608909879/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9620071450069853363/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9632839539921448095/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9644498145270486688/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9650908730937186799/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9681914654267678830/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9695730062406174945/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9698343796063148417/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9709935031949149622/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9730782847946318183/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9734758708424670748/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9767470851342237044/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9770565414829879171/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9830695288599078594/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9838172764489874582/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9873512046672468652/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9880609169749805793/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9895586722792529444/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9898925382862833316/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9908798234527403567/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9910364291486097118/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9925283493362573596/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9929934331339271096/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9940148832673438463/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9940351276160041241/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9941933258876333081/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9954534489930715149/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9957730412043892080/
8.1M    /c/Users/Davy/.sonarlint/work/known-findings-store9968674544467109583/
8.0K    /c/Users/Davy/.sonarlint/work/known-findings-store9975484831719008014/

Is this a bug? Or is it intentional that every directory is not removed? In that case, is there a way to move this to a different drive?

Hello @Davy_Landman,

Thanks for reporting here. We are working right now on changing how we manage storage, so this issue should soon disappear.

I am not 100% sure it will be ready for the next release (planned next Monday), but definitely for the next one 2 weeks after. In the meantime, unfortunately I don’t think there is any workaround. If it becomes too annoying, you could temporarily disable the extension.

Sorry for the inconvenience, I will keep you updated when the bug is fixed

Hello @Davy_Landman,

This change has been released. Could you please update and check that disk consumption now stays in check?

okay, I’ll update and keep you informed, thanks for coming back to this.