java.lang.AssertionError: This method should only be called in unit tests

GitHub | jakud | 7 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.
  1. 0

    GitHub comment 758#245258540

    GitHub | 8 months ago | jakud
    java.lang.AssertionError: This method should only be called in unit tests
  2. 0

    Issue with creating an Erlang scratch file still exists

    GitHub | 7 months ago | jakud
    java.lang.AssertionError: This method should only be called in unit tests
  3. 0

    Exception when try to create an Erlang scratch file

    GitHub | 9 months ago | istocniks
    java.lang.AssertionError: This method should only be called in unit tests
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      This method should only be called in unit tests

      at org.intellij.erlang.psi.impl.ErlangFileImpl.getFileTypeForTests()
    2. org.intellij.erlang
      ErlangFileImpl.getFileType
      1. org.intellij.erlang.psi.impl.ErlangFileImpl.getFileTypeForTests(ErlangFileImpl.java:316)
      2. org.intellij.erlang.psi.impl.ErlangFileImpl.getFileType(ErlangFileImpl.java:307)
      2 frames
    3. IDEA
      EditorUtil.getTabSize
      1. com.intellij.psi.codeStyle.DetectableIndentOptionsProvider.a(DetectableIndentOptionsProvider.java:104)
      2. com.intellij.psi.codeStyle.DetectableIndentOptionsProvider.getIndentOptions(DetectableIndentOptionsProvider.java:62)
      3. com.intellij.psi.codeStyle.CodeStyleSettings.getIndentOptionsByFile(CodeStyleSettings.java:664)
      4. com.intellij.psi.codeStyle.CodeStyleSettings.getIndentOptionsByFile(CodeStyleSettings.java:630)
      5. com.intellij.psi.codeStyle.CodeStyleSettings.getIndentOptionsByFile(CodeStyleSettings.java:625)
      6. com.intellij.openapi.editor.impl.SettingsImpl.getTabSize(SettingsImpl.java:371)
      7. com.intellij.openapi.editor.ex.util.EditorUtil.getTabSize(EditorUtil.java:522)
      7 frames
    4. com.intellij.openapi
      EditorView.reinitSettings
      1. com.intellij.openapi.editor.impl.view.EditorView.getTabSize(EditorView.java:434)
      2. com.intellij.openapi.editor.impl.view.LogicalPositionCache.reset(LogicalPositionCache.java:70)
      3. com.intellij.openapi.editor.impl.view.EditorView.reinitSettings(EditorView.java:292)
      3 frames
    5. IDEA
      AbstractPopup.a
      1. com.intellij.openapi.editor.impl.EditorImpl.<init>(EditorImpl.java:569)
      2. com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:193)
      3. com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:169)
      4. com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.h(TextEditorComponent.java:165)
      5. com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.<init>(TextEditorComponent.java:100)
      6. com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl$PsiAwareTextEditorComponent.<init>(PsiAwareTextEditorImpl.java:93)
      7. com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl$PsiAwareTextEditorComponent.<init>(PsiAwareTextEditorImpl.java:86)
      8. com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.createEditorComponent(PsiAwareTextEditorImpl.java:71)
      9. com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.<init>(TextEditorImpl.java:52)
      10. com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.<init>(PsiAwareTextEditorImpl.java:44)
      11. com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.createEditor(PsiAwareTextEditorProvider.java:47)
      12. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.a(FileEditorManagerImpl.java:872)
      13. com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2418)
      14. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:971)
      15. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:788)
      16. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.a(FileEditorManagerImpl.java:770)
      17. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)
      18. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:100)
      19. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:86)
      20. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:770)
      21. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:711)
      22. com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:145)
      23. com.intellij.ide.scratch.ScratchFileActions.doCreateNewScratch(ScratchFileActions.java:131)
      24. com.intellij.ide.scratch.ScratchFileActions$NewFileAction.a(ScratchFileActions.java:75)
      25. com.intellij.ide.scratch.LRUPopupBuilder$3.a(LRUPopupBuilder.java:192)
      26. com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)
      27. com.intellij.ui.popup.AbstractPopup.a(AbstractPopup.java:1390)
      27 frames
    6. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    7. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.i(IdeEventQueue.java:829)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:665)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      3 frames
    8. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames