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.

Bug 143947 - [65cat] Go To File returns incorrect results
Summary: [65cat] Go To File returns incorrect results
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 16:07 UTC by dafreels
Modified: 2008-08-28 12:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output (37.28 KB, image/png)
2008-08-15 13:10 UTC, Tomas Zezula
Details
Screen_Shot_of_Bug (45.48 KB, text/plain)
2008-08-18 19:54 UTC, dafreels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dafreels 2008-08-14 16:07:11 UTC
[ BUILD # : 200808111757 ]
[ JDK VERSION : 1.6.0_04 ]

This is for the Beta build. When I use Go To File, I frequently get
more files than desired even when I give the full file name. Typing
SqlTest.xml will return:

Sql* (Pretty much everything beginning with Sql).
Comment 1 Jan Becicka 2008-08-15 12:50:38 UTC
Jirko, can you check it? It works well for me.
Comment 2 Tomas Zezula 2008-08-15 13:07:47 UTC
Works for me.
Having following files in project:
Main.java		SqlPerson.java		SqlTestFactory.xml
SqlClass.java		SqlPerson.xml		TestFoo.java
SqlFactory.java     SqlTest.xml		        TestedFoo.java

Typing SqlTest.xml returns only SqlTest.xml
Comment 3 Tomas Zezula 2008-08-15 13:10:17 UTC
Created attachment 67527 [details]
Output
Comment 4 Tomas Zezula 2008-08-15 13:11:41 UTC
See attached screenshot.

Comment 5 dafreels 2008-08-18 19:54:01 UTC
Created attachment 67733 [details]
Screen_Shot_of_Bug
Comment 6 dafreels 2008-08-18 19:56:51 UTC
I have attached a screenshot taken from build 200808170243. I have removed file names and project names. 
All of the file names start with the same name such as MyFile. It almost seems as if it started the search prior to
typing the (.js). However, I had typed the whole string and waited ~203 seconds before the list was displayed.
Comment 7 dafreels 2008-08-18 19:58:01 UTC
Correction, waited ~2-3 seconds not 203 seconds.
Comment 8 Tomas Zezula 2008-08-19 07:42:49 UTC
So, you firstly type: MyFile than wait for while (longer than 500ms) added .js and than waited again, right?
It possible that there is some race condition, the original author of this feature didn't cared about visibility and synchronization much.

Comment 9 dafreels 2008-08-19 12:40:26 UTC
I typed the file name I was looking for, then brought up the Go To File dialog and paste the filename 
into the text field. This found the single file I was looking for. The problem I see is that I didn't realize that I
paused for ~500ms so the results look inaccurate to me.
Comment 10 Tomas Zezula 2008-08-19 14:47:49 UTC
Thanks for feedback. The Goto file should stop the search and restart it when you type a change => threading issue,
either there is no cancellation or the cancel flag is not volatile.

Comment 11 dafreels 2008-08-19 14:57:37 UTC
It does not appear to reset as I type. I tried typing something then using the backspace key and the search 
seemed to ignore my changes.
Comment 12 Tomas Zezula 2008-08-27 10:38:27 UTC
http://hg.netbeans.org/main/rev/3715cdd49b99
Comment 13 Quality Engineering 2008-08-28 06:29:04 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/3715cdd49b99
User: Tomas Zezula <tzezula@netbeans.org>
Log: #143947:[65cat] Go To File returns incorrect results
Comment 14 dafreels 2008-08-28 12:48:07 UTC
I have verified that this is fixed in build 200808280201.