IDEA编译错误PersistentEnumerator storage corrupted
错误信息如下:
Information:Internal caches are corrupted or have outdated format, forcing project rebuild: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\ycy\.IntelliJIdea2017.2\system\compile-server\ide_81e5539\backward-refs\name.tab Information:2020/3/25 11:37 - Compilation completed with 1 error and 0 warnings in 1s 293ms Error:Internal error: (org.jetbrains.jps.builders.storage.BuildDataCorruptedException) com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\ycy\.IntelliJIdea2017.2\system\compile-server\ide_81e5539\backward-refs\name.tab org.jetbrains.jps.builders.storage.BuildDataCorruptedException: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\ycy\.IntelliJIdea2017.2\system\compile-server\ide_81e5539\backward-refs\name.tab at org.jetbrains.jps.backwardRefs.CompilerBackwardReferenceIndex.<init>(CompilerBackwardReferenceIndex.java:95) at org.jetbrains.jps.backwardRefs.BackwardReferenceIndexWriter.initialize(BackwardReferenceIndexWriter.java:99) at org.jetbrains.jps.backwardRefs.BackwardReferenceIndexBuilder.buildStarted(BackwardReferenceIndexBuilder.java:54) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:373) at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:192) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:295) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:236) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\ycy\.IntelliJIdea2017.2\system\compile-server\ide_81e5539\backward-refs\name.tab at com.intellij.util.io.PersistentEnumeratorBase.<init>(PersistentEnumeratorBase.java:222) at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:82) at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:74) at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:38) at com.intellij.util.io.PersistentStringEnumerator.<init>(PersistentStringEnumerator.java:53) at com.intellij.util.io.PersistentStringEnumerator.<init>(PersistentStringEnumerator.java:46) at com.intellij.util.io.PersistentStringEnumerator.<init>(PersistentStringEnumerator.java:32) at com.intellij.util.io.PersistentStringEnumerator.<init>(PersistentStringEnumerator.java:28) at org.jetbrains.jps.backwardRefs.NameEnumerator.<init>(NameEnumerator.java:29) at org.jetbrains.jps.backwardRefs.CompilerBackwardReferenceIndex.<init>(CompilerBackwardReferenceIndex.java:91) ... 14 more Please perform full project rebuild (Build | Rebuild Project)
个人测试办法:将C:\Users\ycy\.IntelliJIdea2017.2\system\compile-server\ide_81e5539\backward-refs\ 目录下删除干净,重启IDEA。编译成功。仅供参考。
人要耐得住寂寞,才能守得住繁华。人生最痛苦的就是拿不起放不下,不属于自己的快乐,及时放手也许是一种解脱,生活中没有谁对谁错,只有适不适合。当发现很多已经改变,更要面对的是事实。