Description
Describe the problem
Arduino Firmware Uploader creates some temporary folders:
- Name format:
55770067919477794103602099745
- Name:
fwuploader
These persist even after the process completes.
The class of folder first on that list accumulates over time, which may eventually cause a performance impact.
To reproduce
- Take note of the contents of your temporary folder.
- Windows:
C:\Users\<user name>\AppData\Local\Temp
- Linux:
/tmp
- macOS
$TMPDIR
- Windows:
- Run the following command:
arduino-fwuploader firmware list
- Examine the contents of your temporary folder.
🐛 An additional 55770067919477794103602099745
folder is present.
🐛 The fwuploader
folder is still present.
Expected behavior
Temporary files are cleaned up on exit.
Arduino Language Server version
Operating system
- Windows
- Linux
- macOS
Operating system version
- Windows 11
- Ubuntu 22.04
- macOS Ventura
Additional context
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 reports:
- https://forum.arduino.cc/t/cleanup-of-tmp-seems-inop-kubuntu-20-04/1072075
- https://forum.arduino.cc/t/windows-10-ide-2-0-2-slow-start/1061136/4
- https://forum.arduino.cc/t/rc9-2-temporary-directories/1022812
- https://forum.arduino.cc/t/temporary-files-from-the-arduino-ide/1067309
Related:
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest version
- My report contains all necessary details