Skip to content

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

Closed
@mduchain

Description

@mduchain

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?

Metadata

Metadata

Assignees

Labels

Component: CompilationRelated to compilation of Arduino sketchesType: BugType: DuplicateAnother item already exists for this topicarduino-builderThe tool used to handle the Arduino sketch compilation processarduino-cliRelated to the arduino-cli tool

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions