-
-
Notifications
You must be signed in to change notification settings - Fork 477
Description
Describe the bug
The IDE startup takes forever when links into complex directories with thousands of subdirectories exist in "sketchbook location" directory structure.
To Reproduce
Steps to reproduce the behavior:
- Go to the sketchbook storage directory (in my case
cd ~/Arduino/Projects
). - Create a link into a complex directory structure with circular links.
- Start the ide (beta5).
- The IDE opens, but the splash screen is displayed forever, warnings are shown:
root WARN Could not load sketch from ...
root WARN Could not load sketch from ...
...
root WARN Could not load sketch from ...
root WARN Frontend EditorNavigationContribution.onStart is slow, took: 450821.8 ms
- Startup takes almost 8 minutes.
- After removing the critical link the IDE starts much faster.
Expected behavior
The splash screen closes fast, and the IDE works normally - independent of the project directory structure.
Desktop
- OS: debian stable with KDE
- Version: arduino-ide beta 5
EDIT: Especially the circular links that I use for structured documentation purposes (e.g. TOP->../.. or A->B and B->A or even more complex with three and four hops) slow down the startup. Obviously the IDE tries to traverse the whole tree and visits the directories over and over again until the max. path length is reached - then it stops. During this traversal it spits out thousands of warnings :(
2nd EDIT: This problem did not occur in beta.3, beta.4 could not be tested on my Debian stable system due to #259.
3rd EDIT: Related to beta.4 issue #269?