Why some folders don't display subfolders/files in Project View in WebStorm?

I'm not sure what's going on but there is a project that has a folder "main" and "test" that don't show their subfolders / files in the Project View.
I believe this is due to some super-obscure-setting but I could not find it.
See screenshot attached.
Notice that I'm editing a file under the "main" folder and it does not expand to that file.
It's not even expandable.
The same doesn't happen to other projects.

Any idea why they don't show up?



Attachment(s):
WebStormFolderDoesNotShowFiles.png
0
8 comments

Please can you attach your idea.log?
I'd also suggest invalidating caches (File/Invalidate caches, restart) - does it help?

0
Avatar
Permanently deleted user

Invalidate cache didn't help.

Where do I find this file idea.log?

0
Avatar
Permanently deleted user

Just found it.
Find it attached.



Attachment(s):
idea.log.zip
0
Avatar
Permanently deleted user

Looks like it's related to this exception:

2014-12-16 16:52:55,103 [1027911]  ERROR - llij.ide.plugins.PluginManager - WebStorm 9.0.2  Build #WS-139.773
2014-12-16 16:52:55,103 [1027911]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.7.0_55
2014-12-16 16:52:55,103 [1027911]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
2014-12-16 16:52:55,104 [1027912]  ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
2014-12-16 16:52:55,104 [1027912]  ERROR - llij.ide.plugins.PluginManager - OS: Windows 7
2014-12-16 16:52:55,104 [1027912]  ERROR - llij.ide.plugins.PluginManager - Last Action: Rerun
2014-12-16 16:52:55,146 [1027954]  ERROR - llij.ide.plugins.PluginManager - Cannot find edit handler for org.jetbrains.jps.model.java.JavaResourceRootType@469fd62b
java.lang.IllegalArgumentException: Cannot find edit handler for org.jetbrains.jps.model.java.JavaResourceRootType@469fd62b
        at com.intellij.openapi.roots.ui.configuration.ModuleSourceRootEditHandler.getEditHandler(ModuleSourceRootEditHandler.java:47)
        at com.intellij.openapi.roots.ui.configuration.SourceRootPresentation.a(SourceRootPresentation.java:39)
        at com.intellij.openapi.roots.ui.configuration.SourceRootPresentation.getSourceRootIcon(SourceRootPresentation.java:34)
        at com.intellij.psi.impl.file.DirectoryIconProvider.getIcon(DirectoryIconProvider.java:49)
        at com.intellij.packageDependencies.ui.DirectoryNode.getIcon(DirectoryNode.java:207)
        at com.intellij.ide.scopeView.ScopeTreeViewPanel$MyTreeCellRenderer.customizeCellRenderer(ScopeTreeViewPanel.java:523)
        at com.intellij.ui.ColoredTreeCellRenderer.getTreeCellRendererComponent(ColoredTreeCellRenderer.java:116)
        at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1534)
        at com.intellij.util.ui.tree.WideSelectionTreeUI.paintRow(WideSelectionTreeUI.java:378)
        at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1223)
        at com.intellij.util.ui.tree.WideSelectionTreeUI.paint(WideSelectionTreeUI.java:406)
        at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
        at javax.swing.JComponent.paintComponent(JComponent.java:778)
        at com.intellij.ui.treeStructure.Tree.paintComponent(Tree.java:331)
        at javax.swing.JComponent.paint(JComponent.java:1054)
        at com.intellij.ui.treeStructure.Tree.paint(Tree.java:242)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JViewport.paint(JViewport.java:731)
        at com.intellij.ui.components.JBViewport.paint(JBViewport.java:119)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintChildren(JComponent.java:887)
        at javax.swing.JComponent.paint(JComponent.java:1063)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5219)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1529)
        at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1452)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1249)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5167)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4978)
        at javax.swing.RepaintManager$3.run(RepaintManager.java:808)
        at javax.swing.RepaintManager$3.run(RepaintManager.java:796)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:796)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:769)
        at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:718)
        at javax.swing.RepaintManager.access$1100(RepaintManager.java:62)
        at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1677)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

0

Thanks:)
Seems you share your project between Intellij Idea and WebStorm.
Your folder is marked as JavaResourceRoot. But WebStorm doesn't have handlers to deal with such root type.
Please avoid opening the same project in different IDEs - project format is the same, but settings are different and not always compatible.
If you need to work on the same sources in both IDEs, share the source root, but not project settings. Create a new project in WebStorm, add your source root as additional content root to it

0
Avatar
Permanently deleted user

Yeah you're right. I opened it in IntelliJ as well once.
So how do I fix it?

0

Please shut down WebStorm, open <your module name>.iml file in some text editor, search for
<sourceFolder url="file://$MODULE_DIR$/path/to/your/folder" type="java-resource" />
element there and make sure to delete it.
If you plan to share your project between WebStorm and IDEA, make sure to create separate .idea folders to be used by these IDEs (see my previous post)

0

I had this problem when I opened a project with AppCode, realized that was the wrong tool for it, and then opened it in CLion. I had to delete my .idea/ folder and then try again.

0

Please sign in to leave a comment.