I just installed and started the 2.0 IDE, which by default opened a sketch called sketch_sept16a.ino). I then clicked on File.Open, selected an existing .ino file, and the IDE opened a new window (sketch_step16b.ino) but never loads the file I requested via the open command.
The sketch in question is on a network share (\\server\share\folder\folder\folder\file.ino) if that has any bearing. But I clicked on the actual file via the file open dialog
I also tried right-clicking on the file in File Manager, selecting "Open With" then selecting "Arduino IDE" same result.
I can't reproduce that here. I don't have a network share, but file->open->file.ino->open gets me a new window with my selected file in it.
For some time I have been using file manager to open .ino files with no issues. I also have my more active projects set up as shortcuts on the desktop, double-clicking those open 2.0 and the file I want to work on.
I suspect there is some issue, probably in Wondows somewhere, other than IDE 2.0 itself. Maybe the file association?
I did some more research here by creating a folder on a network share I use for backups.
I right-clicked on the upper-level folder and selected "Map Network Drive" and allowed "Wondows" (I like my previous typo) to map it to Z:.
I could then open the .ino files from file manager in IDE 2.0. IDK what needs to be done to allow access as UNC paths, but there is a workaround in Wondows.
I just ran into the same issue and was pulling my hair out. Until network files are supported, it would be quite a nice gesture to add an appropriate error message when someone tries to open one.
Network files open if you opened them first in Arduino 1.n. There's some re-open cache, where the app re-loads the file that was open at last exit.
2.0 uses the same cache, so if the cached file is a network file it opens it. So the issue isn't that it can't do it.
But weirdly it doesn't always work - I went back and opened a different network file in 1.8 and then closed and opened 2.0 and it still loaded the previous file, not the most recent one.
@ptillisch lookslike you are already working on this - thank you very much.