'code check' invalid name

nothing much working on arduino anymore. subroutine programs not working. never had a problem with giving a sketch a name before. the name I gave was 'code check'.
error saying not underscored etc. this was always before taken care of automatically. not now.
has there been some massive change in the Arduino IDE that we have not been informed of.
try it yourself with a simple sketch. you will get invalid name. this is not how it was before.

Not a clue what you are talking about. some screen grabs might help.

Just a random rant?

If not, hints on successfully posting can be found in the "How to get the best out of this forum" post.

Maybe the system is complaining about the space between the two words?

My tuppence is on the subject of the other topic with just as cryptic a title...

(something about the Sol revolving around Earth)

More relevant...

What version of the IDE is this?

It was always the case that a space in the file name was not permitted. It would be a massive change if it now auto corrected this mistake.

This will explain what petercl14 was talking about.

I did tests using IDE versions 1.8.19 and 2.3.4.

  • In Arduino IDE 1.8.19, I opened a new file.
  • I tried to save it as 'test file'.
  • The IDE saved the file as 'test_file' and outputs a message saying the name had been modified, and explains why.

  • In Arduino IDE 2.3.4, I opened a new file.
  • I tried to save it as 'test file 2'.
  • The IDE opens up a pop-up that says the name is invalid and asks you if you want to save it with a different name.

I was aware of how IDE 1.8.19 handled the situation, but I did not know what IDE 2.3.4 did, as I had already learned to not put spaces in the file name by the time it came out.

Thanks @JohnLincoln for adding this detailed explanation which was lacking from @petercl14's post.

Although it is true that there is a difference in the behavior of the two IDE versions, surely this could not reasonably be described as:

In my opinion, the behavior of Arduino IDE 2.x is an improvement since it gives the user the freedom to chose their own compliant sketch name instead of just going ahead with giving it a different name from the one the user intended. For example, the user might want to follow the common convention of using the "PascalCase" style for the sketch name instead of the "snake_case" style forced by Arduino IDE 1.x under these conditions.

In no case should this result in "subroutine programs not working". If this is happening, I would like to investigate it, but I would need more information to do so.

1 Like

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