RunLineMarkerContributor loops on package and imports

I must be doing something really wrong, but my RunLineMarkerContributor is only processing the package declaration and the import statements.

It gets to PsiElement(class) and the begins again at the package level. It just does this constantly in a loop, except, sometimes if I edit the file really quickly and delete / add a load of lines to the class body, it will decide to parse the entire file.

Any advice ?

2 comments
Comment actions Permalink

Sam,

Probably something may modify the PSI, but it's hard to guess without the sources.

0
Comment actions Permalink

https://github.com/kotest/kotest-intellij-plugin/blob/master/src/main/kotlin/io/kotest/plugin/intellij/KotestRunLineMarkerContributor.kt

Nothing in the plugin does PSI updates, it only reads.

You think something external is constantly modifying the PSI ?

0

Please sign in to leave a comment.