arduino / arduino/Arduino

Inconsistent error dialogs "Ignoring sketch with bad name"

Open
#7,794 0 comments 0 reactions 0 assignees View on GitHub
Component: IDE feature request
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

While helping a friend with little to no experience with arduino, he renamed his sketch and foldername using spaces and a dash. There was no error dialog. While compiling it seems that the arduino ide chose one of the other include files as ino sketch (renaming cpu.c to cpu.c.cpp). The arduino project normally compiles fine if we don't rename it.

Now that I try to recreate this problem I get the "Ignore sketch with bad name" dialog, like it should, but not before. Instead we could compile but it chose one of the include files as sketch instead and failed with no apparent reason.

We also see inconsistent dialog messages. For example, I have renamed the project folder to "KIMUNO ASAP" to recreate the problem, but I get a warning from earlier that says
![skjermbilde 2018-07-18 19 42 26](https://user-images.githubusercontent.com/11380333/42902051-98d3577c-8acd-11e8-983b-64cd49a4b63b.png)
That does not say "KIMUNO ASAP". Doesn't matter if I open it by double clicking the sketch icon or opening it from the IDE.

If I open arduino again by double clicking the desktop icon, it tries to open that KIMUNO - 3461AS.ino sketch again giving me the same error dialogs.. To get rid of that I need to open a working sketch, close arduino and then I can open it again.

Arduino IDE: 1.8.5
Related project link: http://obsolescence.wixsite.com/obsolescence/kim-uno-details (see downloads)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Arduino IDE 1.8.5 by renaming a sketch and its folder to names containing spaces or a dash, then opening it from the desktop icon and from the IDE. Compare the "Ignore sketch with bad name" dialog with the selected .ino file and the cpu.c.cpp behavior. Done means invalid names consistently produce the correct dialog and never select an include file as the sketch.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.