IntelliLang exception occuring every other second

I see the following exception

The ranges displayed seem to refer to the following snippet

@NonNls
public static final String wholeLinePatternString =
revisionPattern + "
t"
+ datePattern + "
t"
+ userPattern + "
t"
+ changePackageIdPattern + "
t"
+ descriptionPattern;


revisionPattern, datePattern,userPattern,changePackageIdPattern and descriptionPattern are constants defining regexp subparts

Patch error, lang=Language: RegExp;
file://C:/Documents and Settings/A6253567/sandboxes/IDEA plugins/mks/branches/IDEA 7.x/mks-idea-0.7/src/main/java/org/intellij/vcs/mks/sicommands/ViewMemberHistoryCommand.java; places:[PsiLiteralExpression:"
t", PsiLiteralExpression:"
t", PsiLiteralExpression:"
t", PsiLiteralExpression:"
t"];
ranges:[(1406,1409), (1433,1436), (1460,1463), (1498,1501)]
java.lang.RuntimeException: Patch error, lang=Language: RegExp;
file://C:/Documents and Settings/A6253567/sandboxes/IDEA plugins/mks/branches/IDEA 7.x/mks-idea-0.7/src/main/java/org/intellij/vcs/mks/sicommands/ViewMemberHistoryCommand.java; places:[PsiLiteralExpression:"
t", PsiLiteralExpression:"
t", PsiLiteralExpression:"
t", PsiLiteralExpression:"
t"];
ranges:[(1406,1409), (1433,1436), (1460,1463), (1498,1501)]
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider$MyMultiHostRegistrar.doneInjecting(InjectedLanguageUtil.java:2)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector$1.process(CustomLanguageInjector.java:465)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector$1.process(CustomLanguageInjector.java:428)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processInjectionWithContext(CustomLanguageInjector.java:380)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processInjection(CustomLanguageInjector.java:329)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processLiteralExpressionInjections(CustomLanguageInjector.java:275)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.getInjectedLanguage(CustomLanguageInjector.java:110)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.access$400(CustomLanguageInjector.java:61)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector.getLanguagesToInject(CustomLanguageInjector.java:428)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider$MyInjProcessor.process(InjectedLanguageUtil.java:7)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.processInPlaceInjectorsFor(InjectedLanguageManagerImpl.java:138)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider.a(InjectedLanguageUtil.java:5)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider.access$400(InjectedLanguageUtil.java:2)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.a(InjectedLanguageUtil.java:41)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:242)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.collectLineMarkersForInjected(LineMarkersPass.java:38)
at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:5)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:3)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:271)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:71)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -16
at com.intellij.psi.impl.source.tree.injected.StringLiteralEscaper.getOffsetInHost(StringLiteralEscaper.java:17)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$3.visitLeaf(InjectedLanguageUtil.java:43)
at com.intellij.psi.impl.source.tree.LeafElement.acceptTree(LeafElement.java:46)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.a(InjectedLanguageUtil.java:163)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.access$1000(InjectedLanguageUtil.java:211)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider$MyMultiHostRegistrar.doneInjecting(InjectedLanguageUtil.java:37)
... 28 more



java.lang.ArrayIndexOutOfBoundsException: -16
at com.intellij.psi.impl.source.tree.injected.StringLiteralEscaper.getOffsetInHost(StringLiteralEscaper.java:17)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$3.visitLeaf(InjectedLanguageUtil.java:43)
at com.intellij.psi.impl.source.tree.LeafElement.acceptTree(LeafElement.java:46)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:11)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:73)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.a(InjectedLanguageUtil.java:163)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.access$1000(InjectedLanguageUtil.java:211)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider$MyMultiHostRegistrar.doneInjecting(InjectedLanguageUtil.java:37)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector$1.process(CustomLanguageInjector.java:465)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector$1.process(CustomLanguageInjector.java:428)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processInjectionWithContext(CustomLanguageInjector.java:380)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processInjection(CustomLanguageInjector.java:329)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processLiteralExpressionInjections(CustomLanguageInjector.java:275)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.getInjectedLanguage(CustomLanguageInjector.java:110)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.access$400(CustomLanguageInjector.java:61)
at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector.getLanguagesToInject(CustomLanguageInjector.java:428)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider$MyInjProcessor.process(InjectedLanguageUtil.java:7)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.processInPlaceInjectorsFor(InjectedLanguageManagerImpl.java:138)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider.a(InjectedLanguageUtil.java:5)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider.access$400(InjectedLanguageUtil.java:2)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.a(InjectedLanguageUtil.java:41)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:242)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.collectLineMarkersForInjected(LineMarkersPass.java:38)
at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:5)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:3)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:271)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:71)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

2 comments
Comment actions Permalink

Hello Thibaut,

Just for a reference: a bundle of similar traces is here: http://www.jetbrains.net/jira/browse/IDEADEV-29259

Alexander.


0
Comment actions Permalink

indeed you can find the one I reported myself at the end, I'll add a pointer to this post as it may help reproduce the problem

0

Please sign in to leave a comment.