-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
#53 Refresh menus when opening example/recent fails. #1333
Conversation
949dcce
to
095c1d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
095c1d6
to
5085754
Compare
I have rebased the PR from the |
Still working for me ✅ |
5085754
to
618f76d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPDATE: resolved by https://github.com/arduino/arduino-ide/compare/c8388a78582727a0bf0b869c097714aad1fd8eca..bc85ea62d6e7b6cc80ffbe78a98f898d76ce8a76
Describe the problem
File > New has no effect.
To reproduce
- Select File > New from the Arduino IDE menus.
🐛 Nothing at all happens.
Expected behavior
A new sketch opens in an additional Arduino IDE window after selecting File > New
Arduino IDE version
2.0.1-snapshot-0359e42 (tester build for 0359e42)
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
The problem does not occur when using the latest build from the main
branch (2.0.1-snapshot-96cf09d)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPDATE: resolved by https://github.com/arduino/arduino-ide/compare/c8388a78582727a0bf0b869c097714aad1fd8eca..bc85ea62d6e7b6cc80ffbe78a98f898d76ce8a76
Describe the problem
IDE fails to start if no sketch was opened previously.
To reproduce
- Select File > Quit from the Arduino IDE menus if it is running.
- Rename or delete (:warning: cautiously) the following folders to simulate the environment of a first run:
- Windows:
C:\Users\<username>\.arduinoIDE
C:\Users\<user name>\AppData\Roaming\arduino-ide
- Linux:
~/.arduinoIDE
~/.config/arduino-ide
- macOS:
~/.arduinoIDE
~/Library/Application Support/arduino-ide
- Windows:
- Start the build of the Arduino IDE for this PR.
🐛 The IDE hangs forever at the startup animation. - Close the Arduino IDE window.
- Start a previous version (e.g., 2.0.0) of the Arduino IDE 2.x.
- Select File > Save As... from the Arduino IDE menus.
ⓘ This is done to cause a previously open sketch to be recorded for restoration the next time the IDE is opened. You could do the same by opening any previously saved sketch. - Select File > Quit from the Arduino IDE menus.
- Start the build of the Arduino IDE for this PR.
🙂 The IDE startup finishes.
Expected behavior
Arduino IDE starts even when there is no previously opened sketch.
Arduino IDE version
2.0.1-snapshot-0359e42 (tester build for 0359e42)
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
The problem does not occur when using the latest build from the main
branch (2.0.1-snapshot-96cf09d)
618f76d
to
c8388a7
Compare
Thank you for the review, Per. I have fixed the bug with the new sketch creation; it should solve both issues you had during the verification. |
c8388a7
to
bc85ea6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Describe the problem
File > Open Recent never populates if no sketch was opened previously.
To reproduce
- Select File > Quit from the Arduino IDE menus if it is running.
- Rename or delete (:warning: cautiously) the configuration folder to adequately simulate the environment of a first run:
- Windows:
C:\Users\<username>\.arduinoIDE
- Linux:
~/.arduinoIDE
- macOS:
~/.arduinoIDE
- Windows:
- Start the build of the Arduino IDE for this PR.
- Select File > Save As... from the Arduino IDE menus.
- Save the sketch to any convenient name and location.
- Open the File menu.
🐛 There is no Open Recent menu item - Select File > Quit from the Arduino IDE menus.
- Start a previous version (e.g., 2.0.0) of Arduino IDE 2.x.
- Open the File menu.
🙂 There is an "Open Recent" menu item - Select File > Quit from the Arduino IDE menus.
- Start the build of the Arduino IDE for this PR.
- Open the File menu.
🙂 There is an "Open Recent" menu item
Expected behavior
File > Open Recent menu is populated with the recently opened sketch.
Arduino IDE version
2.0.1-snapshot-6888b6c (tester build for bc85ea6)
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
The problem does not occur when using the ~latest build from the main
branch (2.0.1-snapshot-96cf09d)
After wiping the config folder and starting the IDE2, would you expect to see |
No, but I also wouldn't be surprised to see that, so either way is fine. I only expect that any sketches I open after that to be added to the menu. |
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
2916417
to
bf11467
Compare
Thank you! IDE2 will show it. Steps to reproduce:
I fixed another use case. It wasn't working. Steps:
Thank you so much for doing the PR review, again and again, Per. All issues you have noticed during the verification should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is working perfectly for me now.
Thanks for this very nice improvement to the user experience Akos!
Motivation
IDE2 must notify the user about missing/invalid sketches and update the menus when opening the sketch has failed. This is the expected behavior when opening from
File
>Open Recent
,File
>Sketchbook
, andFile
>Examples
.Change description
Other information
Closes #53
Reviewer checklist