2016-11-17 23:34
浏览 231


I've installed and configured GOClipse v0.16.1 on eclipse Neon (obviously, I've installed GO and tested it from command line).

To test the plugin, I created a GO project with a command and a package, formatted, built and ran the command. All good!

But when I try to import an existing GO project, eclipse doesn't recognise it as a GO project. Hence, I can't build it from within eclipse. The source is located in $GOPATH/src where the test project's code is.

Is there anything else I need to do?

图片转代码服务由CSDN问答提供 功能建议

我已经在Eclipse Neon上安装并配置了GOClipse v0.16.1(显然,我已经安装了GO并对其进行了测试 从命令行)。

为了测试插件,我创建了一个带有命令和包的GO项目,对它进行了格式化,构建和运行。 一切都很好!

但是当我尝试导入现有的GO项目时,eclipse不会将其识别为GO项目。 因此,我无法从Eclipse中构建它。 源位于测试项目代码所在的$ GOPATH / src中。


  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doujimiao7480 2016-11-18 10:34

    The "Import existing projects into workspace" wizard only works for existing Eclipse projects, that is, locations that have Eclipse's .project file already.

    If you have just a Go project, you should use the Eclipse "New Go Project" wizard, and specify on the wizard the location of your existing Go project.

    打赏 评论

相关推荐 更多相似问题