Temporary files are not cleaned up #1795
Labels
topic: code
Related to content of the project itself
topic: theia
Related to the Theia IDE framework
type: imperfection
Perceived defect in any part of project
Describe the problem
The Arduino IDE application creates some temporary folders:
arduino-ide2-0694b57a37dbff387afae61891204d75/
.arduinoIDE-unsaved202301-12372-u0dvfq.rtr7i/
gdb-server-console-6800.log
github-remote/
http-remote/
theia_upload/
These persist even after the user exits the IDE.
In the case of the first two on the list above, the folders accumulate over time, which may eventually cause a performance impact.
To reproduce
ⓘ This is treated as an unsaved sketch.
🐛 An additional folder is present for each of the IDE windows you opened.
🐛 An additional folder is present for each of the unsaved sketches you opened.
🐛 An additional
gdb-server-console-nnnn.log
file is present for each of the IDE windows you opened.🐛 The
github-remote/
,http-remote/
, andtheia_upload/
temporary folders Arduino IDE creates are still presentExpected behavior
Temporary files are cleaned up on exit.
Arduino IDE version
76f9f63
Operating system
Operating system version
Additional context
This is similar to #1779. However, the two are distinct in that #1779 allows for easier management of the temporary files during runtime (e.g., configuring antivirus software exclusions) and manual cleanup of files leftover when the application is not able to perform an automatic cleanup (e.g., power outage, crash).
Some operating systems may eventually do a clean-up on the temporary folder, but this is not guaranteed. It is better for the application to take care of clean up of any temporary files once they are no longer needed.
Additional temporary files are generated by tools used by Arduino IDE (e.g., Arduino CLI, arduino-fwuploader, Arduino Language Server, clangd). Cleanup of those file should be the responsibility of the individual tool, not Arduino IDE, so cleanup of those files is out of scope for this issue.
They are tracked in the repositories of those projects:
Additional reports
Related
Issue checklist
The text was updated successfully, but these errors were encountered: