dima74 / intellij-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
https://plugins.jetbrains.com/plugin/13308-indent-rainbow/
GNU General Public License v3.0
64 stars 13 forks source link

Severe logspam due to calling a deprecated method #41

Closed HonoluluHenk closed 2 years ago

HonoluluHenk commented 2 years ago

The plugin creates a massive amount of logspam in the system log (syslog) because it seems to be calling a deprecated method.

This error was reported 21260 times in just 2-3 hours.

I'm using linux, not sure if other OS are affected. This might possibly be the case since the error refers to some IntelliJ-Plugin-API.

Log-Entry: Feb 4 13:05:38 my-hostname jetbrains-idea.desktop[7792]: 2022-02-04 13:05:38,200 [11086275] WARN - emon.impl.AnnotationHolderImpl - Exception 'com.intellij.diagnostic.PluginException: 'AnnotationHolder.createInfoAnnotation()' method (the call to which was found in class indent.rainbow.IrAnnotatorImpl) is slow, non-incremental and thus can cause unexpected behaviour (e.g. annoying blinking), is deprecated and will be removed soon. Please use `newAnnotation().create()` instead [Plugin: indent-rainbow.indent-rainbow]' was reported 21260 times

akmalick commented 2 years ago

I can confirm this. I am on a Windows 10 System. Looking at the log for past 2 hours, in my case it was reported 9480 times :

Exception 'com.intellij.diagnostic.PluginException: 'AnnotationHolder.createInfoAnnotation()' method (the call to which was found in class indent.rainbow.IrAnnotatorImpl) is slow, non-incremental and thus can cause unexpected behaviour (e.g. annoying blinking), is deprecated and will be removed soon. Please usenewAnnotation().create()instead [Plugin: indent-rainbow.indent-rainbow]' was reported 9480 times The plugin is too slow. Yesterday I opened a json file with about 1K lines and I couldn't see the indentation markers until a couple of seconds passed. Also, when I scrolled through the file I could literally see the lagging.

dima74 commented 2 years ago

@HonoluluHenk @akmalick @robp94 Could you please try this version of the plugin and check whether issue was fixed:

Indent Rainbow-2.0.0.zip

akmalick commented 2 years ago

@HonoluluHenk @akmalick @robp94 Could you please try this version of the plugin and check whether issue was fixed:

Indent Rainbow-2.0.0.zip

Observations after a few hours of usage : 💯 Works like a charm. Haven't been able to recreate the issue. Performance wise its great. 🚀

Thank you so much @dima74 for this awesome plugin. Pretty handy 🎉

HonoluluHenk commented 2 years ago

works for me, too.

Thanks a lot!

dima74 commented 2 years ago

Fixed in v2.0.2