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


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(
        at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doApplyInformationToEditor(
        at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(
        at org.infinitest.intellij.plugin.launcher.FileEditorListener.testRunCompleted(
        at org.infinitest.intellij.plugin.launcher.InfinitestPresenter.onComplete(
        at org.infinitest.intellij.plugin.launcher.InfinitestPresenter.testRunComplete(
        ... 22 more

when the fallowing code in the plugin is executed:

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

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?


1 comment

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


Please sign in to leave a comment.