-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Error when replacing a .ino file with a new one in a directory ("How very Borges of you" error) #10879
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
You now get the error:
The save now completes successfully. This is confusing behavior because if the sketch has multiple files, all the files are saved, not just the file you clicked on. The sketch is the entire folder, not only the .ino file, but the IDE's "Save as" and "Open" behavior reinforces the incorrect impression that the .ino file is the sketch. |
|
"Sketch" is misleading for save/save as... |
Considering this IDE is specifically designed to have a simple UI to provide a friendly environment to beginners, I can't see any benefit to providing the ability to save a single file. It's very important to carefully consider every single element added to the UI to determine whether it's really needed. This is what sets the Arduino IDE apart from all the other IDEs The sketch is a unit. When I save, I want to save the entire sketch, just as the Arduino IDE has always done. |
I have to disagree. |
"There's more than one way to skin a cat". Arduino is a somewhat "opinionated framework". I think you have to accept that it is going to force users to work in a particular way that not everyone is going to like. It is what it is, and a lot of non-expert users seem to appreciate "the Arduino way". The moment you have multiple files in your sketch, you have probably already outgrown the Arduino IDE. Given how it works, the error message seems reasonable given what you were trying to do and in context, I don't see it as a problem. I personally don't use the Arduino IDE for exactly that reason - It seems very limiting to me and I don't like the editor or anything about it really. I like to work my own way and I don't really like opinionated frameworks. So I don't use it. You have other options, such as Visual Studio with the VisualMicro extension, or VS-Code with the Arduino extension or using PlatformIO. But given the modus operandi of the Arduino IDE, that error message seems entirely appropriate. |
it's not forbidden to make things better and more flexible, so please put it on the wishlist. |
Ok |
On Windows (10 Pro), I got the "How very Borges of you" (the infinite folder error) when I was trying to replace a file in the directory.
The text was updated successfully, but these errors were encountered: