java.lang.AssertionError: Element: PsiWhiteSpace; next: [PSI] PsiElement([Bash] time with optional -p); next.prev: null Top:PsiDirectory:/

GitHub | GoogleCodeExporter | 2 years 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.
  1. 0

    PsiWhitespace exception

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.AssertionError: Element: PsiWhiteSpace; next: [PSI] PsiElement([Bash] time with optional -p); next.prev: null Top:PsiDirectory:/

    Root Cause Analysis

    1. java.lang.AssertionError

      Element: PsiWhiteSpace; next: [PSI] PsiElement([Bash] time with optional -p); next.prev: null Top:PsiDirectory:/

      at com.intellij.util.WalkingState.next()
    2. IDEA
      PsiTreeUtil$4.visitElement
      1. com.intellij.util.WalkingState.next(WalkingState.java:90)
      2. com.intellij.util.WalkingState.walkChildren(WalkingState.java:61)
      3. com.intellij.util.WalkingState.elementStarted(WalkingState.java:52)
      4. com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:73)
      5. com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitElement(PsiRecursiveElementWalkingVisitor.java:48)
      6. com.intellij.psi.util.PsiTreeUtil$4.visitElement(PsiTreeUtil.java:678)
      6 frames
    3. com.ansorgit.plugins
      BashFunctionDefImpl.accept
      1. com.ansorgit.plugins.bash.lang.psi.impl.function.BashFunctionDefImpl.accept(BashFunctionDefImpl.java:189)
      1 frame
    4. IDEA
      PsiTreeUtil.collectElementsOfType
      1. com.intellij.psi.util.PsiTreeUtil.processElements(PsiTreeUtil.java:673)
      2. com.intellij.psi.util.PsiTreeUtil.collectElementsOfType(PsiTreeUtil.java:657)
      2 frames
    5. com.ansorgit.plugins
      BashCommandImpl.accept
      1. com.ansorgit.plugins.bash.lang.psi.impl.function.BashFunctionDefImpl.findReferencedParameters(BashFunctionDefImpl.java:133)
      2. com.ansorgit.plugins.bash.editor.inspections.inspections.UnusedFunctionParameterInspection$1.visitGenericCommand(UnusedFunctionParameterInspection.java:98)
      3. com.ansorgit.plugins.bash.lang.psi.impl.command.BashCommandImpl.accept(BashCommandImpl.java:248)
      3 frames
    6. IDEA
      ApplierCompleter.compute
      1. com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:80)
      2. com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
      3. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:289)
      4. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$000(LocalInspectionsPass.java:75)
      5. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:258)
      6. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:255)
      7. com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:122)
      8. com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
      9. com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)
      10. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1143)
      11. com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)
      12. com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:281)
      13. com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:278)
      14. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
      15. com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)
      16. com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)
      16 frames
    7. Quasar
      ForkJoinWorkerThread.run
      1. jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
      2. jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
      3. jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
      4. jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
      5. jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
      6. jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)
      6 frames