我使用Eclipse和CDT来构建C ++代码。 加载我的工作区后,我收到以下消息:
An internal error occurred during: "Setting up indexer".
这是日志:
eclipse.buildId=I20110613-1736
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.core.jobs 4 2 2012-10-30 16:46:09.940
!MESSAGE An internal error occurred during: "Setting up indexer".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 18
at org.eclipse.cdt.internal.core.pdom.db.Database.getChunk(Database.java:274)
at org.eclipse.cdt.internal.core.pdom.db.Database.getRecPtr(Database.java:477)
at org.eclipse.cdt.internal.core.pdom.dom.PDOMLinkage.getLinkageID(PDOMLinkage.java:119)
at org.eclipse.cdt.internal.core.pdom.PDOM.readLinkages(PDOM.java:351)
at org.eclipse.cdt.internal.core.pdom.PDOM.loadDatabase(PDOM.java:334)
at org.eclipse.cdt.internal.core.pdom.PDOM.<init>(PDOM.java:310)
at org.eclipse.cdt.internal.core.pdom.WritablePDOM.<init>(WritablePDOM.java:57)
at org.eclipse.cdt.internal.core.pdom.WritablePDOM.<init>(WritablePDOM.java:52)
at org.eclipse.cdt.internal.core.pdom.PDOMManager.getOrCreatePDOM(PDOMManager.java:370)
at org.eclipse.cdt.internal.core.pdom.PDOMManager.createIndexer(PDOMManager.java:554)
at org.eclipse.cdt.internal.core.pdom.PDOMSetupJob.run(PDOMSetupJob.java:58)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
如何修复/重设?
答案 0 :(得分:16)
从.metadata / .plugins / org.eclipse.cdt.core中删除* .pdom文件/解决了问题
答案 1 :(得分:-1)
我尝试了Steve的解决方案(https://stackoverflow.com/a/13155007/3868696),并在重新启动Eclipse之后运行了。