indexing loop
已回答
i am using version 2017.3 PS-173.3727.138 and I have started to have a problem with every project that I open. PhpStorm runs in an indexing loop and it does not stop. I have tried to check the errors log but I did not understand much. Can anybody assist me?
I have attached the last 20 rows of the error log:
2017-12-07 23:20:53,829 [1267719] ERROR - stubs.StubProcessingHelperBase - PhpStorm 2017.3 Build #PS-173.3727.138
2017-12-07 23:20:53,867 [1267757] ERROR - stubs.StubProcessingHelperBase - JDK: 1.8.0_152-release
2017-12-07 23:20:53,867 [1267757] ERROR - stubs.StubProcessingHelperBase - PhpStorm 2017.3 Build #PS-173.3727.138
2017-12-07 23:20:53,868 [1267758] ERROR - stubs.StubProcessingHelperBase - JDK: 1.8.0_152-release
2017-12-07 23:20:53,868 [1267758] ERROR - stubs.StubProcessingHelperBase - VM: OpenJDK 64-Bit Server VM
2017-12-07 23:20:53,868 [1267758] ERROR - stubs.StubProcessingHelperBase - Vendor: JetBrains s.r.o
2017-12-07 23:20:53,868 [1267758] ERROR - stubs.StubProcessingHelperBase - OS: Windows 10
2017-12-07 23:20:53,868 [1267758] ERROR - stubs.StubProcessingHelperBase - VM: OpenJDK 64-Bit Server VM
2017-12-07 23:20:53,870 [1267760] ERROR - stubs.StubProcessingHelperBase - Vendor: JetBrains s.r.o
2017-12-07 23:20:53,870 [1267760] ERROR - stubs.StubProcessingHelperBase - OS: Windows 10
2017-12-07 23:20:53,918 [1267808] ERROR - stubs.StubProcessingHelperBase - Stub index points to a file without PSI: com.intellij.openapi.fileTypes.UnknownFileType@1ebf3e25
java.lang.Throwable: Stub index points to a file without PSI: com.intellij.openapi.fileTypes.UnknownFileType@1ebf3e25
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:136)
at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:47)
at com.intellij.psi.stubs.StubIndexImpl$2.process(StubIndexImpl.java:331)
at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:627)
at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:615)
at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:62)
at com.intellij.psi.stubs.StubIndexImpl.a(StubIndexImpl.java:360)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:323)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:312)
at com.intellij.lang.javascript.psi.resolve.JSClassResolver.processElementsByQNameIncludingImplicit(JSClassResolver.java:247)
at com.intellij.lang.javascript.psi.resolve.JSReferenceExpressionResolver.processAllSymbols(JSReferenceExpressionResolver.java:302)
at com.intellij.lang.javascript.psi.resolve.JSReferenceExpressionResolver.processAllSymbols(JSReferenceExpressionResolver.java:279)
at com.intellij.lang.javascript.psi.resolve.JSReferenceExpressionResolver.resolveFromIndices(JSReferenceExpressionResolver.java:238)
at com.intellij.lang.javascript.psi.resolve.JSReferenceExpressionResolver.resolve(JSReferenceExpressionResolver.java:161)
at com.intellij.lang.javascript.psi.resolve.JSReferenceExpressionResolver.resolve(JSReferenceExpressionResolver.java:53)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:145)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:175)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.resolve(JSResolveUtil.java:2080)
请先登录再写评论。
i have the same problem. Sometime helps to create prohect with another name and open it.
Same problem here.
Same problem here.
I think this solved my problem: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000755010-PhpStorm-keeps-indexing-over-and-over-again
This seems to be a new issue: https://youtrack.jetbrains.com/issue/IDEA-181227. Please vote/follow it for the updates.
As a workaround please use File > Invalidate Caches & Restart
Invalidating the cache does not have any effect on my projects.
Had a look inside the log. It is filled with lines like this one (multiple lines per miilisecond):
2017-12-11 16:24:19,416 [28298832] WARN - #com.jetbrains.php.PhpTypeInfo - RECURSION LIMIT for VariableDecl `$var`:15555 on VariableDecl `$var1`:15414
Work here!!! Thanks Dmitry Tronin
worked for me too thanx @Dmitry Tronin
The same issue on Phpstorm. Dmitry's solution worked here as well, thanks
Having the same issue on Webstorm, using invalidate caches and restart is working as a work around for the time being. It would be great to get this fixed as it does lock up my laptop sometimes.
I had the same problem with 2018.1. Invaldating caches and restarting did not help. The only solution was downgrading to 2017.3.6 and invalidating the cache again.
The same problem with 2018.1. Invaldating caches and restarting not helps me.
As per https://youtrack.jetbrains.com/issue/IDEA-181227, it is still in progress.
Please vote for this issue to get the notifications regarding further status changes.
File -> Invalidate Caches and Restart is not solving the problem for me!
Manjaro Linux (latest)
WebStorm (latest)
Angular (latest, huge project)
Had this issue in PyCharm 2017.3.2. Cache invalidation helped, thanks a lot, everybody.
I had that same error in IntelliJ. Invalidating the cache looks to work. The problem appeared after manually editing the pom.xml.
I remove the groupdId and version and intelliJ was unable to import from maven but I'm not sure if that was pure coincidence.
Dmitry solution worked for me
Got the problem here with 2018.1.6
Index invalidation doesn't fix it for me.
2018-06-24 09:24:21,771 [ 555808] INFO - l.indexing.impl.MapReduceIndex - Exception during updateWithMap:com.intellij.util.indexing.StorageException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.AssertionError: ID with name 'php.namespace.inheritance' is already registered
2018-06-24 09:24:21,771 [ 555808] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index Stubs
com.intellij.util.indexing.StorageException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.AssertionError: ID with name 'php.namespace.inheritance' is already registered
at com.intellij.util.indexing.impl.MapReduceIndex.updateWithMap(MapReduceIndex.java:327)
at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.updateWithMap(StubUpdatingIndex.java:500)
at com.intellij.util.indexing.impl.MapReduceIndex$2.compute(MapReduceIndex.java:219)
at com.intellij.util.indexing.impl.MapReduceIndex$2.compute(MapReduceIndex.java:215)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1433)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1737)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1690)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1615)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:523)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1574)
at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1562)
at com.intellij.util.indexing.UnindexedFilesUpdater.a(UnindexedFilesUpdater.java:110)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:230)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1134)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:246)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:243)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.AssertionError: ID with name 'php.namespace.inheritance' is already registered
at com.intellij.psi.stubs.StubIndexImpl.b(StubIndexImpl.java:86)
at com.intellij.psi.stubs.StubIndexImpl.serializeIndexValue(StubIndexImpl.java:248)
at com.intellij.psi.stubs.StubUpdatingIndex$2.save(StubUpdatingIndex.java:140)
at com.intellij.psi.stubs.StubUpdatingIndex$2.save(StubUpdatingIndex.java:124)
at com.intellij.util.io.PersistentHashMap.doPut(PersistentHashMap.java:392)
at com.intellij.util.io.PersistentHashMap.put(PersistentHashMap.java:377)
at com.intellij.util.indexing.impl.MapBasedForwardIndex.putInputData(MapBasedForwardIndex.java:55)
at com.intellij.util.indexing.SharedMapBasedForwardIndex.putInputData(SharedMapBasedForwardIndex.java:68)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.a(VfsAwareMapReduceIndex.java:125)
at com.intellij.util.indexing.impl.UpdateData.updateForwardIndex(UpdateData.java:73)
at com.intellij.util.indexing.impl.MapReduceIndex.updateWithMap(MapReduceIndex.java:321)
... 26 more
Caused by: java.util.concurrent.ExecutionException: java.lang.AssertionError: ID with name 'php.namespace.inheritance' is already registered
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at com.intellij.psi.stubs.StubIndexImpl.b(StubIndexImpl.java:83)
... 36 more
Caused by: java.lang.AssertionError: ID with name 'php.namespace.inheritance' is already registered
at com.intellij.util.indexing.ID.<init>(ID.java:80)
at com.intellij.psi.stubs.StubIndexKey.<init>(StubIndexKey.java:29)
at com.intellij.psi.stubs.StubIndexKey.createIndexKey(StubIndexKey.java:34)
at com.intellij.psi.stubs.StubIndexImpl.a(StubIndexImpl.java:577)
at com.intellij.psi.stubs.StubIndexImpl.access$700(StubIndexImpl.java:50)
at com.intellij.psi.stubs.StubIndexImpl$StubIndexInitialization.finish(StubIndexImpl.java:683)
at com.intellij.psi.stubs.StubIndexImpl$StubIndexInitialization.finish(StubIndexImpl.java:652)
at com.intellij.util.indexing.IndexInfrastructure$DataInitialization.call(IndexInfrastructure.java:166)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
... 3 more
@Alex please check the Preferences | Languages & Frameworks | PHP > Include Path for any suspicious records and remove such if any.
Also try disabling all custom plugins and check if the behavior will be the same after the restart.
Finally, reinstalling PhpStorm app files may be a solution here - installation could become corrupted - removing all PhpStorm files from Applications completely and installing the app fresh from https://www.jetbrains.com/phpstorm/download/ may help.
Thanks for the suggestions. There was nothing in the PHP include stuff. I removed some plugins (not sure how to tell which are custom!)
Indexing does tell me what it's doing, and it appears to be a loop within /Applications/PhpStorm.app/Contents/plugins/php/lib/php.jar!/
Thanks for the suggestions. There was nothing in the PHP include stuff. I removed some plugins (not sure how to tell which are custom!)
Indexing does tell me what it's doing, and it appears to be a loop within /Applications/PhpStorm.app/Contents/plugins/php/lib/php.jar!/
and the odd foray into /Applications/PhpStorm.app/Contents/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external
One thing I would say is that it's hard to completely uninstall PHPStorm. It obviously remembers stuff from previous installations if I simply trash the app. Maybe I'll search to see how to do this.
@Alex
> It obviously remembers stuff from previous installations if I simply trash the app. Maybe I'll search to see how to do this.
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
>(not sure how to tell which are custom!)
Use filter dropdown -- it's there. But overall -- they have slightly different icon (non JetBrains ones)
OK, so I've removed all that and reinstalled, and it's looking good.... Will check properly later, but provisional thanks!
Invalidate Caches then Restart did the job. Thanks Dmitry Tronin!