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.
Menu item "Window > Select Document in Files/Projects" (CTRL+SHIFT+1 / CTRL+SHIFT+2) selects the wrong item in the file list, if the file name contains more than one dot. Example: I edit a file named "blah.inc.html", I hit CTRL+SHIFT+1, and in the Files window, the file "blah.html"(!) is highlighted. Same for CTRL+SHIFT+2.
reassigning to projects module
Yes, the impl is lousy. A side effect of the poor decision to have DataNode.getName() be dataObject.primaryFile.name and not .nameExt. I think there is some algorithm to detect this kind of case, and it even works for some things and has a test, but is not foolproof. What kind of project are you using? C-S-2 is independent of project type but C-S-1 is specific to project type, so we need to know.
Only web projects are concerned it seems. The IDE never selects a wrong file in normal Java projects: Because if I renamed a file to something.bad.java, the IDE instantly reports an error and does not continue until I rename it to something with only one dot. But with html files, double-dot names are possible.
Well you can certainly have an HTML file in a plain Java project.
Oh, true. So it is a problem independent of project type, everywhere where there can be two dots in a filename.
It is not independent of project type - every project separately implements Select Document in Projects for that project type. It is however possible that several project types share the same bug. That is why I am asking you what type of project you observed the problem with, so we can start.
*** Issue 64403 has been marked as a duplicate of this issue. ***
*** Issue 66658 has been marked as a duplicate of this issue. ***
i fixed it for package view located nodes, so any items under Sources/Test sources nodes should be fine. If you discover any other usecases, please file against the approriate project type.