Skip to content

Commit 4f33d08

Browse files
matthijskooijmancmaglie
authored andcommitted
Fix opening a non-primary .ino file
When a sketch looks like this: Blink/ Blink.ino Foo.ino The idea is that opening Foo.ino should open up the sketch. However, before this would show an error stating "The file Foo.ino needs to be inside a sketch folder named Foo" instead. This turned out to be due to a typo, which seems to have been present for a long time. Note that when the main sketch file was a .pde file, everything already worked as expected.
1 parent f96d71f commit 4f33d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Editor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ protected boolean handleOpenInternal(File file) {
21202120
String pdeName = parentName + ".pde";
21212121
File altPdeFile = new File(parent, pdeName);
21222122
String inoName = parentName + ".ino";
2123-
File altInoFile = new File(parent, pdeName);
2123+
File altInoFile = new File(parent, inoName);
21242124

21252125
if (pdeName.equals(fileName) || inoName.equals(fileName)) {
21262126
// no beef with this guy

0 commit comments

Comments
 (0)