What does this error mean: Directory index is not initialized yet for Project

Any idea when does IntelliJ throws Directory index is not initialized yet for Project ...?

Here is the exception message:

Directory index is not initialized yet for Project '/path/to/project.ipr'
java.lang.Throwable
       at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
       at com.intellij.openapi.roots.impl.DirectoryIndexImpl.e(DirectoryIndexImpl.java:647)
       at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getInfoForDirectory(DirectoryIndexImpl.java:579)
       at com.intellij.openapi.vcs.impl.ProjectExcludedFileIndex.isValidAncestor(ProjectExcludedFileIndex.java:52)
       at com.intellij.openapi.vcs.impl.projectlevelman.MappingsToRoots.getRootsUnderVcs(MappingsToRoots.java:51)
       at com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl.getRootsUnderVcs(ProjectLevelVcsManagerImpl.java:524)
       at com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl.getAllVcsRoots(ProjectLevelVcsManagerImpl.java:541)
       at com.intellij.openapi.vcs.changes.RemoteRevisionsCache.a(RemoteRevisionsCache.java:108)
       at com.intellij.openapi.vcs.changes.RemoteRevisionsCache.directoryMappingChanged(RemoteRevisionsCache.java:120)
       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:616)
       at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:87)
       at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:33)
       at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:64)
       at $Proxy67.directoryMappingChanged(Unknown Source)
       at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings.mappingsChanged(NewMappings.java:174)
       at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings.activateActiveVcses(NewMappings.java:97)
       at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings$1.run(NewMappings.java:78)
       at com.intellij.openapi.vcs.impl.VcsInitialization.execute(VcsInitialization.java:76)
       at com.intellij.openapi.vcs.impl.VcsInitialization$1.run(VcsInitialization.java:45)
       at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:175)
       at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:140)
       at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:384)

...

1 comment
Comment actions Permalink

Hello chandra,

In all the cases that we know of, such an exception is caused by a previous
exception thrown during component initialization.

Any idea when does IntelliJ throws Directory index is not initialized
yet for Project ...?

Here is the exception message:

Directory index is not initialized yet for Project
'/path/to/project.ipr'
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at
com.intellij.openapi.roots.impl.DirectoryIndexImpl.e(DirectoryIndexImp
l.java:647)
at
com.intellij.openapi.roots.impl.DirectoryIndexImpl.getInfoForDirectory
(DirectoryIndexImpl.java:579)
at
com.intellij.openapi.vcs.impl.ProjectExcludedFileIndex.isValidAncestor
(ProjectExcludedFileIndex.java:52)
at
com.intellij.openapi.vcs.impl.projectlevelman.MappingsToRoots.getRoots
UnderVcs(MappingsToRoots.java:51)
at
com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl.getRootsUnder
Vcs(ProjectLevelVcsManagerImpl.java:524)
at
com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl.getAllVcsRoot
s(ProjectLevelVcsManagerImpl.java:541)
at
com.intellij.openapi.vcs.changes.RemoteRevisionsCache.a(RemoteRevision
sCache.java:108)
at
com.intellij.openapi.vcs.changes.RemoteRevisionsCache.directoryMapping
Changed(RemoteRevisionsCache.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:87)
at
com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:33)
at
com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:64)
at $Proxy67.directoryMappingChanged(Unknown Source)
at
com.intellij.openapi.vcs.impl.projectlevelman.NewMappings.mappingsChan
ged(NewMappings.java:174)
at
com.intellij.openapi.vcs.impl.projectlevelman.NewMappings.activateActi
veVcses(NewMappings.java:97)
at
com.intellij.openapi.vcs.impl.projectlevelman.NewMappings$1.run(NewMap
pings.java:78)
at
com.intellij.openapi.vcs.impl.VcsInitialization.execute(VcsInitializat
ion.java:76)
at
com.intellij.openapi.vcs.impl.VcsInitialization$1.run(VcsInitializatio
n.java:45)
at
com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.
java:175)
at
com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivit
ies(StartupManagerImpl.java:140)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(Proje
ctManagerImpl.java:384)
..
---
Original message URL:
http://devnet.jetbrains.net/message/5316028#5316028


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.