IllegalArgumentException: Argument for @NotNull parameter 'highlightingSession' of DefaultHi ghlightInfoProcessor.progressIsAdvanced must not be null

Hi,

There is a nice project for continuously running automatic tests named Infinitest. Unfortunately its Idea plugin is neglected and what is worst on almost every Idea version upgrade it becomes broken (or at least crippled). In the past I solved some its issues, but I'm not Idea plugins developer, I know OpenAPI only very briefly and I'm not sure why it doesn't work.

The current issue with Idea 14 and 15 (it worked fine with Idea 13) is that some HighlightingPass implementations (namely InjectedGeneralHighlightingPass and ScalaUnusedImportPass) fail (full stacktrace) with:

(...)
Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'highlightingSession' of com/intellij/codeInsight/daemon/impl/DefaultHi
ghlightInfoProcessor.progressIsAdvanced must not be null
        at com.intellij.codeInsight.daemon.impl.DefaultHighlightInfoProcessor.progressIsAdvanced(DefaultHighlightInfoProcessor.java)
        at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doApplyInformationToEditor(ProgressableTextEditorHighlightingPass.java:120)
        at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(TextEditorHighlightingPass.java:108)
        at org.infinitest.intellij.plugin.launcher.FileEditorListener.testRunCompleted(FileEditorListener.java:53)
        at org.infinitest.intellij.plugin.launcher.InfinitestPresenter.onComplete(InfinitestPresenter.java:191)
        at org.infinitest.intellij.plugin.launcher.InfinitestPresenter.testRunComplete(InfinitestPresenter.java:162)
        ... 22 more


when the fallowing code in the plugin is executed:

for (FileEditor fileEditor : fileEditorManager.getSelectedEditors()) {
    for (HighlightingPass highlightingPass : fileEditor.getBackgroundHighlighter().createPassesForEditor()) {
        highlightingPass.applyInformationToEditor();
    }
}


The implementation of InfinitestLineMarkersPass and InfinitestHighlightingPassFactory in the plugin are rather simple (too simple?).

Question. Is there something specific that can be done to make those grumpy implementations have "highlightingSession" (looking at code of ProgressableTextEditorHighlightingPass probably "PsiFile file") parameter set?

Marcin

0

Maybe the new forum will bring me more luck to get help about mentioned issue...

0

请先登录再写评论。