Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Open
Assignee
Maxim Mossienko
Subsystem
Structural Search and Replace
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Brad Lane
    3 years ago (22 Oct 2008 20:35)
  • Updated by   Brad Lane
    2 years ago (25 Mar 2009 20:33)
  • Jira: IDEA-20158
    (history, comments)
 
IDEA-20158 Good code marked red after SSR
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
After performing a structural search and replace, the parameter involved is marked as "Cannot resolve symbol" for all future uses. For instance,

Search template:

MyObj $parameter$ = new MyObj();

Replacement template:

MyObj $parameter$ = new MyObj(MyOtherObj.getInstance());


After performing the replacement, all uses of $parameter$ are marked "Cannot resolve symbol" and the variable in the object creation expression is marked as never used. I can perform a successful rebuild of the project but the editor still shows the false errors.

Environment: WinXP
Comments (2)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
22 Oct 2008 21:05
3 years ago
Does the error goes away after dummy file modification?
Brad Lane
  Brad Lane
22 Oct 2008 21:22
3 years ago
Yes. Closing/re-opening the project clears it up too.