The insistence on opening a file other than the one intended is a serious issue. If you point to an existing .ino file, right-click, and choose "Open with" and specify the Arduino IDE, you do not get the sketch you were pointing to. That makes no sense. Some compiles also go into lala land and a close and re-open are requires to get a compile.
Hi @pletcherje. Thanks for giving the Arduino 2.0.0 release candidate a try!
Which version of the Arduino IDE are you using? This capability was added in the recent 2.0.0-rc4 release, which is available for download from the official "Software" page:
https://www.arduino.cc/en/software#future-version-of-the-arduino-ide
Is this running on Linux?
Hi @gilshultz. It was not clear to me: is your question directed at me or at @pletcherje?
Apologies to all: This is IDE 2.0.0-rc3 running on Windows 10 21H2
(No offense to anyone, but I'm beginning to wonder if I'll ever get used to IDE 2.0. So many thing that do not function as expected.)
Please update to the latest version. The "Open with" capability has already been added but you are using an outdated version of the IDE (the current version is 2.0.0-rc5).
Please note that these are "release candidates". They are only intended to be used by beta testers to give the developers feedback.
That testing and feedback is a valuable contribution to the Arduino project and very much welcomed by the team working on developing the Arduino IDE. However, if you are only looking for a stable tool to use for your projects, Arduino IDE 1.8.19 will be the best choice.
Again... apologies.
A very trusted source said, "Go get IDE 2.0", so I did. I had no idea this was a beta release version and I should not have gone after it. In my ignorance I should have been more conscientious.
BTW: Thanks for the "Open With..." fix.
No need for apologies. Everyone is welcome to use the release candidates and to share feedback or ask for help with using it.
I only want to be sure that the current status of the Arduino IDE 2.x project is clear so that these release candidates will be used under the appropriate context.
I am using RC6 at the moment and this problem is not completely solved. When the .ino file is not located in the folder with the same name, the IDE will open with the last opened .ino file, not the selected one.
I must say that I don't understand the need for the folder name to be the same as the file name and it is a little annoying, as I receive a lot of .ino files from students which are in a zip-file and not in a folder.
But as it is needed, it would be nice if the IDE would automatically create the folder (maybe with a setting to switch on or off), or at least ask me to create the folder (as it was with the previous program). And of course open the selected file and not the previous loaded one.
That is the way it works. I have wondered why myself, and perhaps it is to simplify things for the less experienced users.
If you do a "Save As" you will see that the IDE creates a folder and places the same-name .ino file in it. Now sometimes the IDE goes into a loop after doing that, and that problem has been reported before. Closing it and restarting works for me, but no guarantees.
One thing that I do is to use explorer to make a new folder, copy a file into it (and rename it like the folder). That allows me to double-click the newly renamed file copy and open it.
If that is how it works, that's what it is.
I understand the way you work, but we make software to make our lifes easier. Why not let the IDE make the folder if it does not exist (yet).
As I said, I receive a lot of code from students which they usually zip and not always with the folder in it. How nice would it be that the IDE can open that file, without the need to unzip myself, create a folder with the same name and then be able to open it.
At least the IDE should do something else than opening te previous project. At minimum ask to create the folder (as the older IDE did), but nicer would be if it does that automatically (maybe with a setting if people don't want that).
That would make my life easier and maybe for other users as well.
The folder is the project, not the .ino file. It must contain an .ino file with the same name as the folder.
A project can consist of many files, all in the same folder. When the .ino file, with the folder name, is opened the IDE will also load all the other .cpp and .h files in tabs and combine all during the compile.
Thanks for taking the time to give the Arduino IDE 2.0.0 release candidate a try @sjonnyc
This deficiency is being tracked by the Arduino IDE developers here:
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
Perhaps this indicates a need to teach your students the proper way to distribute Arduino sketches?
Thanks for the info. Good to hear it is under the attention of the devolopers.
We do explain them, but with 150 students there will always be a dozen who will zip it without the folder.....
And with only one file to send, I must say that I understand why they don't treat the folder as a project and forget it. Which was why it would be nice to have a setting that the folder is automatically created (instead of asking me).
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.