-
Notifications
You must be signed in to change notification settings - Fork 48
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
Bug: The local filesystem tree is doubling up on entries #50
Comments
Weird. My initial suspicion was something relating to the recent changes to ![]() So now I can't actually recreate the issue any more! |
Recreating this is a bit hit-and-miss. On my own M2 Pro Mac Mini I can generally recreate this if I run the I do, however, have a hypothesis as to what might be going on. The recent changes to |
I'm struggling to recreate Textualize/frogmouth#50 in a controlled way, but reviewing the code here makes me think that this is a good idea anyway. While DirectoryTree should not end up in _populate_node if a node has already been populated, it's also the case that it's an all-or-nothing thing; it makes sense to clear out the children of the node before populating it; at least in a belt-and-braces way.
The test if a node was loaded wasn't being performed when loading the root. This ensures that will happen. I suspect this is (no pun...) at the root of the issue with Textualize/frogmouth#50 even though I can't see the route into how this happens, and can't recreate this at will. This feels like a worthwhile change to make anyway as it's a safer approach.
Assuming fix. Unable to reproduce with latest Textual. |
Mentioned in a video on YouTube. The content of the local file view is doubling up the entries for some reason:
The text was updated successfully, but these errors were encountered: