Structural replace not working?
Hi there,
I'm trying to replace something like this:
catch (SomeException e){
blah, blah, blah
}
with
catch(SomeException e){
shorter blah + something new
}
Using structural search and replace, I can find the blocks of code that need
changed. The pattern I'm searching for look like
{
blah, blah, blah
}
(without the catch)
But when I try to replace with the new stuff, the code remains unchanged
(preview replace works as well, it's just the replacing itself that fails).
Demetra is popping up an exception (submitted), while the latest version
of Irida does nothing (no error, but no replacement either).
Am I missing something? I realize that probably structural search and replace
would not be needed here (since I don't use any variables), but, still, it
shoud work, right?
Best,
Andrei
Please sign in to leave a comment.
Hi,
Thank you, will fix that.
Andrei Oprea wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"