Skip to content

1.6.12 Path+Sketch length error / Could not create sketch / Failed to open sketch / Only showing include files #5431

Closed
@degerrit

Description

@degerrit

Not sure why this issue appeared (maybe I moved the Arduino sketch folder - I hadn't used my Arduino in a few months), but my Arduino IDE on Windows is now having issues with Sketches that have long path+filenames. I created these in Arduino IDE, so previously I had no issues with this.

Other programs, i.e. Wordpad, can open the .ino files without any problems, so it's not an OS limitation.

Examples:
D:\Blink_undDet-D8_Water-A0_Temp-D2_X10RF-D4_LDR-A1\Blink_undDet-D8_Water-A0_Temp-D2_X10RF-D4_LDR-A1.ino
105 chars - result: opens OK

D:\Blink_undDet-D8_Water-A0_Temp-D2_X10RF-D4_LDR-A1_Dist12_13_8s_s\Blink_undDet-D8_Water-A0_Temp-D2_X10RF-D4_LDR-A1_Dist12_13_8s_s.ino
135 chars - result: Not OK, "Could not create sketch"

Interestingly, the first sketch I opened after upgrading to 1.6.12 had some include files with short filenames (x10rf.h, x10rf.cpp) - the result here is NO ERROR MESSAGE, but the IDE opening only the include files, and not the .ino file.

A full downgrade back to 1.6.9 (uninstall/reinstall) fixes the issue.

Default path - looks OK:

arduino_ide_bugreport_longpath_05_default_path_ok

Wordpad - no issue:

arduino_ide_bugreport_longpath_03_wordpad_no_issue

The long path

arduino_ide_bugreport_longpath_01

Long (>128 character?) .INO sketch file that contains include files - IDE only shows the short include files, NO ERROR message is given

arduino_ide_bugreport_longpath_02_includes_load_but_not_ino_file

Short test sketch with no includes, but long path - ERROR

arduino_ide_bugreport_longpath_06_used_blink_no_includes_results_in_errormsg


arduino_ide_bugreport_longpath_06b_used_blink_no_includes_results_in_errormsg


arduino_ide_bugreport_longpath_06c_used_blink_no_includes_results_in_errormsg_moved_also

Same sketch, renamed / shortened path and Sketch name - opens OK

arduino_ide_bugreport_longpath_07_shortened_name_ok

Metadata

Metadata

Labels

editor-refactorRelated to the refactoring of the Arduino IDE's editor component

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions