Skip to content

Sketches report creation fails due to filename length limit when FQBN is very long #314

Open
@thomascenni

Description

@thomascenni

Describe the problem

When using a complex fqbn like this one:

fqbn:esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,DebugLevel=none,PSRAM=opi,LoopCore=1,EventsCore=0,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default

the report file name is too long and cannot be saved.
Should add a parameter with the name for the report, or shorten the name.
Also the "," and "=" should be replaced in the string.

report

To reproduce

Use fqbn provided.

Expected behavior

File saved.

'arduino/compile-sketches' version

1.1.2

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

Assignees

No one assigned

    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