Skip to content

Arduino 1.8.13 (win10) - header files not found due to max path length exceeded in ArduinoData/packages #10754

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

Closed
mduchain opened this issue Sep 12, 2020 · 1 comment
Assignees
Labels
arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug Type: Duplicate Another item already exists for this topic

Comments

@mduchain
Copy link

mduchain commented Sep 12, 2020

IDE version: 1.8.13 (Windows Store 1.8.42.0)

Action: Compiling example sketch for Heltec ESP32 Wifi board.

I've found an issue with include files when the path+file is particularly long under the ArduinoData/packages folder (> 210).

Compiler bails with error "file not found" for some header files. The real reason is the length of the path.
I've modified some of the header files to have shorter names, bringing the size of path+file under 210 chars.
By renaming and shortening the paths, I was able to compile and run the project without issue.

For info, my "user name" under c:\users is 44 char longs. Needless to say I can't change this.
Any workaround, like moving the ArduinoData folder to an arbitrary location?

@mduchain mduchain changed the title Arduino 1.8.13 (win10) - header files not found due to due to max path length exceeded in ArduinoData/packages Arduino 1.8.13 (win10) - header files not found due to max path length exceeded in ArduinoData/packages Sep 12, 2020
@per1234 per1234 added arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug labels Sep 25, 2020
@per1234
Copy link
Collaborator

per1234 commented Sep 25, 2020

Hi @mduchain. Thanks for taking the time to report this bug. We already have an open issue to track this (#10565), so I'm going to go ahead and close this as a duplicate.

You'll be happy to see there is some work in progress to address this issue in Arduino CLI, where the underlying functionality of Arduino IDE is increasingly implemented: arduino/arduino-cli#961

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

2 participants