-
-
Notifications
You must be signed in to change notification settings - Fork 7k
1.6.12 Path+Sketch length error / Could not create sketch / Failed to open sketch / Only showing include files #5431
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
Comments
Updated my original bug, a downgrade to 1.6.9 via full uninstall/reinstall resolves the problem. |
OK, 1.6.11 also does not have this problem. Maybe it's the editor code refactoring in 1.6.12 |
Thanks for the bug report. In this case is not the full path length the problem, but only the sketch name length. The sketch name is limited to 63 chars and this limit has always been there but, before 1.6.12, the check was made only on the sketch name without the .ino extension. After 1.6.12 this check has been changed to test the full file name (with .ino extension). So a sketch that previously fitted exactly the 63 chars limit after 1.6.12 it will suddenly became invalid because the .ino extension will made it of 64+4 -> 67. Now I've fixed it by making the check again on the sketch name. Of course this bug affects only sketch with very long names (nearing 63 chars). |
Same here. If anyone found a way, pls email me: [email protected] |
@Lizews2006 thanks for the bug report but this issue should be solved with IDE 1.8.10, if not please open another issue and do not comment on already closed issues. Anyway, if you're in a hurry, you may consider renaming the |
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:
Wordpad - no issue:
The long path
Long (>128 character?) .INO sketch file that contains include files - IDE only shows the short include files, NO ERROR message is given
Short test sketch with no includes, but long path - ERROR
Same sketch, renamed / shortened path and Sketch name - opens OK
The text was updated successfully, but these errors were encountered: