-
Notifications
You must be signed in to change notification settings - Fork 767
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
Setting show_root
to True
raises a KeyError
#2363
Comments
To narrow it down a wee but, this only happens if |
davep
added a commit
to davep/textual
that referenced
this issue
Jul 24, 2023
There are occasions where the Tree may want to get the label (to make size decisions, it seems) that happen *before* a mount has finished. In DirectoryTree component classes are being accessed but they don't come into play until the DOM is up and running. This change builds allows for the building of a directory tree label, while also *not* trying to style the label, if mount hasn't finished yet. See Textualize#2363.
davep
added a commit
to davep/textual
that referenced
this issue
Jul 24, 2023
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
willmcgugan
pushed a commit
that referenced
this issue
Jan 11, 2024
There are occasions where the Tree may want to get the label (to make size decisions, it seems) that happen *before* a mount has finished. In DirectoryTree component classes are being accessed but they don't come into play until the DOM is up and running. This change builds allows for the building of a directory tree label, while also *not* trying to style the label, if mount hasn't finished yet. See #2363.
willmcgugan
pushed a commit
that referenced
this issue
Jan 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
setting
show_root
toTrue
. raises the following error:KeyError: "No 'directory-tree--folder' key in COMPONENT_CLASSES"
Diagnose output:
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: