Demetra 5131 : LiveTemplate parsing bug
I was trying to set the following File template for "Catch statement body".
Intent was to have IDEA request a value from the user for both the $logger and $message variables as i would have done for a Live Template.
It seems the syntax is not the same (whis was unexpected), and IDEA pops up an error dialog when trying to use the surround with try/catch intention.
Main problem is DEMETRA keeps reopening the error dialog every second as long as i don't close the file (and restarts popping dialogs as soon as i re-open the file until i modify the template even if i don't reapply the intention).
This behavior doesn't happen with 5.1 (just tried setting the same faulty template) : the dialog only pops once.
Secondary question is : would it be possible to do what i wanted ?
(just like the collections iterations expansions where idea request names for the different variables)
Attachment(s):
dialog.jpg
Please sign in to leave a comment.
>I was trying to set the following File template for "Catch statement body".
>
>
>
>
hm shouldn't that be something like:
$logger$.error($message$ , $EXCEPTION);
#end