Obsolete
Status Update
Comments
uc...@google.com <uc...@google.com>
rp...@google.com <rp...@google.com>
[Deleted User] <[Deleted User]> #2
This is still broken with AS 3.3.1 and AS 3.5 Canary 4.
kd...@google.com <kd...@google.com> #3
The structural replace feature has changed so much in the last 5 years that I am going to mark this bug as obsolete. If you still encounter it and have a repro, please feel free to open a new bug with repro instructions for the new version of the tool.
Description
Steps to reproduce:
1. Click "Add replace template" in Structural search inspection
2. Introduce new variable in place of "$FieldName$" in replace window that should replace variable named "FieldName", name it "NewFieldName" with dollars respectively.
3. Go to edit variables and select FieldName
4. Type some regex matcher, let's say hungarian notation matcher "(m|s)[A-Z].*"
5. Edit Script text to lets say "FieldName.name.toLowerCase()"
6. Enjoy "Structural Search Inspection problem in template 'user defined': Groovy Script execution error: No such property: FieldName for class: NewFieldName_script"
Please confirm that this is a bug, not my error. Everythink seems to be setup correctly. Thanks.