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

Duplicate CSS errors from screens #3581

Closed
rodrigogiraoserrao opened this issue Oct 24, 2023 · 1 comment · Fixed by #3616
Closed

Duplicate CSS errors from screens #3581

rodrigogiraoserrao opened this issue Oct 24, 2023 · 1 comment · Fixed by #3616
Assignees
Labels
bug Something isn't working Task

Comments

@rodrigogiraoserrao
Copy link
Contributor

CSS errors in screens are still duplicate (see #3566, and https://github.com/Textualize/textual/pull/3566/files#r1367884524 in particular).

CSS parsing errors show up as duplicate when parsing the CSS class variable or css from an external file, but not from DEFAULT_CSS.

App to reproduce:

from textual.app import App
from textual.screen import Screen


class MyScreen(Screen[None]):
    # CSS_PATH = "myscreen.tcss"
    CSS = "Screen { screen-baz: spam; }"


class MyApp(App[None]):
    def on_mount(self):
        self.push_screen(MyScreen())


if __name__ == "__main__":
    MyApp().run()
Copy link

github-actions bot commented Nov 1, 2023

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant