2015-03-17 11:38 阅读 55


I'm trying to migrate from Goclipse dev environment to IDEA. Could not find a killing feature in golang-idea-plugin, that exists in Goclipse - each GO project automatically adds itself as a GOPATH item for Eclipse session, so I don't have to put it to global GOPATH manually. This is extremely useful, as I don't want to mix my local code with globally grabbed ones (I don't plan to share my code in any ways), plus several projects are distinguished from each other in their envs. But I did not found any kind of this feature in golang IDEA plugin, so my builds keep failing with follows:

cannot find package "wnd/modules/network" in any of:
etwork (from $GOROOT)
etwork (from $GOPATH)

Are there any cures for this within IDEA?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    dongshijiao2363 dongshijiao2363 2015-04-02 23:42

    If you are using the latest version of the plugin see the repository then you are able to fully customize the GOPATH layout. You can chose to have global entries, which are persisted for all your projects, or per project entries, which are project specific entries. You can really be creative with the options.

    点赞 评论 复制链接分享