安装EclipseCoder插件以运行Topcoder Arena后出错

时间:2014-05-05 17:22:11

标签: c++ eclipse plugins eclipse-kepler

我尝试安装一个名为EclipseCoder的插件,通过Eclipse(用于c / c ++)运行Topcoder竞技场,但它不起作用并抛出错误。我做了以下。

  1. 我为C / C ++安装了Eclipse Kepler Service Release 2 适用于当地法规。
  2. 我通过寻求帮助添加了一个插件 - >安装新软件,并使用 http://fornwall.net/eclipsecoder/
  3. 安装完毕后,我从日食中打开了竞技场,它取出了 问题陈述和代码模板正确但显示以下错误。
  4. It Throws Following Exception

    此外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)
    

    如何解决此问题?

1 个答案:

答案 0 :(得分:1)

感谢您的报告 - 现在应该在更新站点上提供的C ++支持插件的0.2.6版本中修复此问题!