# Any one take care of the 'Cannot set highlighter to RangeHighlighter' issue?

**URL:** https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144
**Category:** IntelliJ Platform
**Tags:** highlighting
**Created:** [March 29, 2025, 2:37am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144 "2025-03-29T02:37:05Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![zhihao](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/zhihao/32/260_2.png) [@zhihao](https://platform.jetbrains.com/u/zhihao)
#### Post date: [March 29, 2025, 2:37am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/1 "2025-03-29T02:37:05Z")

</div>

I reported this 2 months ago, event not fixed now: [https://youtrack.jetbrains.com/issue/IJPL-176356/Cannot-set-highlighter-to-RangeHighlighter](https://youtrack.jetbrains.com/issue/IJPL-176356/Cannot-set-highlighter-to-RangeHighlighter)

And if you do some search, you will find much more other reports:

[https://youtrack.jetbrains.com/issues?q=HighlightInfo](https://youtrack.jetbrains.com/issues?q=HighlightInfo)

---

<div class="post-metadata">

### Author: ![zhihao](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/zhihao/32/260_2.png) [@zhihao](https://platform.jetbrains.com/u/zhihao)
#### Post date: [March 29, 2025, 2:38am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/2 "2025-03-29T02:38:19Z")

</div>

The error introduced by this commit: [assertion: cannot reassign error strip tool tip (to avoid accidental … · JetBrains/intellij-community@26335d4 · GitHub](https://github.com/JetBrains/intellij-community/commit/26335d4003a83ebfadda247845478d4521c6d7b8)

This usage may related to my rangeHighlighter: [intellij-rainbow-brackets/src/main/kotlin/com/github/izhangzhihao/rainbow/brackets/lite/action/AbstractScopeHighlightingAction.kt at 2022.3 · izhangzhihao/intellij-rainbow-brackets · GitHub](https://github.com/izhangzhihao/intellij-rainbow-brackets/blob/2022.3/src/main/kotlin/com/github/izhangzhihao/rainbow/brackets/lite/action/AbstractScopeHighlightingAction.kt#L39)

---

<div class="post-metadata">

### Author: ![yuriy.artamonov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yuriy.artamonov/32/48_2.png) [@yuriy.artamonov](https://platform.jetbrains.com/u/yuriy.artamonov)
#### Post date: [March 29, 2025, 7:22am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/3 "2025-03-29T07:22:06Z")

</div>

Hi, we have exception reports related and this issue in progress in fact.

We also have blocking-release status for it, so should be fixed first!

---

<div class="post-metadata">

### Author: ![zhihao](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/zhihao/32/260_2.png) [@zhihao](https://platform.jetbrains.com/u/zhihao)
#### Post date: [March 29, 2025, 9:20am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/4 "2025-03-29T09:20:02Z")

</div>

Thanks for the update. And I found this commit: [IJPL-176454 AE: HighlightInfoUpdaterImpl.psiElementVisited · JetBrains/intellij-community@6fa4b5d · GitHub](https://github.com/JetBrains/intellij-community/commit/6fa4b5d78f7d1b0e94f34422ae59858c54afc60a)

I had to say something about it:

1. I don’t cache HighlightInfo - each call creates a new HighlightInfo. What’s actually cached is TextAttributesKey, because some colors are randomly generated based on configurations. If we don’t cache them, you’ll notice the colors keep changing every time.
2. If there are any best practices or documentation for HighlightVisitor, please share them. My current implementation was derived solely from reading source code, so I wouldn’t know if usage patterns change in future updates.
3. Please refrain from using terms like “rogue plugins” or “incorrect plugins” in git commit messages or code comments. I’m not sure why this wording was used. Also, my plugin isn’t called “RainBrackets” nor has it ever used that abbreviation - its official name is Rainbow Brackets.

---

<div class="post-metadata">

### Author: ![zhihao](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/zhihao/32/260_2.png) [@zhihao](https://platform.jetbrains.com/u/zhihao)
#### Post date: [March 31, 2025, 1:58am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/5 "2025-03-31T01:58:34Z")

</div>

Hello,

This is an automated message from JetBrains Platform to let you know that your post was hidden.

[https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/4](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/4)

Your post was flagged as **inappropriate** : the community feels it is offensive, abusive, to be hateful conduct or a violation of [our community guidelines](https://platform.jetbrains.com/guidelines).

This post was hidden due to flags from the community, so please consider how you might revise your post to reflect their feedback. **You can edit your post after 10 minutes, and it will be automatically unhidden.**

However, if the post is hidden by the community a second time, it will remain hidden until handled by staff.

For additional guidance, please refer to our [community guidelines](https://platform.jetbrains.com/guidelines).

---

<div class="post-metadata">

### Author: ![zhihao](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/zhihao/32/260_2.png) [@zhihao](https://platform.jetbrains.com/u/zhihao)
#### Post date: [March 31, 2025, 2:03am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/6 "2025-03-31T02:03:10Z")

</div>

How fascinating that haters can freely dump their error-ridden, emotional, nonsensical, ad hominem rants in plugin reviews, yet when I factually describe JetBrains employees’ commit messages on [platform.jetbrains.com](http://platform.jetbrains.com), it magically gets flagged as ‘offensive’, ‘abuse’, or ‘hateful conduct’. Bravo! The hypocrisy is truly award-winning.

Also related to [Help plugin owners against harassment](https://platform.jetbrains.com/t/help-plugin-owners-against-harassment/824)

---

<div class="post-metadata">

### Author: ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)
#### Post date: [March 31, 2025, 8:40am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/7 "2025-03-31T08:40:55Z")

</div>

I’ve restored your message above.

---

<div class="post-metadata">

### Author: ![zhihao](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/zhihao/32/260_2.png) [@zhihao](https://platform.jetbrains.com/u/zhihao)
#### Post date: [March 31, 2025, 8:50am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/8 "2025-03-31T08:50:56Z")

</div>

Could you please apply the same rules to the plugin reviews?

---

<div class="post-metadata">

### Author: ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)
#### Post date: [March 31, 2025, 8:52am UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/9 "2025-03-31T08:52:53Z")

</div>

Plugin reviews are managed by the JetBrains Marketplace team and they’re quite unrelated to what happens here in the forum for various reasons (incl. legal frameworks that must be obeyed for Marketplace).

---

<div class="post-metadata">

### Author: ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)
#### Post date: [March 31, 2025, 1:36pm UTC](https://platform.jetbrains.com/t/any-one-take-care-of-the-cannot-set-highlighter-to-rangehighlighter-issue/1144/10 "2025-03-31T13:36:01Z")

</div>

I simply hope that the toxic users from the marketplace won’t harass us (the authors of paid plugins) on this server too.  
Harassment on the marketplace is super easy, JetBrains does almost nothing, and we cannot defend. It seems that the same problem can happen here.
