douli2876 2014-01-03 22:58
浏览 375
已采纳

使用IntelliJ Golang插件,如何运行整个Golang项目而不是单个文件?

I am using the latest (2014-01-03) Golang plugin for IntelliJ - for the first time.

Usually, my terminal workflow is to do go build && ./executable -args=1

So I am attempting to create a launch configuration to do the same thing, I took these actions:

  • Create a "Go Application" configuration
  • Fill in GOPATH/GOROOT environment variable
  • Fill in CLI arguments
  • Because there has to be a file to run, so I chose the one with func main()

Then there is a problem. When I run the configuration, the Golang plugin does not build the project, but instead builds the single script file with main method, then attempt to run it - obviously it does not work.

How to create a configuration equivelent of go build && ./executable -args=1?

  • 写回答

2条回答 默认 最新

  • duanlu2935 2014-01-24 15:52
    关注

    Try to use the latest version from the official plugin manager. If that doesn't work, please help us identify the issue by submitting a report here

    Also, we are working hard to update the plugin with better type checks, debugging, go appengine support, improved formatter and much more but any help in improving the plugin is greatly appreciated.

    Hope it helps.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部