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 251743 - Search for ^$ hangs editor for a while
Summary: Search for ^$ hangs editor for a while
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-09 17:54 UTC by tbrunhoff
Modified: 2015-07-23 15:34 UTC (History)
0 users

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 tbrunhoff 2015-04-09 17:54:01 UTC
Searching (^F) for empty lines with a regex of ^$ hangs the editor for about 10 seconds, with no results. The file I was searching on was 6400 lines with many empty lines.


Product Version: NetBeans IDE Dev (Build 201503250001)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.14.27-100.fc19.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 Milutin Kristofic 2015-07-08 14:58:56 UTC
Fixed in http://hg.netbeans.org/jet-main/rev/4856cb165fcb It will stil get 0 results, since Netbeans search allows only matches with more than 0 length, but it is now fast.
Comment 2 tbrunhoff 2015-07-08 15:09:04 UTC
... then how would you search for empty lines within NB?
Comment 3 Quality Engineering 2015-07-09 01:16:00 UTC
Integrated into 'main-silver', will be available in build *201507090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4856cb165fcb
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #251743 - Search for ^$ hangs editor for a while
Comment 4 Milutin Kristofic 2015-07-23 14:52:38 UTC
I am sorry there never been in Netbeans option to search for empty lines (I double checked this with NB 7.1) I made enhencement https://netbeans.org/bugzilla/show_bug.cgi?id=253692 I believe it should be possible, but it would make sense with multiline regexp. So you could delete empty lines with regexp. I would propose this for next release of Netbeans
Comment 5 tbrunhoff 2015-07-23 15:34:37 UTC
Very good! Thanks.