Skip to content

Temporary files are not cleaned up #158

Closed
@per1234

Description

@per1234

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

  1. Take note of the contents of your temporary folder.
    • Windows:
      C:\Users\<user name>\AppData\Local\Temp
      
    • Linux:
      /tmp
      
    • macOS
      $TMPDIR
      
  2. Run the following command:
    arduino-fwuploader firmware list
    
  3. 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

2b1ab09

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:


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

Metadata

Metadata

Labels

topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions