-
-
Notifications
You must be signed in to change notification settings - Fork 431
IDE startup takes too long when a soft link into big directory structures exist in the "sketchbook location" directory #351
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
Comments
Is there any improvment in sight? and for fun: VS Code (with activated support of JS, Java and Golang, all in one project) It's even getting worther than ever... |
@willie68 I don't use symlinks to folders because it's not the way you're supposed to work in the Arduino context, What is your specific context? Thanks |
But it is my way to organize my work, e.g. symlink to a doc directory with datasheets that point to some papers in another section that points to the datasheets.
Not necessary - set "do not follow symlinks". |
Is the symlink inside your sketch or in your sketchbook folder? |
I created a symlink into my sketchbook and linked it to my system drive root, which itself has some symlinks being my whole OS. if you can post the result of a |
I don't think symbol links are the problem. I have 65 folder in the sketchbook, some with subfolder for different projects. (Mainly because many projects live in git repos) no symbol links! I think round about 200 projects. But the libraries folder is crowded. 265 libs, but mostly named arduino-xxxxxx which are older versions of the libs. And that will cause the problem. The ide has to scan every libs folder for the infos of keywords and so on. And the lib manager lacks the function of deleting older version. And its a mess when you tried to do it manually. The other part is, scanning the folder seems to be a syncron task. If you implement that to async this would help much. That's how professional IDE do such scanning. |
oh, now I get it Our backlog is large, and the team is small... |
I'm willing to help, I'm a pro, but my problem is that one has switched to Elektron and JS. That's not my preferred language. I'm more of a backend guy, Java, Golang, C++... |
For me the 2.1.0 improves the behaviour, startup time until I can start working is 15 seconds - faster than 2.0.0 and much faster than the .rc versions. ok for me -> close Thx to the whole team for your effort! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@willie68 is there a soft link into a big directory structure under your sketchbook folder (the path configured via the "Sketchbook location" IDE preference)? @Ho-Ro do find that there has been a regression in the IDE in regards to this issue since the time of your previous report that the problem was resolved? |
This comment was marked as off-topic.
This comment was marked as off-topic.
I tested again after a fresh boot of my system and it took again a very long time. The next try was much faster due to the already buffered disk content. Version 1.x is still faster and more responsive. |
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:
cd ~/Arduino/Projects
).Expected behavior
The splash screen closes fast, and the IDE works normally - independent of the project directory structure.
Desktop
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?
The text was updated successfully, but these errors were encountered: