Closed rhdunn closed 8 years ago
Can you please let me know which version of IDE and plugin are you using as I can't seem to be able to reproduce it on the latest code? Also some screenshots and/or video might be helpful.
IntelliJ community edition 14.1.5 with intellij-xquery 2.2.1 using Java 1.8 on Windows 7. I'll look at seeing if I can track down what is triggering this issue and the other related highlighting issue.
Given:
declare function createMessage($message, $value) {
if ($message) then
<message value="{$value}">{$message}</message>
else
<message test="foo">Test</message>
};
Alter the first XML fragment to:
<message value="{$value}">
{$message}</message>
This causes the green attribute value highlighting to extend beyond the closing "
character:
This state remains until the file is closed and reopened. Even when:
"
of the value
attribute (which shows the expected highlighting for when the attribute is closed).Hi,
Thanks for these examples, they were very helpful. I was able to reproduce the issue on 2.2.1. It was fixes as part of https://github.com/ligasgr/intellij-xquery/issues/117 Can you please check a plugin version from this link which only contains the fix if it solves the issue? Same applies to the other issue ( #137 ) which also should be fixed by this. JetBrains have pretty clear instructions on how to install plugin from disk.
Given:
Deleting
bar
, resulting in:causes the highlighting after the expression to get confused. This also happens when pasting the $foo expression into a new location, or making any other changes to cause the highlighting to update (e.g. adding a space before
{$bar}
).NOTE: Loading the XQuery initially (or closing and opening it again after changes have been made) causes the file to be highlighted correctly.