Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Alexey Kudravtsev 
Subsystem
Find, Replace, Find Usages 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7718
Fixed in build
8225
Severity
0
  • Submitted by   Nick Chaves
    22 months ago (11 Mar 2008 01:19)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43140
    (history, comments)

IDEA-43140

"Whole Words Only" won't find valid results in some instances

1
Added by <no user>
15 Sep 2009
attachment3.png   (99 KB)
Added by <no user>
15 Sep 2009
attachment2.png   (151 KB)
Added by <no user>
15 Sep 2009
attachment1.png   (165 KB)

I have a JS file which has this line of code:

{{var menuID = node.getAttribute("id");}}

Two different searches produces two different results when it should be the same.

Search 1:
Find "var menuID" in files, case-insensitive, in directory where file exists finds this line of code.
(Attachment 1 shows search performed and results)

Search 2:
Find "var menuID" in files, case-insensitive, whole words only, in directory where file exists does not find this line of code.
(Attachment 2 shows whole words only search, Attachment 3 shows results)

In my understanding, "whole words only, should find any instance bounded by spaces or other word boundaries. Even though this search string has a space in the middle, it is also bounded by whitespace, and therefore should be found in "whole words only".

Also, some other phrases even with spaces would be found with "whole words only", it seems to have something to do with the keyword "var".

This is very crucial, since whole words only is several times faster than regular search in a large codebase.

It seems that this is recently broken. I've been using IntelliJ IDEA for a long time, and have never noticed any such problem.

Environment: Mac OS X

Issue was resolved
Comments (2)
 
History (1)
 
Links
 
Eric Neilsen
  Eric Neilsen
11 Mar 2008 01:20
(22 months ago)
#permalink
I have the same problem and I'm running on linux. Same build 7718
Nick Chaves
  Nick Chaves
11 Mar 2008 01:25
(22 months ago)
#permalink
Updated to build 7744 and still have same issue.