Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
thomascenni opened this issue Aug 30, 2024 · 3 comments
Open
3 tasks done
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@thomascenni
Copy link

thomascenni commented Aug 30, 2024

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
@thomascenni thomascenni added the type: imperfection Perceived defect in any part of project label Aug 30, 2024
@per1234 per1234 changed the title Error creating report file Sketches report creation fails due to filename length limit when FQBN is very long Aug 31, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Aug 31, 2024
@per1234
Copy link
Collaborator

per1234 commented Aug 31, 2024

Hi @thomascenni. Thanks for your report. We will try to look into adjusting the code to handle this when we have time.

Until then, you should shorten the FQBN as a workaround. When you don't specify a custom board option in the FQBN, the default (which is the first option on the list) will be used. This means you only need to specify custom board options when the default value is not suitable. The only options in your FQBN that aren't defaults are the following:

  • FlashSize=16M
  • PartitionScheme=app3M_fat9M_16MB
  • PSRAM=opi
  • EventsCore=0

So you can use this FQBN:

esp32:esp32:esp32s3:FlashSize=16M,PartitionScheme=app3M_fat9M_16MB,PSRAM=opi,EventsCore=0

@thomascenni
Copy link
Author

Hello @per1234
Thanks for the suggestion, that's exactly what I did as workaround.
Is it possible to use the settings (fqbn, libraries, ...) already defined in the https://arduino.github.io/arduino-cli/1.0/sketch-project-file/ ?

@per1234
Copy link
Collaborator

per1234 commented Aug 31, 2024

Unfortunately there isn't any support for using the action with the sketch project file. We are tracking the request for adding such support here: #248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants