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.47k stars 214 forks source link

Not working on IntelliJ IDEA 2022.1.3 #2508

Closed KayleighWasTaken closed 2 years ago

KayleighWasTaken commented 2 years ago

Your Programming Languages

I have tested with Scala, Python, JS, and Java

Expected Behaviour

Brackets become rainbow

Current Behaviour

Brackets are not rainbow

Your Environment

Plugin Version: 6.25


Build #IC-221.5921.22, built on June 21, 2022
Runtime version: 11.0.15+10-b2043.56 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2038M
Cores: 12
Non-Bundled Plugins:
    indent-rainbow.indent-rainbow (2.0.2)
    com.jetbrains.darkPurpleTheme (1.3)
    izhangzhihao.rainbow.brackets (6.25)
    org.intellij.scala (2022.1.17)

Kotlin: 221-1.6.21-release-337-IJ5921.22```
open-collective-bot[bot] commented 2 years ago

Hey @KayleighWasTaken :wave:,

Thank you for opening an issue/feature request. We will get back to you as soon as we can. Also, check out our https://opencollective.com/intellij-rainbow-brackets and consider backing us - every little helps!

PS.: We offer priority support for all backers. Don't forget to add priority label when you start backing us :smile:

izhangzhihao commented 2 years ago

Can you make sure all these options are checked? and if you have a new installation, please restart.

image
KayleighWasTaken commented 2 years ago

All of those are checked, yes. I have restarted as well. Another thing is that it just works in my PyCharm install with identical settings if that's worth anything.

izhangzhihao commented 2 years ago

Did rainbow brackets work for your PyCharm? any screenshots of not working?

KayleighWasTaken commented 2 years ago

Yeah it works in PyCharm, but not IDEA.

Screenshot of it not working in IDEA: image

Screenshot of it working in PyCharm: image

izhangzhihao commented 2 years ago

Just scala files does not work in IDEA or even other files does not work?

KayleighWasTaken commented 2 years ago

With some further testing I've narrowed it down to being something to do with needing brackets outside of an object. Here are three example screenshots to demonstrate, the only thing I did between them is add and then remove the brackets shown at the bottom of the second screenshot: image image image

Once you remove the brackets again the highlighting stays, but you need them there to get it to start highlighting.

izhangzhihao commented 2 years ago

It works for me without adding extra brackets outside of the object, rainbowify instantly happened.

image
IntelliJ IDEA 2022.2 (Ultimate Edition)
Build #IU-222.3345.118, built on July 26, 2022
Licensed to IntelliJ Rainbow Brackets / Zhang Zhihao
Subscription is active until January 20, 2023.
For non-commercial open source development only.
Runtime version: 17.0.3+7-b469.32 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.4
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Metal Rendering is ON
Registry:
    ide.intellij.laf.enable.animation=true
    debugger.new.tool.window.layout=true
    ide.tooltip.initialDelay=900
    ide.experimental.ui=true
    ide.balloon.shadow.size=0
    scala.erase.compiler.process.jdk.once=false

Non-Bundled Plugins:
    org.nik.presentation-assistant (1.0.10)
    net.seesharpsoft.intellij.plugins.csv (2.19.0)
    com.mallowigi.idea (18.1.0)
    com.intellij.plugins.expui (0.4)
    atom-one (1.5.1)
    String Manipulation (9.5.0)
    com.mallowigi (65.1.0)
    org.intellij.scala (2022.2.10)
    izhangzhihao.rainbow.brackets (6.25)

Kotlin: 222-1.7.10-release-334-IJ3345.118