Hi there,
I am migrating the plugin to the IntelliJ Platform Gradle Plugin: GitHub - aemtools/aemtools: AEM Tools is Intellij IDEA plugin containing Adobe Experience Manager related features. I noticed some annotator tests are failing now, but I haven’t changed any code.
Previous state:
<nav <info descr="null">data-sly-test</info>.<weak_warning descr="null">vals</weak_warning>="$DOLLAR{['testval1', 'testval2']}">
<ul <info descr="null">data-sly-list</info>="$DOLLAR{<weak_warning descr="null">vals</weak_warning>}">
$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.count}
<li data-position="$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.index}">
$DOLLAR{<weak_warning descr="null">item</weak_warning>}
</li>
$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.first}
$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.middle}
$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.last}
$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.odd}
$DOLLAR{<weak_warning descr="null">itemList</weak_warning>.even}
</ul>
</nav>
Now:
<nav <info descr="null">data-sly-test</info>.<weak_warning descr="null">vals</weak_warning>="${['testval1', 'testval2']}">
<ul <info descr="null">data-sly-list</info>="${<weak_warning descr="null">vals</weak_warning>}">
${itemList.count}
<li data-position="${itemList.index}">
${<weak_warning descr="null">item</weak_warning>}
</li>
${itemList.first}
${itemList.middle}
${itemList.last}
${itemList.odd}
${<weak_warning descr="null">itemList</weak_warning>.even}
</ul>
</nav>
It appears that it shows only the last occurrence of the annotation for the same text. I’m using weak_warning for syntax highlighting for my custom language. During the testing in IDEA, I noticed that it allows navigating through the highlighted warning only to the last itemList. However, all itemList occurrences are highlighted with correct color.
Could you please help me to understand why, in the new versions do I see these differences in highlighting?