Skip to content

"Action items" panel doesn't show all warnings about file being edited #4790

@negora

Description

@negora

Apache NetBeans version

Apache NetBeans 15

What happened

The Action items panel doesn't show all warnings about the file that is currently being edited. I'm referring to Java source files only. I don't know whether this happens with other file types.

What I know for sure is that it depends on the type of warning. Some types are shown, whereas others aren't.

How to reproduce

Example no. 1.

Consider this code:

public class MyClass {

    // TODO: pending task
    private void test (int x) {
    }

}

The editor shows 2 warnings:

  • Variable x is never read
  • test is never used

image

However, the Action items panel doesn't show any warning, only the comment about the pending task:

image

Example no. 2:

Consider this code:

public final class Artist
		implements Serializable {

	private Set<String> nicknames;

}

This code triggers 3 warnings in the editor:

  • [serial] serializable class com.negora.app.Artist has no definition of serialVersionUID
  • [serial] non-transient instance field of a serializable class declared with a non-serializable type
  • Variable nicknames is never read

Of all these 3 warnings, only the 2 related to serialization are shown in the panel:

image

Did this work correctly in an earlier version?

No / Don't know

Operating System

Debian GNU/Linux 11.5 (Bullseye)

JDK

OpenJDK Runtime Environment (build 17.0.4+8-Debian-1deb11u1)

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

This has been happening during many versions. Honestly, I don't remember if these warning types were ever shown in the Action items panel. But it would be really useful if all them were shown, regardless of their type.

To me, it's easy to overlook the yellow stripes in the right margin of the editor. The panel shows those warnings at a glance and, in addition, allows to group and filter them.

Thank you!

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)hintskind:bugBug report or fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions