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

Unexpected warning about a component being neither used nor exported #7176

Open
hunger opened this issue Dec 19, 2024 · 2 comments
Open

Unexpected warning about a component being neither used nor exported #7176

hunger opened this issue Dec 19, 2024 · 2 comments
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@hunger
Copy link
Member

hunger commented Dec 19, 2024

Bug Description

I get a warning in my slint code that I do not expect:

Component is neither used nor exported [Ln 1, Col 1]

Reproducible Code (if applicable)

component Foo /* Foo 1 */ { }

export component FooBaz {
    Foo /* <- TEST_ME_1 */ { }
}

component Foo /* Foo 2 */ { }

export component Baz {
    Foo /* <- TEST_ME_2 */ { }
}

Environment Details

  • Slint Version: master
  • Platform/OS: Linux
  • Programming Language: Not applicable
  • Backend/Renderer: Not applicable

Product Impact

Tiny :-)

@hunger hunger added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Dec 19, 2024
@tronical
Copy link
Member

I guess it should be an error that Foo is already defined?

@ogoffart
Copy link
Member

Funny thing is that if we do NOT use Foo 1 (by commenting the line with TEST_ME_1), then we don't get that warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

3 participants