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

Rainbow variables activates even if disabled in the IDE settings #2691

Closed dariobella closed 5 months ago

dariobella commented 5 months ago

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

Yes

Your programming languages

Java, PHP, Typescript

Free or paid?

Free users

Expected Behavior

If the setting "Rainbow variables" is disabled in the Rainbow Brackets settings, the variables in the IDE shouldn't be highlighted with rainbow colors

2023-12-05 11_06_24 - Main

Current Behavior

Even if the setting is disabled, the variables are still highlighted with rainbow colors

2023-12-05 11_03_57 - Main

The problem disappeared for a bit when I restarted the IDE and re-opened the file. Then after some time while I was working, I pressed backspace and the variable rainbow highlighting came back, I wish I had a recording. It is happening to me on both IntelliJ IDEA Community Edition and PHPStorm

Code snippet for reproduce

Any code containing variables, this is my test in java

public class Main {
    public static void main(String[] args) {
        String var1 = "var1";
        System.out.println(var1);

        String var2 = "var2";
        System.out.println(var2);

        String[] array = {var1, var2};
        System.out.println(array.length);
    }
}

Your Environment

IntelliJ IDEA Community Edition

IntelliJ IDEA 2023.2.5 (Community Edition)
Build #IC-232.10227.8, built on November 9, 2023
Runtime version: 17.0.9+7-b1000.46 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 3996M
Cores: 12
Registry:
    debugger.watches.in.variables=false
    debugger.new.tool.window.layout=true
    debugger.valueTooltipAutoShowOnSelection=true
    ide.experimental.ui=true

Non-Bundled Plugins:
    Key Promoter X (2023.3.0)
    com.tabnine.TabNine (1.35.0)
    Docker (232.10227.13)
    com.github.setial (4.1.0)
    izhangzhihao.rainbow.brackets (2023.3.7)
    ru.adelf.idea.dotenv (2023.2)
    com.mallowigi (93.1.0)
    mobi.hsz.idea.gitignore (4.5.2)
    MavenRunHelper (4.27.1-IJ2022.2)
    com.carbonblack.intellij.rpmspec (2.2.0)
    com.perl5 (2023.2.1)

Kotlin: 232-1.9.21-release-633-IJ10072.27

PHPStorm

PhpStorm 2023.2.4
Build #PS-232.10227.13, built on November 18, 2023
Licensed to PGUM S.r.l. / Dario Bella
Subscription is active until January 14, 2024.
Runtime version: 17.0.9+7-b1000.46 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
    debugger.watches.in.variables=false
    debugger.new.tool.window.layout=true
    run.processes.with.pty=TRUE
    debugger.valueTooltipAutoShowOnSelection=true
    ide.experimental.ui=true

Non-Bundled Plugins:
    com.perl5 (2023.2.1)
    Key Promoter X (2023.3.0)
    com.tabnine.TabNine (1.35.0)
    com.kalessil.phpStorm.phpInspectionsEA (5.0.0.0)
    ru.adelf.idea.dotenv (2023.2)
    net.king2500.plugins.PhpAdvancedAutoComplete (1.1.0)
    de.espend.idea.php.annotation (9.4.0)
    izhangzhihao.rainbow.brackets (2023.3.7)
    lv.midiana.misc.phpstorm-plugins.deep-keys (2022.08.03.001)
    fr.adrienbrault.idea.symfony2plugin (2022.1.261)
    com.flageolett.nodeconfig (2.0.0)
    com.mallowigi (93.1.0)
    mobi.hsz.idea.gitignore (4.5.2)
    com.carbonblack.intellij.rpmspec (2.2.0)
izhangzhihao commented 5 months ago

Pls follow https://github.com/izhangzhihao/intellij-rainbow-brackets/discussions/2606