Unable to open certain files (830kb)
Hi,
I am using PHPStorm and not able to open some PHP files which is 600kb to 800kb in size. Getting same issue even after I did "Invalidate Caches / Restart".
PhpStorm 2018.1
Build #PS-181.4203.565, built on March 28, 2018
Licensed to Realpage us / Dhirendra Sahoo
Subscription is active until November 18, 2018
JRE: 1.8.0_152-release-1136-b20 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Following is the log (idea.log.1)
2018-04-04 11:51:40,472 [ 34802] ERROR - napi.project.CacheUpdateRunner - Error while indexing D:\xxxxx\xx\xxxxx.inc
To reindex this file IDEA has to be restarted
com.jetbrains.php.lang.parser.PhpParserException: Lexer has been advanced 10000 times more than the amount of lexeme -178240
at com.jetbrains.php.lang.parser.PhpPsiBuilder.getTokenType(PhpPsiBuilder.java:102)
at com.jetbrains.php.lang.parser.parsing.Program.parse(Program.java:24)
at com.jetbrains.php.lang.parser.PhpPsiParser.parse(PhpPsiParser.java:20)
at com.intellij.psi.tree.ILazyParseableElementType.doParseContents(ILazyParseableElementType.java:88)
at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:49)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:193)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:544)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:192)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:247)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:40)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:51)
at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:814)
at com.intellij.psi.PsiWalkingState$PsiTreeGuide.getFirstChild(PsiWalkingState.java:49)
at com.intellij.psi.PsiWalkingState$PsiTreeGuide.getFirstChild(PsiWalkingState.java:31)
at com.intellij.util.WalkingState.next(WalkingState.java:73)
at com.intellij.util.WalkingState.walkChildren(WalkingState.java:61)
at com.intellij.util.WalkingState.elementStarted(WalkingState.java:52)
at com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:79)
at com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitElement(PsiRecursiveElementWalkingVisitor.java:48)
at com.jetbrains.php.lang.psi.PhpFileImpl$2$1.visitElement(PhpFileImpl.java:113)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:34)
at com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitFile(PsiRecursiveElementWalkingVisitor.java:70)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:70)
at com.jetbrains.php.lang.psi.PhpFileImpl.accept(PhpFileImpl.java:189)
at com.jetbrains.php.lang.psi.PhpFileImpl$2.compute(PhpFileImpl.java:88)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.jetbrains.php.lang.psi.PhpFileImpl.getTopLevelDefs(PhpFileImpl.java:206)
at com.jetbrains.php.lang.psi.PhpPsiUtil.findClasses(PhpPsiUtil.java:511)
at com.jetbrains.php.lang.psi.PhpPsiUtil.findAllClasses(PhpPsiUtil.java:526)
at com.jetbrains.php.lang.psi.stubs.indexes.PhpClassNameIndex$1.map(PhpClassNameIndex.java:33)
at com.jetbrains.php.lang.psi.stubs.indexes.PhpClassNameIndex$1.map(PhpClassNameIndex.java:26)
at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:273)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:98)
at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:213)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1658)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1586)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:523)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1545)
at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1533)
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)
2018-04-04 11:51:40,474 [ 34804] ERROR - napi.project.CacheUpdateRunner - PhpStorm 2018.1 Build #PS-181.4203.565
2018-04-04 11:51:40,474 [ 34804] ERROR - napi.project.CacheUpdateRunner - JDK: 1.8.0_152-release
2018-04-04 11:51:40,474 [ 34804] ERROR - napi.project.CacheUpdateRunner - VM: OpenJDK 64-Bit Server VM
2018-04-04 11:51:40,474 [ 34804] ERROR - napi.project.CacheUpdateRunner - Vendor: JetBrains s.r.o
2018-04-04 11:51:40,474 [ 34804] ERROR - napi.project.CacheUpdateRunner - OS: Windows 10
Please guide me, how to open the file in editor.
Thank you,
Dhiren
Please sign in to leave a comment.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000125970/comments/360000124430
Hi Andriya,
Thank you for your support, I am able to open the files after I set "Automatically check updates for 'EAP'" and update my IDE.
Thank you,
Dhiren