java.lang.IndexOutOfBoundsException: Wrong line: 292. Available lines count: 292
IDEA 172.3317.
In file: file://C:/Users/.../Documents/IdeaProjects/src/classes/...Service.cls: Wrong line: 292. Available lines count: 292
java.lang.IndexOutOfBoundsException: Wrong line: 292. Available lines count: 292 at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:203) at com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:188) at com.intellij.openapi.editor.impl.DocumentImpl.getLineStartOffset(DocumentImpl.java:899) at com.illuminatedcloud.intellij.builder.ForceComBuildFailureAnnotator.annotate(SourceFile:99) at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:139) at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:368) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:301) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:327) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:330) at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:330) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:298) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:238) at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:83) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:438) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:431) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:430) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:406) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:142) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:250) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:404) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:165) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Comments (8)
-
repo owner -
reporter I'm from JetBrains and currently processing exceptions reported by users. Unfortunately, there's no more information available about this particular exception.
-
repo owner Gotcha. Thanks for the info. I'll make sure it's gone in the next build.
-
reporter Thanks!
-
repo owner - changed status to resolved
Delivered in 1.7.9.6.
-
@Scott Wells It looks like I”m getting this error in 2.8.4
Log:
2019-09-26 10:48:40,309 [ 842193] WARN - .IlluminatedCloudExceptionUtil - Wrong line: 109. Available lines count: 83 java.lang.IndexOutOfBoundsException: Wrong line: 109. Available lines count: 83 at com.intellij.openapi.editor.impl.LineSet.checkLineIndex(LineSet.java:212) at com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:193) at com.intellij.openapi.editor.impl.DocumentImpl.getLineStartOffset(DocumentImpl.java:1004) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.lambda$guessMethodName$24(SourceFile:2062) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:922) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.guessMethodName(SourceFile:2038) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.postProcessApexTestResult(SourceFile:2030) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.processTestResults(SourceFile:1253) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.runTestsAsynchronous(SourceFile:1056) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.lambda$startProcessing$5(SourceFile:574) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
Edit
I can see the server file hasn’t been updated - so my local and server files were out of date.
-
repo owner I'm readying a release for (hopefully) Friday morning. I'll see if I can reproduce this and possible squeeze in a fix for it.
-
repo owner I submitted a fix for this yesterday. Now this simply won't resolve to a method because there's not sufficient/accurate enough information in the reported error to do so.
- Log in to comment
Ah, the fun off-by-one issue...though it seems like it's annotating properly on existing lines. Can you provide an example of a file that results in this issue easily? I'll also try to reproduce it, and minimally I'll guard against it. Thanks for logging!