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 230178 - Looking for javascript functions distinguish uppercase
Summary: Looking for javascript functions distinguish uppercase
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 12:48 UTC by cwaiteman
Modified: 2015-07-01 01:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
search for function dialogbox (example) (158.70 KB, image/png)
2013-05-23 12:49 UTC, cwaiteman
Details
Starting the search for function dialogbox (261.27 KB, image/png)
2013-05-23 12:49 UTC, cwaiteman
Details
Distinction of uppercase / lowercase (171.90 KB, image/png)
2013-05-23 12:50 UTC, cwaiteman
Details
Document (33.78 KB, image/png)
2015-06-29 08:44 UTC, Tomas Zezula
Details
Terms (20.47 KB, image/png)
2015-06-29 08:45 UTC, Tomas Zezula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cwaiteman 2013-05-23 12:48:46 UTC
When the distinction between uppercase / lowercase is cleared and there is a javascript function in camel case, the search does not find the function.
If you realize the distinction between uppercase and lowercase, the search function is usually located.
Comment 1 cwaiteman 2013-05-23 12:49:34 UTC
Created attachment 134808 [details]
search for function dialogbox (example)
Comment 2 cwaiteman 2013-05-23 12:49:51 UTC
Created attachment 134809 [details]
Starting the search for function dialogbox
Comment 3 cwaiteman 2013-05-23 12:50:33 UTC
Created attachment 134810 [details]
Distinction of uppercase / lowercase
Comment 4 Jaroslav Havlin 2013-05-27 15:56:42 UTC
Reassigning to JavaScript/Navigation, please evaluate. Thank you.
Comment 5 Petr Pisl 2013-06-11 08:15:19 UTC
It looks like the query support returns case sensitive result even for query CASE_INSENSITIVE.

Tomas, do you have any notion about this?
Comment 6 Petr Pisl 2015-06-22 12:50:44 UTC
Reassigning to Tomas.

To reproduce the problem, create a js file (it can be even in j2se project) and place 

function dialogBox(){} 

into it.

Invoke Goto Symbol dand paste into Symbol name fieled dialogbox . The symbol is not found even when Case Sensitive box is off. But if you write dialogbox into Symbol name field then it's found. 

It looks like, when the first query to the index is done before the written b, then it works, but when you paste dialogbox at once, then the indexquery returns no results.
Comment 7 Tomas Zezula 2015-06-29 07:42:41 UTC
The problem is in the CSL or JavaScript.
When the jumpto asks CSL SymobolProvider for dialogbox it gets empty collection.
I will evaluate the CSL & friends.
Comment 8 Tomas Zezula 2015-06-29 08:42:57 UTC
The problem is not in the CSL but in javascript index.
The index executes case_insentive_prefix query on the case sensitive field "bn".
I think that the javascript index is missing case insensitive fields, see attached screenshot.

It work when you do filtering (type letter by letter) as it asks for case_insentive_prefix "dialog" and it currently returns dialogBox which passes a case_insentive_prefix filter. But when you search for the whole "dialogbox" index returns nothing.
Comment 9 Tomas Zezula 2015-06-29 08:44:57 UTC
Created attachment 154421 [details]
Document
Comment 10 Tomas Zezula 2015-06-29 08:45:18 UTC
Created attachment 154422 [details]
Terms
Comment 11 Petr Pisl 2015-06-29 12:23:55 UTC
Tome, thanks for the evaluation. I was thinking that the parsing api handle this. My fault.:)

Go to Symbol and also Go to Type fixed in web-main.
Comment 12 Quality Engineering 2015-07-01 01:18:07 UTC
Integrated into 'main-silver', will be available in build *201507010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4698f0a5864c
User: Petr Pisl <ppisl@netbeans.org>
Log: #230178 - Looking for javascript functions distinguish uppercase