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 207415 - find (ctrl-F) sometimes does not work within a file
Summary: find (ctrl-F) sometimes does not work within a file
Status: VERIFIED DUPLICATE of bug 250379
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 8.0.2
Hardware: Macintosh Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 22:57 UTC by pgazda
Modified: 2015-03-25 13:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pgazda 2012-01-17 22:57:16 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_30
Runtime = Java HotSpot(TM) Client VM 20.5-b03

I have noticed this after highlighting a phrase in a file and using "Find selection" to find occurrences (but don't know at this point whether that alone is a sufficient condition to cause this problem). After that, the find (ctrl-F) does not work. Normally, ctrl-F sets the cursor in the "Find:" box at bottom of the file display window and you type in the find text and hit Enter to find it. When it malfunctions, the cursor does not focus in the "Find" box after ctrl-F, but instead stays where it is in the document. Manually putting the cursor in the Find box and entering text does not work, either. Instead, any new text is in the Find box is ignored, the previously entered string is displayed, and the Find function does not work. The Find Selection function, however, continues to work.
Comment 1 wrprice 2012-02-22 22:53:39 UTC
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

I can confirm this behavior (IIRC, upgraded a 7.0.1 environment to 7.1) and it is driving me up the wall.  On a clean start, the Find bar works as expected but at some point (I keep my IDE open for days) it stops working exactly as described.

I have been banging my head and considering downgrading to pre-7.1 because of this major regression in this critical and basic feature.  I have not found a way to reproduce, but I know that it has reoccurred a number of times.
Comment 2 wrprice 2012-02-22 23:21:34 UTC

*** This bug has been marked as a duplicate of bug 202740 ***
Comment 3 Pere 2015-03-05 09:15:42 UTC
This is still happening to me as of 8.0.2. CTRL+F brings in the "Find" box at the bottom of the file, but no occurrences are found in the current text file and the "no matches" text is displayed, although I can see the actual word highlighted in the file! 

If I close the search box, reopen it via CTRL+F and repeat the entire operation, the same string is found several times in the file, at least at the time of writing this report.

I don't think this is the same as the supposedly related bug, and should be addressed as soon as possible because it's critical.
Comment 4 Milutin Kristofic 2015-03-05 09:27:06 UTC
Yes, I understand it is critical, but I cannot reproduce such behavior. Can you send me reproducible steps, then I can immediately fix it. 

This is really old issue, that is irrevalent for code changes. Please share your anything useful (messages.log, reproducible steps, setup) in Bug #250379. Thank you

*** This bug has been marked as a duplicate of bug 250379 ***
Comment 5 Pere 2015-03-05 09:47:15 UTC
It's happening randomly; the only thing I can think of doing is to take some screenshots. By the way, the workaround for me is the same one as the stated in bug 250379.
Comment 6 nissetuuta 2015-03-25 13:38:41 UTC
Product Version: NetBeans IDE 7.3.1 (Build 201306052037)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Mac OS X version 10.10.2 running on x86_64; US-ASCII; sv_SE (nb)
User directory: /Users/Nisse/Library/Application Support/NetBeans/7.3.1
Cache directory: /Users/Nisse/Library/Caches/NetBeans/7.3.1

Can confirm that this happens, maybe 2 , 3 times per week....
Only solution i have, is to restart Netbeans when this happens, it has something to do with marked text, search keep searching only in text marked, but the text will not be "unmarked" from search even when closing and opening dokument (file) again...
(In reply to pgazda from comment #0)
> Product Version = NetBeans IDE 7.1 (Build 201112071828)
> Operating System = Windows 7 version 6.1 running on x86
> Java; VM; Vendor = 1.6.0_30
> Runtime = Java HotSpot(TM) Client VM 20.5-b03
> 
> I have noticed this after highlighting a phrase in a file and using "Find
> selection" to find occurrences (but don't know at this point whether that
> alone is a sufficient condition to cause this problem). After that, the find
> (ctrl-F) does not work. Normally, ctrl-F sets the cursor in the "Find:" box
> at bottom of the file display window and you type in the find text and hit
> Enter to find it. When it malfunctions, the cursor does not focus in the
> "Find" box after ctrl-F, but instead stays where it is in the document.
> Manually putting the cursor in the Find box and entering text does not work,
> either. Instead, any new text is in the Find box is ignored, the previously
> entered string is displayed, and the Find function does not work. The Find
> Selection function, however, continues to work.