izhangzhihao / intellij-rainbow-brackets

🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio/Fleet
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
GNU General Public License v3.0
4.35k stars 202 forks source link

Why hasn't the color of the variable changed in my code #2686

Closed JonnyJiang123 closed 5 months ago

JonnyJiang123 commented 5 months ago

Have you checked the issues and discussions to ensure there are no duplicates?

No

Your programming languages

Java

Free or paid?

Paid users

Expected Behavior

According to the official demo, the variables, methods, and classes in my sample code should be different colors, but that's not the case at the moment. However, when I tried to develop a Go program using Goland, I found that the variables of Golang could change the presentation. At the same time, in IntelliJ Idea, there are different colors for the nodes in xml and html, but there is still no color for the variables in JavaScript.

image

Code snippet for test

image

Your Environment

image image image image image image image image
izhangzhihao commented 5 months ago

pls uncheck this option first and try again.

image
JonnyJiang123 commented 5 months ago

image It works!! Thank you!

alexanderfilipzik commented 1 month ago

@izhangzhihao same for me, I was using this (payed) plugin before in AndroidStudio and now installed it in IntellJ Ultimate. But I can't make rainbow variables work for me. Bildschirmfoto 2024-04-04 um 16 15 56

Bildschirmfoto 2024-04-04 um 16 14 52

Bildschirmfoto 2024-04-04 um 16 14 54

Bildschirmfoto 2024-04-04 um 16 14 58

Bildschirmfoto 2024-04-04 um 16 15 01

Bildschirmfoto 2024-04-04 um 16 15 08

Bildschirmfoto 2024-04-04 um 16 16 49 local variable declaration has no color - I also observed that for a short amount of time (<1s) the declaration has a color and then, from one moment to another, the color will applied to the references of this variables. So kind of swapping is happening here

Bildschirmfoto 2024-04-04 um 16 14 32 function parameter has no color

Could you please help me

izhangzhihao commented 1 month ago

pls uncheck this option and restart your IDE:

image
alexanderfilipzik commented 1 month ago

I already did this, nothing has changed then

izhangzhihao commented 1 month ago

So what other plugins or themes you have installed? Maybe a conflict between the plugin highlighting function?

alexanderfilipzik commented 1 month ago

only 3 image

izhangzhihao commented 1 month ago

Can you disable the other two plugins and restart your IDE then give it a try? Or try start editing the files to trigger the Editor re-highlighting? I need to reproduce your issue but I don't know how.

alexanderfilipzik commented 1 month ago

no luck with that, i tried semantic highlight with a vanilla installation of 2024.1 of IntelliJ Ultimate, and there it was broken also - so seems to be an issue on Jetbrains side.

I'm using this version now and everything works:

IntelliJ IDEA 2023.3.6 (Ultimate Edition) Build #IU-233.15026.9, built on March 21, 2024 Licensed to Alexander Filipzik Subscription is active until May 3, 2024. Runtime version: 17.0.10+1-b1087.23 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

izhangzhihao commented 1 month ago

no luck with that, i tried semantic highlight with a vanilla installation of 2024.1 of IntelliJ Ultimate, and there it was broken also - so seems to be an issue on Jetbrains side.

I'm using this version now and everything works:

IntelliJ IDEA 2023.3.6 (Ultimate Edition)

Build #IU-233.15026.9, built on March 21, 2024

Licensed to Alexander Filipzik

Subscription is active until May 3, 2024.

Runtime version: 17.0.10+1-b1087.23 aarch64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Ok, you can raise a ticket to JB here https://youtrack.jetbrains.com/issue/

alexanderfilipzik commented 3 weeks ago

discovered that there is already an issue for that https://youtrack.jetbrains.com/issue/KTIJ-29348