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

[RUST-16610] Rainbow variables not working for Rust mutable bindings #2802

Open
datasone opened this issue Jan 9, 2025 · 1 comment
Open
Labels
IDE issue language specific this feature/issue only effect on specific languages rainbow variables / semantic highlighting

Comments

@datasone
Copy link

datasone commented Jan 9, 2025

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

Yes

Are you using JetBrains Client / Code With Me / IntelliJ Remote Development?

No

Your programming languages

Rust

Free or paid?

Paid users

Expected Behavior

The mutable variables should be colored with their underscores, like in Kotlin (screenshot from Android Studio w/ plugin installed, var idx = 0)
image

Current Behavior

The mutable bindings in RustRover are not colored, while the non-mut ones work normally.
image

Code snippet for reproduce

let non_mut = 0;
    let mut mut_var = 1;

    let _ = non_mut;
    let _ = mut_var;

Your Environment

RustRover 2024.3.2
Build #RR-243.22562.230, built on December 19, 2024
Licensed to XXXXX
Subscription is active until October 29, 2025.
For educational use only.
Runtime version: 21.0.5+8-b631.28 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 32
Registry:
  debugger.attach.dialog.enabled=true
  ide.experimental.ui=true
  i18n.locale=
  llm.ai.assistant.toolwindow.activation.on.start=false
  transferSettings.vscode.onlyCargoToml=true
  terminal.new.ui.show.promotion=false
Non-Bundled Plugins:
  izhangzhihao.rainbow.brackets (2024.2.8-241)
@datasone datasone added the bug? label Jan 9, 2025
@dosubot dosubot bot added language specific this feature/issue only effect on specific languages rainbow variables / semantic highlighting labels Jan 9, 2025
@izhangzhihao
Copy link
Owner

izhangzhihao commented Jan 9, 2025

NOTE: rainbow variables for Rust is powered by the Rust plugin.

Pls follow at YouTrack https://youtrack.jetbrains.com/issue/RUST-16610/Semantic-highlighting-doesnt-work-in-RustRover

@izhangzhihao izhangzhihao changed the title Rainbow variables not working for Rust mutable bindings [RUST-16610] Rainbow variables not working for Rust mutable bindings Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE issue language specific this feature/issue only effect on specific languages rainbow variables / semantic highlighting
Projects
None yet
Development

No branches or pull requests

2 participants