Cannot get content of directory



I am using IntelliJ Idea 15 CE
I am getting following error whenever i try to import a project Cannot get content of directory

I have tried with Ultimate edition too and got the same error.

I have tried uninstalling plugins/restarting and stuffs but it didn't help to fix the problem.
I am not sure what changes to settings have caused this.

That said, opening the project still works

Below is the log

2016-01-09 00:05:23,473 [  65312]  ERROR - tartup.impl.StartupManagerImpl - IntelliJ IDEA 15.0.1  Build #IC-143.382.35
2016-01-09 00:05:23,473 [  65312]  ERROR - tartup.impl.StartupManagerImpl - JDK: 1.8.0_40-release
2016-01-09 00:05:23,474 [  65313]  ERROR - tartup.impl.StartupManagerImpl - VM: OpenJDK 64-Bit Server VM
2016-01-09 00:05:23,474 [  65313]  ERROR - tartup.impl.StartupManagerImpl - Vendor: JetBrains s.r.o
2016-01-09 00:05:23,474 [  65313]  ERROR - tartup.impl.StartupManagerImpl - OS: Mac OS X
2016-01-09 00:05:23,474 [  65313]  ERROR - tartup.impl.StartupManagerImpl - Last Action: ImportProject
2016-01-09 00:05:25,076 [  66915]   INFO -        com.atlassian.theplugin - Start: Project initializing
2016-01-09 00:05:25,146 [  66985]   INFO -        com.atlassian.theplugin - End: Project initialized
2016-01-09 00:05:25,992 [  67831]   INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2016-01-09 00:06:28,607 [ 130446]  ERROR - llij.ide.plugins.PluginManager - null Cannot get content of directory:  file:///XXXXXXXXXXXXX
    at Method)
    at java.awt.EventQueue.dispatchEvent(
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(
    at com.intellij.ide.IdeEventQueue._dispatchEvent(
    at com.intellij.ide.IdeEventQueue.dispatchEvent(
    at java.awt.EventDispatchThread.pumpOneEventForFilters(
    at java.awt.EventDispatchThread.pumpEventsForFilter(
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(
    at java.awt.EventDispatchThread.pumpEvents(
    at java.awt.EventDispatchThread.pumpEvents(
Caused by: Cannot get content of directory: file:///XXXXXXXXXXXXX
    at Method)
    at java.awt.EventQueue$
    at java.awt.EventQueue$
    ... 12 more
Caused by: Cannot get content of directory:  file:///XXXXXXXXXXXXX
    at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.contentsToByteArray(
    at com.haskforce.importWizard.stack.StackProjectImportProvider.canImportFromFile(StackProjectImportProvider.scala:36)
    at com.haskforce.importWizard.stack.StackProjectImportProvider$$anonfun$canImport$2.apply(StackProjectImportProvider.scala:28)
    at com.haskforce.importWizard.stack.StackProjectImportProvider$$anonfun$canImport$2.apply(StackProjectImportProvider.scala:28)
    at scala.collection.IndexedSeqOptimized$class.prefixLengthImpl(IndexedSeqOptimized.scala:38)
    at scala.collection.IndexedSeqOptimized$class.exists(IndexedSeqOptimized.scala:46)
    at scala.collection.mutable.ArrayOps$ofRef.exists(ArrayOps.scala:186)
    at com.haskforce.importWizard.stack.StackProjectImportProvider.canImport(StackProjectImportProvider.scala:28)
    at com.intellij.ide.actions.ImportModuleAction$2.value(
    at com.intellij.ide.actions.ImportModuleAction$2.value(
    at com.intellij.util.containers.ContainerUtil.findAll(
    at com.intellij.util.containers.ContainerUtil.filter(
    at com.intellij.ide.actions.ImportModuleAction.createImportWizard(
    at com.intellij.ide.actions.ImportModuleAction.selectFileAndCreateWizard(
    at com.intellij.ide.actions.ImportModuleAction.selectFileAndCreateWizard(
    at com.intellij.ide.actions.ImportModuleAction.doImport(
    at com.intellij.ide.actions.ImportProjectAction.actionPerformed(
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$
    at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(
    at javax.swing.AbstractButton.fireActionPerformed(
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(
    at javax.swing.AbstractButton$Handler.actionPerformed(
    at javax.swing.DefaultButtonModel.fireActionPerformed(
    at javax.swing.JToggleButton$ToggleButtonModel.setPressed(
    at javax.swing.AbstractButton.doClick(
    at java.awt.CheckboxMenuItem.processItemEvent(
    at java.awt.CheckboxMenuItem.processEvent(
    at java.awt.MenuComponent.dispatchEventImpl(
    at java.awt.MenuComponent.dispatchEvent(
    at java.awt.EventQueue.dispatchEventImpl(
    at java.awt.EventQueue.access$500(
    at java.awt.EventQueue$
    at java.awt.EventQueue$
    ... 17 more
2016-01-09 00:06:28,608 [ 130447]  ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 15.0.1  Build #IC-143.382.35
2016-01-09 00:06:28,608 [ 130447]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_40-release
2016-01-09 00:06:28,608 [ 130447]  ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM
2016-01-09 00:06:28,608 [ 130447]  ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o
2016-01-09 00:06:28,608 [ 130447]  ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2016-01-09 00:06:28,608 [ 130447]  ERROR - llij.ide.plugins.PluginManager - Last Action: ImportProject

Thanks & Regards

Comment actions Permalink

What's the path it can't access?

Comment actions Permalink

Basically any path that has my project


2016-01-09 02:44:39,354 [9621193]  ERROR - llij.ide.plugins.PluginManager - null Cannot get content of directory: file:///Users/Anil/Src/activator/reactive-stocks/app

Comment actions Permalink

Does /Users/Anil/Src/activator/reactive-stocks/app belong to the current user?

Comment actions Permalink

Yes. Directory belongs to current user
Inetead of "New => Project from Existing Sources..." if do "Open" it works.

It used to work just fine for a long time.
Then it stopped working few days back. I Ignored it assuming it is due to opening too many projects. (I Used "Open" as a work around)

Consistantly reproducible for me .
It is happening on Ultimate Edition too, (I installed it today). So not sure If any sort of file permissions issue. But I have never done any such permission settings for CE too

Version Info
Screen Shot 2016-01-09 at 3.05.58 am.pngScreen Shot 2016-01-09 at 3.05.41 am.png

Comment actions Permalink

Please send the contents of the directory you are trying to import to support (

Also attach the complete idea.log ( and `ls -lR` output for the project directory that you are trying to import.

Comment actions Permalink

Attached are the ls -lR output and idea.log files

Comment actions Permalink

It uses /Users/8202/Src/activator/reactive-stocks/app path, not /Users/Anil/Src/activator/reactive-stocks/app as you have specified before.

ls shows that files are owned by MYNT\Domain Users, and not 0802 or Anil user.

Also, SBT seems to run on Java 1.6 when importing causing several exceptions, make sure to use Java 8.

Comment actions Permalink


I had manually changed 8202 to Anil while posting it here as i wanted to avoid posting my employee Id:|
The real path was 8202.

After a machine restart and some gradle syncs on ther projects this has started working fine on ultimate edittion
However, i still do get the same error of CE15.

I will check on SBT and Java mismatch issue.

Comment actions Permalink

Hi Anil,

I am also facing the same issue. Can you guide me how you resolved this issue?


Please sign in to leave a comment.