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

Summary: Regex search in any folder tree with an empty file fails
Product: utilities Reporter: peterkehl <peterkehl>
Component: SearchAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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)