Intellij Plugin Error

I am currently seeing this warning message from org.sonarlint.idea when I start intellij .
Sonar idea version 6.4.1.42145
IntelliJ Build #IU-213.6777.11, built on January 13, 2022 (2021.3.2)

2022-01-19 16:30:41,629 [  22928]   WARN - emon.impl.AnnotationHolderImpl - 'AnnotationHolder.createAnnotation()' method (the call to which was found in class org.sonarlint.intellij.editor.SonarExternalAnnotator) 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: org.sonarlint.idea] 
com.intellij.diagnostic.PluginException: 'AnnotationHolder.createAnnotation()' method (the call to which was found in class org.sonarlint.intellij.editor.SonarExternalAnnotator) 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: org.sonarlint.idea]
	at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:290)
	at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12)
	at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:92)
	at com.intellij.codeInsight.daemon.impl.AnnotationHolderImpl.doCreateAnnotation(AnnotationHolderImpl.java:200)
	at com.intellij.codeInsight.daemon.impl.AnnotationHolderImpl.createAnnotation(AnnotationHolderImpl.java:183)
	at org.sonarlint.intellij.editor.SonarExternalAnnotator.addAnnotation(SonarExternalAnnotator.java:116)
	at org.sonarlint.intellij.editor.SonarExternalAnnotator.lambda$apply$1(SonarExternalAnnotator.java:69)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
Caused by: com.intellij.util.IncorrectOperationException: 'AnnotationHolder.createAnnotation()' method (the call to which was found in class org.sonarlint.intellij.editor.SonarExternalAnnotator) 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
	... 57 more

Hello @mailsanchu,

Welcome to the community!

Indeed we call the AnnotationHolder.createAnnotation() method when we create issues annotations in the editor, and it is deprecated. I have created this ticket.

Thanks for raising this!

Hi @Damien_Urruty
Thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.