mesour-intellij-plugins / latte-pro-issues

2 stars 0 forks source link

Bug - missing opening tag stop plugin function #93

Closed mildabre closed 1 year ago

mildabre commented 1 year ago

Hi, I found complicated bug which in result stop plugin function (underlining errors and completing variable names). The bug is connected with closing latte tag without opening one. The same result makes complete pair of unknown tag.

See screenshots of samples:

a) unpaired unknown tags makes no problems - red underlining works and everything else works:

latte-tags-01

b) unclosed closing tag (unpaired) - missing red underlining of wrong tag {/if} but false red underlining of closing tag of block with false message "unknown close tag", from this point plugin stop function:

latte-tags-02

c) unclosed unknown closing tag (unpaired) makes the same troubles as above:

latte-tags-03

d) two unclosed closing tags (unpaired) - missing red underlining of first unclosed tag {/if}, red underlining of second wrong tag, from this point plugin stop function:

latte-tags-04

e) two unclosed unknown closing tags (unpaired) makes the same troubles as above:

latte-tags-05

f) pair of unknown tag has the same result as unclosed closing tag:

latte-tags-06

g) two pairs of unknown tag has the same result as two unclosed closing tags:

latte-tags-07

It is not an academical problem, in case you have two unknown tags somewhere in template (for example {translate}...{/translate}), from the point of the second one the plugin works not !!!

mabar commented 1 year ago

Probably same problem as with pair {label foo} without closing tag See #69

mesour commented 1 year ago

Done in 1.0.11