New version: Can't view project structure any more

Hi,
thanks for the continued updates to the plugin!

Today's version doesn't allow me to view the project view any more. The package folders which contain scala source files just show "Loading..." and I get this exception:

Some(org.jetbrains.plugins.scala.lang.resolve.ScalaResolveResult@aa415d)
scala.MatchError: Some(org.jetbrains.plugins.scala.lang.resolve.ScalaResolveResult@aa415d)
    at org.jetbrains.plugins.scala.lang.psi.types.ScType$.toPsi(ScType.scala:127)
    at org.jetbrains.plugins.scala.lang.psi.impl.statements.ScFunctionImpl.getReturnType(ScFunctionImpl.scala:56)
    at com.intellij.execution.junit.JUnitUtil.isSuiteMethod(JUnitUtil.java:100)
    at com.intellij.execution.junit.JUnitUtil.a(JUnitUtil.java:11)
    at com.intellij.execution.junit.JUnitUtil.isTestClass(JUnitUtil.java:5)
    at com.intellij.execution.junit.JUnitTestFramework.isTestKlass(JUnitTestFramework.java:31)
    at com.intellij.codeInsight.TestUtil.isTestClass(TestUtil.java:38)
    at com.intellij.psi.impl.ElementPresentationUtil.a(ElementPresentationUtil.java:65)
    at com.intellij.psi.impl.ElementPresentationUtil.access$000(ElementPresentationUtil.java:38)
    at com.intellij.psi.impl.ElementPresentationUtil$1.compute(ElementPresentationUtil.java:1)
    at com.intellij.psi.impl.CachedValueImpl.getValue(CachedValueImpl.java:44)
    at com.intellij.psi.impl.ElementPresentationUtil.getClassKind(ElementPresentationUtil.java:109)
    at com.intellij.psi.impl.ElementPresentationUtil.b(ElementPresentationUtil.java:1)
    at com.intellij.psi.impl.ElementPresentationUtil.getDescription(ElementPresentationUtil.java:29)
    at com.intellij.ide.projectView.impl.nodes.BasePsiMemberNode.calcTooltip(BasePsiMemberNode.java:1)
    at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.update(AbstractPsiBasedNode.java:37)
    at com.intellij.ide.util.treeView.AbstractTreeNode.getUpdatedData(AbstractTreeNode.java:95)
    at com.intellij.ide.util.treeView.AbstractTreeNode.update(AbstractTreeNode.java:52)
    at com.intellij.ide.util.treeView.AbstractTreeUi.doUpdateNodeDescriptor(AbstractTreeUi.java:1200)
    at com.intellij.ide.util.treeView.AbstractTreeBuilder.updateNodeDescriptor(AbstractTreeBuilder.java:294)
    at com.intellij.ide.util.treeView.AbstractTreeUi.collectNodesToInsert(AbstractTreeUi.java:824)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$900(AbstractTreeUi.java:41)
    at com.intellij.ide.util.treeView.AbstractTreeUi$8.run(AbstractTreeUi.java:556)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:48)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:32)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:50)
    at com.intellij.ide.util.treeView.AbstractTreeUi.updateNodeChildren(AbstractTreeUi.java:554)
    at com.intellij.ide.util.treeView.AbstractTreeUi.updateSubtree(AbstractTreeUi.java:497)
    at com.intellij.ide.util.treeView.AbstractTreeUpdater$2.run(AbstractTreeUpdater.java:154)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:48)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:32)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:50)
    at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:152)
    at com.intellij.ide.util.treeView.AbstractTreeUi.doExpandNodeChildren(AbstractTreeUi.java:256)
    at com.intellij.ide.util.treeView.AbstractTreeBuilder.expandNodeChildren(AbstractTreeBuilder.java:208)
    at com.intellij.ide.projectView.BaseProjectTreeBuilder.expandNodeChildren(BaseProjectTreeBuilder.java:18)
    at com.intellij.ide.util.treeView.AbstractTreeUi$MyExpansionListener.treeExpanded(AbstractTreeUi.java:1900)
    at javax.swing.JTree.fireTreeExpanded(JTree.java:2669)
    at javax.swing.JTree.setExpandedState(JTree.java:3430)
    at javax.swing.JTree.expandPath(JTree.java:2166)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:319)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:328)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:328)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:328)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:328)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:328)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:328)
    at com.intellij.ide.util.treeView.TreeState.applyExpanded(TreeState.java:239)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:228)
    at com.intellij.ide.projectView.impl.AbstractProjectViewPane.restoreExpandedPaths(AbstractProjectViewPane.java:28)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.c(ProjectViewImpl.java:341)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.e(ProjectViewImpl.java:37)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.changeView(ProjectViewImpl.java:213)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.b(ProjectViewImpl.java:438)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.b(ProjectViewImpl.java:23)
    at com.intellij.ide.projectView.impl.ProjectViewImpl.setupImpl(ProjectViewImpl.java:67)
    at com.intellij.ide.projectView.impl.ProjectViewImpl$8$1.run(ProjectViewImpl.java:1)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:27)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

2 comments
Comment actions Permalink

Hello.

Yes, this is my my fault. I've just uploaded new build with this bug fixed. Sorry for inconvenience.

With best regrads,
Ilya

0
Comment actions Permalink

Ilya,
incredible response time! Don't you sleep?

Thanks for the update, which works again.

0

Please sign in to leave a comment.