When saving new tab .ino file closes if it has unsaved changes on 1.9.x beta build 10
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
When saving newly created tab while .ino file has modifications, the .ino ino file gets closed. The changes seem to be saved properly though. Tested on 1.9.x beta build 10 on Windows 10.
1. Open sketch
2. Modify the .ino file, Do not save the changes
3. Create new tab.
4. Click Save
5. .ino file is closed,
Following exception is displayed when I try to save the changes
> Could not createInput() for E:\Users\username\Documents\Arduino\sketch_oct15b\test.h
java.io.FileNotFoundException: E:\Users\username\Documents\Arduino\sketch_oct15b\test.h (Määritettyä tiedostoa ei löydy)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at processing.app.legacy.PApplet.createInput(PApplet.java:595)
at processing.app.legacy.PApplet.loadStrings(PApplet.java:254)
at processing.app.BaseNoGui.loadFile(BaseNoGui.java:655)
at processing.app.SketchFile.load(SketchFile.java:256)
at processing.app.EditorTab.reload(EditorTab.java:381)
at processing.app.tools.WatchDir.lambda$processEvents$0(WatchDir.java:167)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080)
at processing.app.tools.WatchDir.processEvents(WatchDir.java:167)
at processing.app.Editor$55.run(Editor.java:2012)
at java.lang.Thread.run(Thread.java:748)
Warning: Failed to reload file: "test.h"
Contributor guide
Assessment
This issue has not been assessed yet.