java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

YouTrack | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Index: 1, Size: 1

    at java.util.Collections$SingletonList.get()
  2. Java RT
    Collections$SingletonList.get
    1. java.util.Collections$SingletonList.get(Collections.java:4815)
    1 frame
  3. JetBrains python
    PyTypingTypeProvider.getType
    1. com.jetbrains.python.codeInsight.PyTypingTypeProvider.getType(PyTypingTypeProvider.java:372)
    1 frame
  4. com.jetbrains.python
    PyTypeParser.parsePep484FunctionTypeComment
    1. com.jetbrains.python.psi.types.PyTypeParser.lambda$parsePep484FunctionTypeComment$9(PyTypeParser.java:384)
    2. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$MapParser.parse(FunctionalParserBase.java:324)
    3. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$OrParser.parse(FunctionalParserBase.java:229)
    4. com.jetbrains.python.psi.types.functionalParser.ForwardDeclaration.parse(ForwardDeclaration.java:44)
    5. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$OrParser.parse(FunctionalParserBase.java:229)
    6. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$OrParser.parse(FunctionalParserBase.java:229)
    7. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$ThenParser.parse(FunctionalParserBase.java:306)
    8. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$ThenParser.parse(FunctionalParserBase.java:305)
    9. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$ThenParser.parse(FunctionalParserBase.java:305)
    10. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$FirstParser.parse(FunctionalParserBase.java:247)
    11. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$MapParser.parse(FunctionalParserBase.java:323)
    12. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$OrParser.parse(FunctionalParserBase.java:229)
    13. com.jetbrains.python.psi.types.functionalParser.ForwardDeclaration.parse(ForwardDeclaration.java:44)
    14. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$ThenParser.parse(FunctionalParserBase.java:306)
    15. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$MapParser.parse(FunctionalParserBase.java:323)
    16. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$ThenParser.parse(FunctionalParserBase.java:305)
    17. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase$FirstParser.parse(FunctionalParserBase.java:247)
    18. com.jetbrains.python.psi.types.functionalParser.FunctionalParserBase.parse(FunctionalParserBase.java:43)
    19. com.jetbrains.python.psi.types.PyTypeParser.parsePep484FunctionTypeComment(PyTypeParser.java:471)
    19 frames
  5. JetBrains python
    PyFunctionTypeCommentReferenceContributor$2.getReferencesByElement
    1. com.jetbrains.python.codeInsight.PyFunctionTypeCommentReferenceContributor.parseTypeReferences(PyFunctionTypeCommentReferenceContributor.java:77)
    2. com.jetbrains.python.codeInsight.PyFunctionTypeCommentReferenceContributor.access$000(PyFunctionTypeCommentReferenceContributor.java:42)
    3. com.jetbrains.python.codeInsight.PyFunctionTypeCommentReferenceContributor$2.getReferencesByElement(PyFunctionTypeCommentReferenceContributor.java:65)
    3 frames
  6. IDEA
    PsiCoreCommentImpl.getReferences
    1. com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.doGetReferencesFromProviders(ReferenceProvidersRegistryImpl.java:120)
    2. com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.java:66)
    3. com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.java:55)
    4. com.intellij.psi.impl.source.tree.PsiCoreCommentImpl.getReferences(PsiCoreCommentImpl.java:50)
    4 frames
  7. com.jetbrains.python
    PyUnresolvedReferencesInspection$Visitor.visitComment
    1. com.jetbrains.python.inspections.unresolvedReference.PyUnresolvedReferencesInspection$Visitor.visitComment(PyUnresolvedReferencesInspection.java:297)
    1 frame
  8. IDEA
    ApplierCompleter.compute
    1. com.intellij.psi.impl.source.tree.PsiCoreCommentImpl.accept(PsiCoreCommentImpl.java:40)
    2. com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
    3. com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
    4. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:281)
    5. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$1(LocalInspectionsPass.java:249)
    6. com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:123)
    7. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1032)
    8. com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$0(ApplierCompleter.java:96)
    9. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568)
    10. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
    11. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    12. com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:106)
    13. com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:91)
    13 frames
  9. Java RT
    ForkJoinPool.invoke
    1. java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
    2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    3. java.util.concurrent.ForkJoinPool$WorkQueue.pollAndExecCC(ForkJoinPool.java:1190)
    4. java.util.concurrent.ForkJoinPool.helpComplete(ForkJoinPool.java:1879)
    5. java.util.concurrent.ForkJoinPool.awaitJoin(ForkJoinPool.java:2045)
    6. java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:390)
    7. java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:719)
    8. java.util.concurrent.ForkJoinPool.invoke(ForkJoinPool.java:2616)
    8 frames
  10. IDEA
    JobLauncherImpl$VoidForkJoinTask$1.exec
    1. com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:60)
    2. com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:57)
    3. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.visitPriorityElementsAndInit(LocalInspectionsPass.java:251)
    4. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.inspect(LocalInspectionsPass.java:223)
    5. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:129)
    6. com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)
    7. com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
    8. com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$0(PassExecutorService.java:431)
    9. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1038)
    10. com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:424)
    11. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568)
    12. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
    13. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    14. com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:423)
    15. com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:403)
    16. com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:154)
    16 frames
  11. Java RT
    ForkJoinWorkerThread.run
    1. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    2. java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    3. java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    4. java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
    4 frames