在完成java核心的第九章任务时, 我点击运行按钮,总是显示下面的报错:
内部错误 (com.intellij.util.io.CorruptedException): PersistentEnumerator storage corrupted C:\Users\HP\AppData\Local\JetBrains\IdeaIC2024.1\compile-server\codegym-project_11a37284\targets\java-production\codegym-project_934c20fa\src-out\data
com.intellij.util.io.CorruptedException: PersistentEnumerator storage corrupted C:\Users\HP\AppData\Local\JetBrains\IdeaIC2024.1\compile-server\codegym-project_11a37284\targets\java-production\codegym-project_934c20fa\src-out\data
at com.intellij.util.io.PersistentEnumeratorBase.<init>(PersistentEnumeratorBase.java:168)
at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:121)
at com.intellij.util.io.PersistentEnumerator.createDefaultEnumerator(PersistentEnumerator.java:52)
at com.intellij.util.io.PersistentMapImpl.<init>(PersistentMapImpl.java:165)
at com.intellij.util.io.PersistentMapImpl.<init>(PersistentMapImpl.java:140)
at com.intellij.util.io.PersistentMapBuilder.buildImplementation(PersistentMapBuilder.java:88)
at com.intellij.util.io.PersistentMapBuilder.build(PersistentMapBuilder.java:71)
at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:46)
at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:66)
at org.jetbrains.jps.incremental.storage.AbstractStateStorage.createMap(AbstractStateStorage.java:121)
at org.jetbrains.jps.incremental.storage.AbstractStateStorage.<init>(AbstractStateStorage.java:32)
at org.jetbrains.jps.incremental.storage.OneToManyPathsMapping.<init>(OneToManyPathsMapping.java:24)
at org.jetbrains.jps.incremental.storage.SourceToOutputMappingImpl.<init>(SourceToOutputMappingImpl.java:21)
at org.jetbrains.jps.incremental.storage.BuildDataManager$1.createStorage(BuildDataManager.java:72)
at org.jetbrains.jps.incremental.storage.BuildDataManager$1.createStorage(BuildDataManager.java:64)
at org.jetbrains.jps.builders.impl.storage.BuildTargetStorages.lambda$getOrCreateStorage$0(BuildTargetStorages.java:35)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1710)
at org.jetbrains.jps.builders.impl.storage.BuildTargetStorages.getOrCreateStorage(BuildTargetStorages.java:33)
at org.jetbrains.jps.incremental.storage.BuildDataManager.getStorage(BuildDataManager.java:137)
at org.jetbrains.jps.incremental.storage.BuildDataManager.getSourceToOutputMap(BuildDataManager.java:127)
at org.jetbrains.jps.incremental.BuildOperations.initTargetFSState(BuildOperations.java:77)
at org.jetbrains.jps.incremental.BuildOperations.ensureFSStateInitialized(BuildOperations.java:64)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1381)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:1203)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:971)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:527)
at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:236)
at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:134)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:387)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:212)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:211)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1570)
请执行完整的项目重新构建(构建 | 重新构建项目)
请问是否有任何解决办法, 我已经尝试了重启idea和插件的做法,没有任何效果。 但我使用vscode可以正常运行java程序。