History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25256
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Nick Chaves
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 11 Mar 08 01:19   Updated: 14 Mar 08 12:29
Component/s: Find, Replace, Find Usages
Fix Version/s: Diana 8243, Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. attachment1.png
(165 kb)

2. attachment2.png
(152 kb)

3. attachment3.png
(99 kb)
Environment: Mac OS X

Build: 7,718
Fixed in build: 8,225
Severity: High


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Eric Neilsen - 11 Mar 08 01:20
I have the same problem and I'm running on linux. Same build 7718

Nick Chaves - 11 Mar 08 01:25
Updated to build 7744 and still have same issue.