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

Some previous indent highlights remain, when indent highlighting mode is "Current indent" #2750

Open
hogejo opened this issue Jul 6, 2024 · 5 comments
Labels

Comments

@hogejo
Copy link

hogejo commented Jul 6, 2024

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

Yes

Your programming languages

tested in Java and Dart

Free or paid?

Paid users

Expected Behavior

Moving the cursor (with mouse or keyboard), only the current indent is highlighted.

Current Behavior

The new indent is highlighted, but sometimes, some previous indent parts remain highlighted.

broken-highlights

In the above example, the current indent highlight is broken too :(

Code snippet for reproduce

bug is not code-dependant

Your Environment

IntelliJ IDEA 2024.1.4 (Ultimate Edition)
Build #IU-241.18034.62, built on June 20, 2024
Licensed to [REDACTED]
You have a perpetual fallback license for this version.
Subscription is active until [REDACTED].
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.9.3-1-default
GC: G1 Young Generation, G1 Old Generation
Memory: 3484M
Cores: 16
Non-Bundled Plugins:
manjaro.mpb (1.9)
net.sjrx.intellij.plugins.systemdunitfiles (223.240703.177)
Batch Scripts Support (1.0.13)
com.jetbrains.space (241.18034.4)
Dart (241.17890.8)
com.github.jk1.ytplugin (2024.2.117)
com.intellij.guice (241.14494.158)
ru.artyushov (1.5.0)
com.chylex.intellij.inspectionlens (1.4)
izhangzhihao.rainbow.brackets (2024.2.4-241)
com.jetbrains.packagesearch.intellij-plugin (241.0.11)
org.jusecase.jte-intellij (2.1.2)
org.jetbrains.android (241.17011.79)
io.flutter (80.0.2)
zielu.gittoolbox (500.2.10+233)
Kotlin: 241.18034.62-IJ
Current Desktop: XFCE

@hogejo hogejo added the bug? label Jul 6, 2024
@izhangzhihao
Copy link
Owner

duplicate with #2540

@hogejo
Copy link
Author

hogejo commented Jul 9, 2024

@izhangzhihao do you plan to close this too, or want to investigate? Your code looks a bit intimidating on the first look. But I played around with the behaviour, and:

  1. It also happens in the new UI
  2. It seems to be 100% deterministic

If you move up and down on the very end of each line, it works fine. If you start moving in, it breaks when you hit the first bracket.

rainbow.mp4

@izhangzhihao
Copy link
Owner

I will investigate this issue later.

@haolly

This comment was marked as off-topic.

@izhangzhihao
Copy link
Owner

我也遇到这个问题了,怎么回退旧版本呢?

revert to an old version won't fix it.

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

No branches or pull requests

3 participants