Skip to content
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

Preferences: when changing Sketchbook location the IDE won't reload resources #570

Closed
ubidefeo opened this issue Oct 22, 2021 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted criticality: medium Of moderate impact priority: high Resolution is a high priority topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@ubidefeo
Copy link

ubidefeo commented Oct 22, 2021

Describe the bug
A default installation of IDE 2.0 points to the user's documents > Arduino folder.
A user might want to point this to a preexisting folder using the Preferences Panel.
When this happens, the IDE keeps seeing the same resources in matter of Sketchbook content and Libraries until a Sketch is saved or the IDE is restarted.
Until this "reload" happens, also a list of libraries remains unavailable, hence their examples

To Reproduce
Steps to reproduce the behavior:

  1. Launch the IDE and open Preferences
  2. Point the Sketchbook location to a new, empty folder
  3. Quit the IDE
  4. Relaunch the IDE
  5. Select "Sketchbook" from the File menu
    5a. Observe If Sketchbook is empty, no Sketchbook menu item is present under File #569
  6. Create a new Sketch
  7. File > Save as... and give it a name
  8. The File menu will now have a Sketchbook entry listing the newly saved Sketch
  9. Repeat step 1 and point the Sketchbook location back to the previous one (it is assumed Sketches and Libraries are present)
  10. The File > Sketchbook menu will still only list the recently saved Sketch
  11. File > Save As... and give it a name
  12. The window for the Sketch currently saving will reload
  13. The File > Sketchbook menu will now correctly list all the Sketches you previously had plus the new one
  14. This indicates that saving has reloaded the data structures

Expected behavior
Changing the Sketchbook location should reload/rebuild the essential environment settings

Screenshots
Default Sketchbook location (empty, new install)
Screenshot 2021-10-22 at 10 51 40

After saving a Sketch
Screenshot 2021-10-22 at 10 51 32

Changing location to folder full of Sketch/Libraries
Screenshot 2021-10-22 at 10 52 02

No change in content of Sketchbook (also examples for libraries will not be shown - next image)
Screenshot 2021-10-22 at 10 52 12

Libraries are not yet shown
Screenshot 2021-10-22 at 11 25 14

Sketchbook after relaunching
Screenshot 2021-10-22 at 11 27 06

Examples after relaunching
Screenshot 2021-10-22 at 11 27 17

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Version: [e.g. 2.0.0]

Additional context
#569

@ubidefeo ubidefeo added the type: imperfection Perceived defect in any part of project label Oct 22, 2021
@ubidefeo ubidefeo added priority: medium Resolution is a medium priority topic: code Related to content of the project itself labels Oct 22, 2021
@rsora rsora added criticality: medium Of moderate impact and removed priority: medium Resolution is a medium priority labels Nov 2, 2021
@ubidefeo ubidefeo added the priority: high Resolution is a high priority label Jan 25, 2022
@per1234
Copy link
Contributor

per1234 commented Sep 24, 2022

I see there is another report of this at #796. Even though this one came first, the other has more information so I'll close this in favor of #796

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2022
@per1234 per1234 assigned per1234 and unassigned fstasi and AlbyIanna Sep 24, 2022
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted criticality: medium Of moderate impact priority: high Resolution is a high priority topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants