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

[KTIJ-29348] Rainbow Variables not working well on IntelliJ IDEA 2024.1 (Ultimate Edition) / Semantic highlighting is overridden #2720

Open maor-graiber opened 1 month ago

maor-graiber commented 1 month ago

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

Yes

Your programming languages

Kotlin

Free or paid?

Free users

Expected Behavior

All my variables should have colors when "Rainbow Variables" are turned on. See screenshots below: image image

Current Behavior

Only some variables have color while others don't.

Code snippet for reproduce

class SomeClass {

  fun doSomething(firstInput: String, secondInput: Int) {

    // no color for concat variable (val)
    val concat = firstInput + secondInput
    println("Inside function block I see variable color but not in param list: $firstInput")
    println("Inside function block I see variable color but not in param list: $secondInput")

    println("here it has color: $concat")

    // no color for concat variable (var)
    var anotherOne = "asf"

    println("here it has color: $anotherOne")
  }

}

Your Environment

IntelliJ IDEA 2024.1 (Ultimate Edition) Build #IU-241.14494.240, built on March 28, 2024

Licensed to Next Software N.I.I ltd / Maor Graiber Subscription is active until January 1, 2025.

Runtime version: 17.0.10+8-b1207.12 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

JakubKahovec commented 1 month ago

Also happens for Python

izhangzhihao commented 1 month ago

This is a bug of the IDE, pls subscribe or vote for https://youtrack.jetbrains.com/issue/KTIJ-29348/Semantic-highlighting-is-overridden