negora opened a new issue, #4790:
URL: https://github.com/apache/netbeans/issues/4790

   ### 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:
   
   ```java
   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](https://user-images.githubusercontent.com/2098654/195010333-bea82cf6-f662-4e3a-a7fc-81a4830ce42c.png)
   
   However, the *Action items* panel doesn't show any warning, only the comment 
about the pending task:
   
   
![image](https://user-images.githubusercontent.com/2098654/195010680-1ead723c-2e6a-4486-99dc-cb09f2339e12.png)
   
   
   ### Example no. 2:
   
   Consider this code:
   
   ```java
   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](https://user-images.githubusercontent.com/2098654/195388599-0db19613-bad5-4a20-a1cb-5340dbc2536e.png)
   
   
   ### 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to