I'm debugging a nasty unbalanced PsiMarker problem in the BashSupport plugin.
The unbalanced marker seems to be caused by an ProcessCanceledException exception thrown in PsiBuilder.advance.
will leave an open marker if advance() throws an exceptions.
PsiBuilderImpl.advance calls ProgressIndicatorProvider.checkCanceled() which can throw a ProcessCanceledException .
Under which circumstances is the exception thrown?
Is there any way to work around this problem?
Developing for 11.x .
Thanks a lot,