This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If I open the suggestions window and go to a source file with some PMD violations, it shows them; fine. But when I switch to another source file without any, even a text file, even if I close the original source file, they stay in the Suggestions window. By contrast, source to-do comment markers in the Suggestions window seem to switch with the active document correctly. Cannot compare to copyright or Javadoc suggestion providers, since the current NBMs of these modules on dev alpha AU are too old - someone forgot to publish new versions of them. (Need impl==1 and get impl 2 of tasklist/{api,core}.) org.netbeans.tasklistapi/1 [1.6.2 2] org.netbeans.modules.tasklist.core/2 [1.21.22 2] org.netbeans.modules.tasklist.pmd/2 [1.6.221 1] org.netbeans.modules.suggestions_framework/2 [1.1.223 3] org.netbeans.modules.tasklist.docscan/2 [1.12.2233 3] org.netbeans.modules.tasklist.javaparser/2 [1.3.222 2]
PMD suggestion provider should get (and handle) clear(...) event.
I cannot reproduce as you described. However I can observe something that is probably the same bug. While fast switching among files some suggestions stick or even duplicate. It covers all suggestion types except copyright one. The same applies to TODO view.
SuggestionManagerImpl:575
fixed
Please, reporter, could you verify fixed issues. Thanks a lot.