Temporary files are not cleaned up #145
Labels
criticality: high
Of high impact
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
Arduino Language Server and clangd create some temporary files:
Name format:arduino-language-server2131811926/
Arduino CLI sketch build folder(Solved by Do proper clean-up of tmp directories #146)system-includes-0f3fe3.clangd
preamble-4df37f.pch
The first two of these persist even after the user exits the IDE.
The files accumulate over time, consuming significant amounts of disk space and may eventually cause a performance impact.
To reproduce
ⓘ This is only an arbitrary choice of a board that is supported by the language server.
🐛 Multiple additional
arduino-language-servernnnnnnnnn
folders are present.🐛 (If using Windows) Multiple additional
system-includes-nnnnn.clangd
files are present.🐛 The files produced by this single minimal demo consume a significant amount of disk space (on the order of > 0.5 MB on Windows).
Expected behavior
Temporary files are cleaned up on exit.
Arduino Language Server version
bdef5c2
Operating system
Operating system version
Additional context
I don't see the
system-includes-nnnnn.clangd
files in the temporary folder on Linux and macOS even while the IDE is running, so I am not sure whether they are never created at all, or whether they are stored in some other location.Additional reports:
Related:
Issue checklist
The text was updated successfully, but these errors were encountered: