java.lang.AssertionError: Assertion failed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

java.lang.AssertionError: Assertion failed
at org.rust.ide.formatter.impl.AlignmentKt$getAlignmentStrategy$1.invoke(alignment.kt:28)
at org.rust.ide.formatter.impl.AlignmentKt$getAlignmentStrategy$1.invoke(alignment.kt)
at org.rust.ide.formatter.RustAlignmentStrategy$alignIf$2.getAlignment(RustAlignmentStrategy.kt:45)
at org.rust.ide.formatter.RustAlignmentStrategy$alignIf$2.getAlignment(RustAlignmentStrategy.kt:46)
at org.rust.ide.formatter.blocks.RustFmtBlock.buildChildren(RustFmtBlock.kt:60)
at org.rust.ide.formatter.blocks.RustFmtBlock.access$buildChildren(RustFmtBlock.kt:14)
at org.rust.ide.formatter.blocks.RustFmtBlock$mySubBlocks$2.invoke(RustFmtBlock.kt:29)
at org.rust.ide.formatter.blocks.RustFmtBlock$mySubBlocks$2.invoke(RustFmtBlock.kt:14)
at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131)
at org.rust.ide.formatter.blocks.RustFmtBlock.getMySubBlocks(RustFmtBlock.kt)
at org.rust.ide.formatter.blocks.RustFmtBlock.getSubBlocks(RustFmtBlock.kt:28)
at com.intellij.formatting.InitialInfoBuilder.buildFrom(InitialInfoBuilder.java:227)
at com.intellij.formatting.InitialInfoBuilder.doIteration(InitialInfoBuilder.java:326)
at com.intellij.formatting.engine.WrapBlocksState.doIteration(WrapBlocksState.java:47)
at com.intellij.formatting.engine.State.iteration(State.java:25)
at com.intellij.formatting.engine.StateProcessor.iteration(StateProcessor.java:41)
at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:98)
at com.intellij.formatting.FormatterImpl.buildProcessorAndWrapBlocks(FormatterImpl.java:493)
at com.intellij.formatting.FormatterImpl.buildProcessorAndWrapBlocks(FormatterImpl.java:479)
at com.intellij.formatting.FormatterImpl.adjustLineIndentsForRange(FormatterImpl.java:372)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$4.doPerform(CodeStyleManagerImpl.java:390)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:109)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:393)
at com.intellij.codeInsight.editorActions.enter.EnterAfterUnmatchedBraceHandler.formatCodeFragmentBetweenBraces(EnterAfterUnmatchedBraceHandler.java:226)
at com.intellij.codeInsight.editorActions.enter.EnterAfterUnmatchedBraceHandler.insertRBraces(EnterAfterUnmatchedBraceHandler.java:176)
at com.intellij.codeInsight.editorActions.enter.EnterAfterUnmatchedBraceHandler.preprocessEnter(EnterAfterUnmatchedBraceHandler.java:67)
at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteActionInner(EnterHandler.java:126)
at com.intellij.codeInsight.editorActions.EnterHandler.lambda$executeWriteAction$0(EnterHandler.java:79)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.lambda$disablePostprocessFormattingInside$0(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.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:70)
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.impl.CaretModelImpl.lambda$runForEachCaret$2(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.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:200)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:109)
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.lambda$processAction$2(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.inInitState(IdeKeyEventDispatcher.java:477)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:677)
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)

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.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.