Replies: 5 comments 3 replies
-
In general it should work, if it is not working, we need more information from your side to identify the problem. |
Beta Was this translation helpful? Give feedback.
-
Hi @Chris2011. Thanks for answering. It's very easy to demonstrate it. Consider this code: public class MyClass {
// TODO: pending task
private void test (int x) {
}
} The editor shows 2 warnings:
However, the Action items panel doesn't show any warning, only the comment about the pending task: I believe that this problem is not something new or a regression. I don't remember when I started to use the panel, but I think that it has always behaved like this: It shows errors, to-do tasks and only a few specific warnings about Java files (ie: some about serialization problems). It also shows warnings related to JS and HTML, but here I'm just referring to Java. By the way, I've tested this using clean configurations in versions 13, 14 and 15. I could try it from version 3.6 onward (I store all the binaries) but that I don't remember if this panel even existed (I didn't use it back then). |
Beta Was this translation helpful? Give feedback.
-
yeah I noticed this too. Never had time to look into it. Would be good to repair this again. I believe the only item which works reliably are TODOs - so there is a start ;) |
Beta Was this translation helpful? Give feedback.
-
@mbien @Chris2011 Thanks for answering. In case that it's of any help, here there are 2 type of warnings that the Action items panel does show. Look at this code: public final class Artist
implements Serializable {
private Set<String> nicknames;
} This code triggers 3 warnings in the editor:
Of all these 3 warnings, only the 2 related to serialization are shown by the panel: Maybe the code that shows these warnings about serialization issues has the clue to fix the other warnings? By the way, these warnings are also shown when you expand the scope of the panel to the current project and to all projects, not only for the current file. I don't know whether that's important. But just in case... Should this discussion be converted into a proper issue? Do you want me to open one? Thank you! |
Beta Was this translation helpful? Give feedback.
-
I've created the issue #4790. Thank you for your guidance. |
Beta Was this translation helpful? Give feedback.
-
Hi:
There is something in NetBeans IDE that has always intrigued me: Why the Action items panel doesn't show all warnings in the current file? By current file I mean the file that is currently being shown in the editor.
I understand that NB doesn't show the warnings of a whole project, because that would be really expensive. But for a file that is already open, the analysis is already done, Right? The Action items panel even has a button to show only the items related to the file being edited...
What's the reason behind this issue? Is it so by design? Is it because of some kind of internal limitation? Or it's just that most people have enough with the stripes in the right-side of the editor?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions