How to disable 'Analyzing' in TrafficLightRenderer of IntelliJ 2020.3 and newer?

Answered

Hi there,

We updated our IntelliJ CE to 2020.3, and looks like `Analyzing` is taking a long time which blocks coloring, buttons, and other more important features of IntelliJ. Is there a way that we can disable it? 

I tried to debug the code but I always get compilation errors. The way I build up IntelliJ is

  • downloaded intellij-community from Github,
  • checked out branch 203 
  • opened in 2019.2 CE
  • tried to run the config from there. 

Then there're always some compilation errors. Please let me know if my approach is problematic. I noticed that the intellij-community/android and intellij-community/android/tools-base don't have branch 203, not sure if this could potentially cause the issue. 

My ultimate goal is to disable the `Analyzing` in TrafficLightRenderer so that our people can work faster. Is there a way that we can work from the plugin side? We do maintain an IntelliJ plugin. The attached image is where our UI gets stuck - notice that the `Analyzing...` sticks on the upper right corner for a very very long time, and progress can be made after the text changes. 

Any assistance will be greatly appreciated!

Thank you!

5 comments
Comment actions Permalink

Please report performance problem diagnostic info as described in link so we can investigate underlying issue causing "Analyzing" to take such long time. Thanks.

 

https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems

0
Comment actions Permalink

Hi Yann, 

it might be hard to provide the full context as we have multiple custom plugins. Is it possible to just disable 'Analyzing' from plugin side? That's all we need. 

0
Comment actions Permalink

The point is really, "Analyzing" shouldn't take so much time, so it's absolutely needed to investigate underlying cause - either in platform or in custom plugins. As temporary measure, you can set highlighting level in editor to "Syntax" or "None" via right-click on this status UI.

0
Comment actions Permalink

Got this happening in:

IntelliJ IDEA 2021.1.2 (Community Edition)
Build #IC-211.7442.40, built on June 1, 2021
Runtime version: 11.0.11+9-b1341.57 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1977M
Cores: 8
Registry: scala.erase.compiler.process.jdk.once=false
Non-Bundled Plugins: com.github.mturlo.intellij.theme.spacegray (1.4.2), org.intellij.scala (2021.1.21)
Kotlin: 211-1.4.32-release-IJ7442.2

I found it almost always happens if I do this:

1. Create a Scala Worksheet

2. Work on it fine

3. Restart (I think sometimes it happens without one too)

4. Stuck "Analyzing..."

This wouldn't be a problem, except that apparently nothing can be run until this is done (in spite of the double negation):

Cancel button does nothing except graphically being "pressed", and the word "Cancel" appearing on hover:

https://imgur.com/a/2auO3y8 

As you can see in the video,

As temporary measure, you can set highlighting level in editor to "Syntax" or "None" via right-click on this status UI.

didn't really work (even after restarting). What it did do is to, technically, get rid of "Analyzing..." and say "Highlighting disabled", but it's a façade: the background task didn't get killed, and as soon as Code Analysis is turned back on, it will be listed under it.

I tried to follow the posted advice for reporting this better

Please report performance problem diagnostic info as described in link so we can investigate underlying issue causing "Analyzing" to take such long time. Thanks.

 

https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems

but I couldn't find anything on how to unpick specifically this "Analyzing...". Also some of the options from "Help > Diagnose" are simply not there; I only got "Activity Monitor | Analyze Plugin Startup Performance || Debug Log Settings".

Would appreciate any help.

0
Comment actions Permalink

Hello fc7cfb5d7e, the above support document should be up-to-date, please make sure to choose options corresponding to your IDE version. If you need assistance, please use "Submit a Request" option on https://intellij-support.jetbrains.com/hc/en-us/?intellij-idea

0

Please sign in to leave a comment.