我尝试安装一个名为EclipseCoder的插件,通过Eclipse(用于c / c ++)运行Topcoder竞技场,但它不起作用并抛出错误。我做了以下。
此外eclipse无法解析生成的任何头文件,它说未解析的包含:头文件名,它创建一个.h文件,但我认为它应该创建.cpp文件(如果为c ++工作) )。
我按照http://fornwall.net/eclipsecoder/
处的步骤进行操作异常堆栈跟踪如下:
java.lang.RuntimeException: java.lang.RuntimeException: Cannot find binary
at net.fornwall.eclipsecoder.ccsupport.CBinaryLauncher.<init>(CBinaryLauncher.java:71)
at net.fornwall.eclipsecoder.ccsupport.CCLanguageSupport$1.run(CCLanguageSupport.java:120)
at net.fornwall.eclipsecoder.util.Utilities$5.run(Utilities.java:284)
Caused by: java.lang.RuntimeException: Cannot find binary
at net.fornwall.eclipsecoder.ccsupport.CBinaryLauncher.<init>(CBinaryLauncher.java:68)
错误日志中的另一个错误消息: 从插件调用代码时出现问题:“org.eclipse.core.resources”。
它的堆栈跟踪是:
java.lang.NullPointerException
at org.eclipse.cdt.managedbuilder.internal.core.ManagedBuildInfo.findExistingDefaultConfiguration(ManagedBuildInfo.java:272)
at org.eclipse.cdt.managedbuilder.internal.core.ManagedBuildInfo.getDefaultConfiguration(ManagedBuildInfo.java:254)
at org.eclipse.cdt.managedbuilder.internal.core.BuilderFactory.createBuilders(BuilderFactory.java:369)
at org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin.createBuilders(ManagedBuilderCorePlugin.java:263)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.getRule(CommonBuilder.java:1350)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:183)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
如何解决此问题?
答案 0 :(得分:1)
感谢您的报告 - 现在应该在更新站点上提供的C ++支持插件的0.2.6版本中修复此问题!