Skip to content

Inconsistent "Go To File" results #4311

@SimonVanacco

Description

@SimonVanacco

Apache NetBeans version

Apache NetBeans 14

What happened

On a PHP Project, when typing exactly the name of a known file in the "Go To File" prompt, it seems to often put the desired file at the end of the list.
image

I think the three bottom results should always be on top (and the first of them pre-selected)

What's even more strange is that typing in lowercase seems to work better, even though the original file has uppercase in it. The drawback is that no file guessing is made when searching that way (only three results compared to the first screenshot).

image

How to reproduce

The best way to reproduce would be to recreate all folders & files present in the screenshots and use the "Go To File" function in the same manner.

Did this work correctly in an earlier version?

No

Operating System

Kubuntu 22.04 LTS

JDK

OpenJDK 11.0.15

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

I'm having a hard time finding a pattern to reproduce, as some of my searches yield no issue as shown here while searching only for "User.php" which works just fine (first results are an exact match, while also including more guesses after them) :

image

IMO, this screenshot shows exactly how the search should behave everytime.

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions