phpstorm failed to create drupal module

phpstorm 7.1.3
drupal 7.28
Centos 6.3

I got java.lang.IllegalArgumentException on xterm when I create a new drupal module project. I have double checked dir structures and permissions on my drupal installations couldn't figure out what caused the exception.


---------- java.lang.IllegalArgumentException -----------------------

[  79713]  ERROR - llij.ide.plugins.PluginManager - Argument 0 for @NotNull parameter of com/intellij/openapi/vfs/impl/local/LocalFileSystemBase.refreshAndFindFileByPath must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/vfs/impl/local/LocalFileSystemBase.refreshAndFindFileByPath must not be null
 at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.refreshAndFindFileByPath(LocalFileSystemBase.java)
 at com.jetbrains.php.drupal.init.DrupalIncludePathsManager.getIncludeRoots(DrupalIncludePathsManager.java:42)
 at com.jetbrains.php.drupal.init.DrupalIncludePathsManager.getIncludeRoots(DrupalIncludePathsManager.java:25)
 at com.jetbrains.php.config.PhpIncludePathRefresher.refreshIncludePaths(PhpIncludePathRefresher.java:30)
 at com.jetbrains.php.drupal.DrupalProjectComponent.stateChanged(DrupalProjectComponent.java:33)
 at com.jetbrains.php.drupal.DrupalProjectComponent.access$100(DrupalProjectComponent.java:16)
 at com.jetbrains.php.drupal.DrupalProjectComponent$1.stateChanged(DrupalProjectComponent.java:27)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:90)
 at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
 at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:67)
 at com.sun.proxy.$Proxy61.stateChanged(Unknown Source)
 at com.jetbrains.php.drupal.settings.DrupalDataService.notifyListeners(DrupalDataService.java:92)
 at com.jetbrains.php.drupal.settings.DrupalDataService.setState(DrupalDataService.java:45)
 at com.jetbrains.php.drupal.generation.DrupalProjectGenerator.generateProject(DrupalProjectGenerator.java:65)
 at com.jetbrains.php.drupal.generation.DrupalProjectGenerator.generateProject(DrupalProjectGenerator.java:32)
 at com.intellij.platform.NewDirectoryProjectAction$2.projectOpened(NewDirectoryProjectAction.java:104)
 at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:191)
 at com.intellij.platform.NewDirectoryProjectAction.generateProject(NewDirectoryProjectAction.java:100)
 at com.intellij.platform.NewDirectoryProjectAction.actionPerformed(NewDirectoryProjectAction.java:52)
 at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
 at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:261)
 at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:916)
 at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124)
 at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:231)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
 at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104)
 at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
 at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
 at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
 at java.awt.Component.processMouseEvent(Component.java:6505)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
 at java.awt.Component.processEvent(Component.java:6270)
 at java.awt.Container.processEvent(Container.java:2229)
 at java.awt.Component.dispatchEventImpl(Component.java:4861)
 at java.awt.Container.dispatchEventImpl(Container.java:2287)
 at java.awt.Component.dispatchEvent(Component.java:4687)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
 at java.awt.Container.dispatchEventImpl(Container.java:2273)
 at java.awt.Window.dispatchEventImpl(Window.java:2719)
 at java.awt.Component.dispatchEvent(Component.java:4687)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
 at java.awt.EventQueue.access$200(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:688)
 at java.awt.EventQueue$3.run(EventQueue.java:686)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
 at java.awt.EventQueue$4.run(EventQueue.java:702)
 at java.awt.EventQueue$4.run(EventQueue.java:700)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
 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)
[  79714]  ERROR - llij.ide.plugins.PluginManager - PhpStorm 7.1.3  Build #PS-133.982
[  79714]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.7.0_21
[  79714]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
[  79714]  ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
[  79714]  ERROR - llij.ide.plugins.PluginManager - OS: Linux
[  79714]  ERROR - llij.ide.plugins.PluginManager - Last Action: NewDirectoryProject

2 comments
Comment actions Permalink

Hello!  Please make sure you've set Drupal version in Settings | Drupal. Fixing integration might require couple of changing of version and applyings of settings. This bug is fixed in PhpStorm 8 EAP builds.

0
Comment actions Permalink
That is what I did as a workaround. * go to Project Settings > Drupal* check Enable Drupal Integration* set Drupal installation path* check Set up PHP | include paths* select Version 7.Could you tell me if the workaround is sufficient and all drupal features will work?thx
0

Please sign in to leave a comment.