java.lang.AssertionError: Unexpected element type: BOOL_LIT
See original GitHub issueTo reproduce:
Clone xmonad (https://github.com/xmonad/xmonad) xmonad-contrib (https://github.com/xmonad/xmonad-contrib) and try importing.
Full stacktrace:
java.lang.AssertionError: Unexpected element type: BOOL_LIT
at intellij.haskell.cabal.lang.psi.CabalElementFactory$.createElement(CabalElementFactory.scala:117)
at intellij.haskell.cabal.lang.psi.CabalElementFactory.createElement(CabalElementFactory.scala)
at intellij.haskell.cabal.lang.parser.CabalParserDefinition.createElement(CabalParserDefinition.java:64)
at com.intellij.psi.impl.source.tree.CompositeElement.createPsiNoLock(CompositeElement.java:739)
at com.intellij.psi.impl.source.tree.CompositeElement.getPsi(CompositeElement.java:726)
at com.intellij.psi.impl.source.SourceTreeToPsiMap.treeElementToPsi(SourceTreeToPsiMap.java:30)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:51)
at com.intellij.extapi.psi.ASTDelegatePsiElement.getFirstChild(ASTDelegatePsiElement.java:100)
at com.intellij.psi.PsiWalkingState$PsiTreeGuide.getFirstChild(PsiWalkingState.java:49)
at com.intellij.psi.PsiWalkingState$PsiTreeGuide.getFirstChild(PsiWalkingState.java:31)
at com.intellij.util.WalkingState.next(WalkingState.java:73)
at com.intellij.util.WalkingState.walkChildren(WalkingState.java:61)
at com.intellij.util.WalkingState.elementStarted(WalkingState.java:52)
at com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:79)
at com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitElement(PsiRecursiveElementWalkingVisitor.java:48)
at com.intellij.psi.util.PsiTreeUtil$4.visitElement(PsiTreeUtil.java:883)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:34)
at com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitFile(PsiRecursiveElementWalkingVisitor.java:70)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:70)
at com.intellij.psi.util.PsiTreeUtil.processElements(PsiTreeUtil.java:878)
at com.intellij.psi.util.PsiTreeUtil.findChildrenOfAnyType(PsiTreeUtil.java:334)
at com.intellij.psi.util.PsiTreeUtil.collectElementsOfType(PsiTreeUtil.java:862)
at intellij.haskell.psi.HaskellPsiUtil$.streamChildren(HaskellPsiUtil.scala:226)
at intellij.haskell.cabal.CabalInfo.executables$lzycompute(CabalInfo.scala:68)
at intellij.haskell.cabal.CabalInfo.executables(CabalInfo.scala:67)
at intellij.haskell.cabal.CabalInfo.sourceRoots$lzycompute(CabalInfo.scala:89)
at intellij.haskell.cabal.CabalInfo.sourceRoots(CabalInfo.scala:89)
at intellij.haskell.module.HaskellModuleBuilder$.addSourceFolders(HaskellModuleBuilder.scala:162)
at intellij.haskell.module.HaskellModuleBuilder.setupRootModel(HaskellModuleBuilder.scala:83)
at com.intellij.ide.util.projectWizard.ModuleBuilder.setupModule(ModuleBuilder.java:249)
at intellij.haskell.module.HaskellModuleBuilder.createModule(HaskellModuleBuilder.scala:116)
at com.intellij.ide.util.projectWizard.ModuleBuilder.createAndCommitIfNeeded(ModuleBuilder.java:280)
at com.intellij.ide.util.projectWizard.ModuleBuilder.lambda$commitModule$3(ModuleBuilder.java:323)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1062)
at com.intellij.ide.util.projectWizard.ModuleBuilder.commitModule(ModuleBuilder.java:322)
at com.intellij.platform.templates.TemplateModuleBuilder.commitModule(TemplateModuleBuilder.java:127)
at com.intellij.ide.util.projectWizard.ModuleBuilder.commit(ModuleBuilder.java:308)
at com.intellij.ide.util.projectWizard.ProjectBuilder.commit(ProjectBuilder.java:42)
at intellij.haskell.module.StackProjectImportBuilder.$anonfun$commit$2(StackProjectImportBuilder.scala:66)
at intellij.haskell.module.StackProjectImportBuilder.$anonfun$commit$2$adapted(StackProjectImportBuilder.scala:58)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:52)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at intellij.haskell.module.StackProjectImportBuilder.commit(StackProjectImportBuilder.scala:58)
at com.intellij.projectImport.ProjectImportBuilder.commit(ProjectImportBuilder.java:60)
at com.intellij.ide.impl.NewProjectUtil.doCreate(NewProjectUtil.java:138)
at com.intellij.ide.impl.NewProjectUtil.createFromWizard(NewProjectUtil.java:60)
at com.intellij.ide.actions.ImportModuleAction.doCreateFromWizard(ImportModuleAction.java:94)
at com.intellij.ide.actions.ImportModuleAction.lambda$createFromWizard$0(ImportModuleAction.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:153)
at com.intellij.ide.actions.ImportModuleAction.createFromWizard(ImportModuleAction.java:88)
at com.intellij.ide.actions.ImportModuleAction.doImport(ImportModuleAction.java:83)
at com.intellij.ide.actions.ImportProjectAction.lambda$actionPerformed$0(ImportProjectAction.java:30)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:722)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
EasyMock java.lang.AssertionError: Unexpected method call
I was able to set the field using expect(..) of EasyMock. Remove this line of code service.setName("abc");. and add EasyMock.expect(service.
Read more >java.lang.AssertionError: Unexpected Exception — oracle-tech
Hi,. We are getting following error after while in weblogic 10.3.5. We only get the error if I try to set weblogic pasword...
Read more >Error received when testing java.lang.AssertionError: Reading ...
Hello everyone, I tried to run the online test suit for the Core but there are two failed tests. check Resource Paths and...
Read more >java.lang.AssertionError: Unexpected schema version 6
PluginManager - Unexpected schema version 6 java.lang.AssertionError: Unexpected schema version 6 at com.android.dvlib.DeviceSchema.getXsdStream(
Read more >TestNG--java.lang.AssertionError: expected [5] but found [5]
You are comparing an int to a string. Try converting the type before comparing the values. import org.testng.Assert; public class Test ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting!
Please reopen if still an issue.