java.lang.AssertionError: After patch: doc: '$formatted_password'"' ---PSI: ''$formatted_password'' ---chars: ''$formatted_password''. Language: Bash; Host file: FILE in '.../setup.sh' Context element (2037,2060): '[PSI] Bash string'; Ranges: [Shred (2037,2060): [PSI] Bash string In host range: (2038,2059); PSI range: (0,21)]

GitHub | jansorg | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Invalid PSI structure

    GitHub | 2 years ago | jansorg
    java.lang.AssertionError: After patch: doc: '$formatted_password'"' ---PSI: ''$formatted_password'' ---chars: ''$formatted_password''. Language: Bash; Host file: FILE in '.../setup.sh' Context element (2037,2060): '[PSI] Bash string'; Ranges: [Shred (2037,2060): [PSI] Bash string In host range: (2038,2059); PSI range: (0,21)]
  2. 0

    Exception in CompositeElement.textToCharArray

    GitHub | 2 years ago | jansorg
    java.lang.AssertionError: len=32; endOffset=30; changed=false; nonPhysicalOrInjected=true; buffer= true } needsroot() { test ; this=Element(FILE); matches until 30; element there=PsiElement([Bash] word); leaf.text=test; leaf.psi=PsiElement([Bash] word); leaf.lang=Language: Bash; leaf.type=[Bash] word; psi.valid=false
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      After patch: doc: '$formatted_password'"' ---PSI: ''$formatted_password'' ---chars: ''$formatted_password''. Language: Bash; Host file: FILE in '.../setup.sh' Context element (2037,2060): '[PSI] Bash string'; Ranges: [Shred (2037,2060): [PSI] Bash string In host range: (2038,2059); PSI range: (0,21)]

      at com.intellij.psi.impl.source.tree.injected.MultiHostRegistrarImpl.doneInjecting()
    2. IDEA
      InjectedLanguageManagerImpl$PsiManagerRegisteredInjectorsAdapter$1.addPlace
      1. com.intellij.psi.impl.source.tree.injected.MultiHostRegistrarImpl.doneInjecting(MultiHostRegistrarImpl.java:249)
      2. com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl$PsiManagerRegisteredInjectorsAdapter$1.addPlace(InjectedLanguageManagerImpl.java:483)
      2 frames
    3. com.ansorgit.plugins
      BashLanguageInjector.getLanguagesToInject
      1. com.ansorgit.plugins.bash.lang.BashLanguageInjector.getLanguagesToInject(BashLanguageInjector.java:15)
      1 frame
    4. IDEA
      InjectedLanguageManagerImpl.getInjectedPsiFiles
      1. com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl$PsiManagerRegisteredInjectorsAdapter.getLanguagesToInject(InjectedLanguageManagerImpl.java:490)
      2. com.intellij.psi.impl.source.tree.injected.InjectedPsiCachedValueProvider$MyInjProcessor.process(InjectedPsiCachedValueProvider.java:82)
      3. com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.processInPlaceInjectorsFor(InjectedLanguageManagerImpl.java:448)
      4. com.intellij.psi.impl.source.tree.injected.InjectedPsiCachedValueProvider.doCompute(InjectedPsiCachedValueProvider.java:62)
      5. com.intellij.psi.impl.source.tree.injected.InjectedPsiCachedValueProvider.compute(InjectedPsiCachedValueProvider.java:51)
      6. com.intellij.psi.impl.source.tree.injected.InjectedPsiCachedValueProvider.compute(InjectedPsiCachedValueProvider.java:38)
      7. com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:53)
      8. com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:199)
      9. com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:43)
      10. com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.probeElementsUp(InjectedLanguageUtil.java:220)
      11. com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:121)
      12. com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:97)
      13. com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.getInjectedPsiFiles(InjectedLanguageManagerImpl.java:461)
      13 frames
    5. com.ansorgit.plugins
      BashVarImpl$CachedBashVarReference.resolveInner
      1. com.ansorgit.plugins.bash.lang.psi.impl.word.BashStringImpl.processDeclarations(BashStringImpl.java:93)
      2. com.ansorgit.plugins.bash.lang.psi.impl.BashElementSharedImpl.walkDefinitionScope(BashElementSharedImpl.java:69)
      3. com.ansorgit.plugins.bash.lang.psi.impl.BashBaseStubElementImpl.processDeclarations(BashBaseStubElementImpl.java:86)
      4. com.ansorgit.plugins.bash.jetbrains.PsiScopesUtil.walkChildrenScopes(PsiScopesUtil.java:50)
      5. com.ansorgit.plugins.bash.lang.psi.impl.command.BashCommandImpl.processDeclarations(BashCommandImpl.java:279)
      6. com.ansorgit.plugins.bash.lang.psi.impl.BashElementSharedImpl.walkDefinitionScope(BashElementSharedImpl.java:69)
      7. com.ansorgit.plugins.bash.lang.psi.impl.BashGroupImpl.processDeclarations(BashGroupImpl.java:53)
      8. com.ansorgit.plugins.bash.lang.psi.util.BashPsiUtils.varResolveTreeWalkUp(BashPsiUtils.java:280)
      9. com.ansorgit.plugins.bash.lang.psi.util.BashResolveUtil.resolve(BashResolveUtil.java:19)
      10. com.ansorgit.plugins.bash.lang.psi.impl.vars.BashVarImpl$CachedBashVarReference.resolveInner(BashVarImpl.java:156)
      10 frames
    6. IDEA
      TargetElementUtilBase.findTargetElement
      1. com.intellij.psi.impl.source.resolve.reference.impl.CachingReference$MyResolver.resolve(CachingReference.java:63)
      2. com.intellij.psi.impl.source.resolve.reference.impl.CachingReference$MyResolver.resolve(CachingReference.java:58)
      3. com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:103)
      4. com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:148)
      5. com.intellij.psi.impl.source.resolve.reference.impl.CachingReference.resolve(CachingReference.java:33)
      6. com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolve(PsiMultiReference.java:110)
      7. com.intellij.codeInsight.TargetElementUtilBase.getReferenceOrReferencedElement(TargetElementUtilBase.java:315)
      8. com.intellij.codeInsight.TargetElementUtil.getReferenceOrReferencedElement(TargetElementUtil.java:95)
      9. com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:200)
      10. com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:60)
      11. com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:155)
      11 frames
    7. JetBrains idea
      MavenUsageTargetProvider.getTargets
      1. org.jetbrains.idea.maven.dom.references.MavenTargetUtil.getFindTarget(MavenTargetUtil.java:37)
      2. org.jetbrains.idea.maven.dom.references.MavenUsageTargetProvider.getTargets(MavenUsageTargetProvider.java:27)
      2 frames
    8. Openapi
      UsageTargetUtil.findUsageTargets
      1. com.intellij.usages.UsageTargetUtil.findUsageTargets(UsageTargetUtil.java:57)
      1 frame
    9. com.lgc.identifierhighlighter
      IdentifierHighlighterEditorComponent$1.run
      1. com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.handleCaretPositionChanged(IdentifierHighlighterEditorComponent.java:79)
      2. com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.access$000(IdentifierHighlighterEditorComponent.java:24)
      3. com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent$1.run(IdentifierHighlighterEditorComponent.java:49)
      3 frames
    10. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:900)
      1 frame
    11. com.lgc.identifierhighlighter
      IdentifierHighlighterEditorComponent.caretPositionChanged
      1. com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.caretPositionChanged(IdentifierHighlighterEditorComponent.java:53)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    13. IDEA
      EventDispatcher$1.invoke
      1. com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:90)
      2. com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
      3. com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:67)
      3 frames
    14. com.sun.proxy
      $Proxy24.caretPositionChanged
      1. com.sun.proxy.$Proxy24.caretPositionChanged(Unknown Source)
      1 frame
    15. IDEA
      BackspaceAction$Handler.executeWriteAction
      1. com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:501)
      2. com.intellij.openapi.editor.impl.CaretImpl.doMoveToLogicalPosition(CaretImpl.java:597)
      3. com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:730)
      4. com.intellij.openapi.editor.impl.CaretImpl.updateCaretPosition(CaretImpl.java:882)
      5. com.intellij.openapi.editor.impl.CaretModelImpl$2.run(CaretModelImpl.java:98)
      6. com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:421)
      7. com.intellij.openapi.editor.impl.CaretModelImpl.documentChanged(CaretModelImpl.java:94)
      8. com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:773)
      9. com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:716)
      10. com.intellij.openapi.editor.impl.DocumentImpl.deleteString(DocumentImpl.java:519)
      11. com.intellij.openapi.editor.actions.BackspaceAction.doBackSpaceAtCaret(BackspaceAction.java:114)
      12. com.intellij.openapi.editor.actions.BackspaceAction.access$100(BackspaceAction.java:36)
      13. com.intellij.openapi.editor.actions.BackspaceAction$Handler.executeWriteAction(BackspaceAction.java:75)
      13 frames
    16. Openapi
      EditorWriteActionHandler$1.run
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.executeWriteAction(EditorWriteActionHandler.java:101)
      2. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:64)
      2 frames
    17. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
      1 frame
    18. Openapi
      EditorActionHandler.execute
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:47)
      2. com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:125)
      3. com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:71)
      3 frames
    19. IDEA
      BackspaceHandler.executeWriteAction
      1. com.intellij.codeInsight.editorActions.BackspaceHandler.handleBackspace(BackspaceHandler.java:97)
      2. com.intellij.codeInsight.editorActions.BackspaceHandler.executeWriteAction(BackspaceHandler.java:53)
      2 frames
    20. Openapi
      EditorWriteActionHandler$1.run
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.executeWriteAction(EditorWriteActionHandler.java:101)
      2. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:64)
      2 frames
    21. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
      1 frame
    22. Openapi
      EditorActionHandler$1.perform
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:47)
      2. com.intellij.openapi.editor.actionSystem.EditorActionHandler$1.perform(EditorActionHandler.java:120)
      2 frames
    23. IDEA
      CaretModelImpl.runForEachCaret
      1. com.intellij.openapi.editor.impl.CaretModelImpl$3.run(CaretModelImpl.java:355)
      2. com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:426)
      3. com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:349)
      3 frames
    24. Openapi
      EditorActionHandler.execute
      1. com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:117)
      1 frame
    25. IDEA
      BackspaceHandler.doExecute
      1. com.intellij.codeInsight.lookup.impl.BackspaceHandler.doExecute(BackspaceHandler.java:38)
      1 frame
    26. Openapi
      EditorAction$1.run
      1. com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:125)
      2. com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:83)
      2 frames
    27. IDEA
      CommandProcessorImpl.executeCommand
      1. com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
      1 frame
    28. Openapi
      EditorAction.actionPerformed
      1. com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:94)
      2. com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:68)
      2 frames
    29. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
      2. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
      3. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:463)
      4. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
      5. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:493)
      6. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
      6 frames
    30. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
      6 frames