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 257897 - Regex search in any folder tree with an empty file fails
Summary: Regex search in any folder tree with an empty file fails
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 00:03 UTC by peterkehl
Modified: 2016-02-18 00:16 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 peterkehl 2016-02-09 00:03:32 UTC
Use NetBeans Dev 201602080002 for PHP Projects, run x64 version on Win x64.

Have a PHP project with the attached file selenium-api-override.js (which is a part of Selenium IDE 2.9.1).

In Projects navigator, left click at that file selenium-api-override.js. Then Ctrl+F (Search in Projects rather than editor search) and search for the following regex:
function\s+TreeView[^a-zA-Z0-9_]|[^a-zA-Z0-9_]TreeView\s*[:=]\s*function|\[\s*['"]TreeView['"]\s*\]\s*=\s*function

In Search Results, you get 'Warnings and Errors':
java.io.IOException: java.lang.IllegalArgumentException: Buffer size <= 0
Comment 1 peterkehl 2016-02-09 23:56:08 UTC
Bugzilla doesn't allow me to attach an example file (selenium-api-override.js) for this. However, the problem is reproducible with any *empty* file (0 bytes in length).

(See https://github.com/SeleniumHQ/selenium/blob/master/ide/main/src/content/selenium-api-override.js)