Sketch with bad name

I am getting this message on about 30% of my sketches. It’s not bad now as these are beginner sketches that I don’t mind recreating. I don’t want this to continue though since it appears the sketches are no longer available.

What am I doing wrong?

The message is very clear. A name must be basic ASCII with NO spaces. What is your file name? chasing lights WITH a space between chasing and lights. Rename to chasingLights and it will work.

Thank you- I am so new to coding I did not know ASCII protocol.

Appreciate the help beekeeper!

ASCII isn't a protocol. It is a table with the numeric value of each character. It is a standard that first uses only 127 possible 'characters'. Long time a go (1963) used for TELEX. It is by default the standard for coding text.

I appreciate the knowledge. I am so new to this that basic stuff is foreign to me. Thanks again!

There are some subtleties about sketch filenames that you should take note of

  • sketches must be in a folder of exactly the same name as the sketch
    *if you put more than one .ino file in a sketch folder then the one with the same name as the folder is regarded as the main sketch and other .ino files will appear as extra tabs in the IDE
  • IDE v1 will allow you to save a sketch with spaces in its name but will automatically replace the spaces with underscores and you will get a message telling you so
  • IDE v2 will save a sketch with spaces in its name and use that name quite happily but such a sketch will cause the problem reported in this topic

As a result of the above you need to be careful with the names of sketches when using IDE v1 and IDE v2 in a mixed environment or when creating or copy sketches outside of the IDE

Appreciate the thorough response! It did automatically use underscoring but I must have re-typed at some point.

Awesome group here!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.