Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maor-graiber opened this issue Apr 7, 2024 · 2 comments

Comments

@maor-graiber
Copy link

maor-graiber commented Apr 7, 2024

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
Copy link

Also happens for Python

@izhangzhihao izhangzhihao changed the title Rainbow Variables not working well on IntelliJ IDEA 2024.1 (Ultimate Edition) [KTIJ-29348] Rainbow Variables not working well on IntelliJ IDEA 2024.1 (Ultimate Edition) / Semantic highlighting is overridden Apr 9, 2024
@izhangzhihao
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants