java.lang.IndexOutOfBoundsException

Wrong index: 0

Solutions on the web7006

  • via GitHub by govlas
    , 10 months ago
    Wrong index: 0
  • via YouTrack by Unknown author, 1 year ago
    Wrong index: 0
  • via YouTrack by Unknown author, 1 year ago
    Wrong index: 0
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Wrong index: 0 at com.intellij.openapi.editor.ex.util.SegmentArrayWithData.getSegmentData(SegmentArrayWithData.java:103) at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter$HighlighterIteratorImpl.getTokenType(LexerEditorHighlighter.java:472) at org.rust.ide.typing.RustQuoteHandler.isInsideLiteral(RustQuoteHandler.kt:40) at org.rust.ide.typing.RustQuoteHandler.isDeepInsideLiteral(RustQuoteHandler.kt:51) at org.rust.ide.typing.RustEnterInStringLiteralHandler.preprocessEnter(RustEnterInStringLiteralHandler.kt:35) at com.intellij.codeInsight.editorActions.EnterHandler.b(EnterHandler.java:126) at com.intellij.codeInsight.editorActions.EnterHandler.a(EnterHandler.java:79) at com.intellij.psi.impl.source.PostprocessReformattingAspect.a(PostprocessReformattingAspect.java:113) at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:121) at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:112) at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:78) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:57) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:906) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:70) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:222) at com.intellij.codeInsight.template.impl.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:49) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:57) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:906) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:70) at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3$1.perform(EditorActionHandler.java:206) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:109) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.access$000(EditorActionHandler.java:38) at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3.perform(EditorActionHandler.java:203) at com.intellij.openapi.editor.impl.CaretModelImpl.a(CaretModelImpl.java:348) at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:437) at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:340) at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:331) at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:200) at com.intellij.openapi.editor.actionSystem.EditorAction.lambda$actionPerformed$0(EditorAction.java:100) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:109) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:88) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:213) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:587) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:634) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:633) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.f(IdeKeyEventDispatcher.java:477) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:643) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.