Skip to content

CSS class not found (editor warning) - but class rule is defined and present #4712

Open
@BrianHCombes

Description

@BrianHCombes

Apache NetBeans version

Apache NetBeans 15

What happened

Get warnings about CSS "class not found" when building and editing HTML files.

This warning shows with both local rule definition in the header or imported from separate CSS style sheet file.

Able to turn off in the HTML Language (Hints) settings but purpose of this feature is than defeated.

Should not get warning except when CSS class is actually not there.

Screenshot 2022-10-01 120720
Screenshot 2022-10-01 121328
Screenshot 2022-10-01 121658

How to reproduce

Write an HTML element with a CSS class reference, include the CSS rule in the style element of the header. Warning should go away but editor says it can't find said class.

In this case, it says "Class dropdown not found"

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11 Pro - Ver 21H2

JDK

jdk-18.0.1.1

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

Happens all the while, all the time.

No time to do a pull request for this one but have another issue involving GIT for later.

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSS[ci] enable web jobHTML[ci] enable web jobhintskind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions