-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Attempt to open deleted sketch from Sketchbook or Examples menus fails silently #53
Comments
@tigoe, can you please tell me what do you mean by Examples menu fails to scan the libraries for examples? Are you missing a few menu items? Which one of them specifically? Thank you! |
Closing due to lack of response. @tigoe if you'll provide the requested information I'll be happy to re-open this issue. |
Sorry for the long delay. Here's how to duplicate what I was seeing:
I have tested this with multiple libraries, both those that are imported through the library manager, and those added manually through the Finder. The only solution is to restart the IDE. This was not the behavior of the File -> examples menu in IDE 1.0. It would produce an error that said "The selected Sketch no longer exists. You may need to restart Arduino to update the sketchbook menu" |
It was fixed for the We have to verify it for the libraries. |
I just checked the behavior when attempting to open a deleted library example via the File > Examples menu and unfortunately it still fails silently. So we can not consider this fixed by #1152 |
I investigated the problem, and I can confirm that the CLI is caching the examples, so IDE2 needs to re-initialize the client when an example could not be cloned and opened. Setup:
gRPC response from the CLI:
Manually delete one of the examples:
Click on
IDE2 catches the error and requests the
I see two possible solutions:
|
Signed-off-by: Akos Kitta <[email protected]>
Closes arduino#53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Closes #53 Signed-off-by: Akos Kitta <[email protected]>
Originally posted by @tigoe here:
Context from here:
Screenshots
The text was updated successfully, but these errors were encountered: