如何配置Intellij

时间:2019-01-24 05:52:27

标签: go intellij-idea gopath

我克隆了一个skaffold Go项目。现在,我要运行此Go项目。 我已经在项目设置中设置了配置,并且还正确设置了GOPATH。 设置此配置时出现错误。

enter image description here

这些是我的GOPATH设置

enter image description here

有时会运行,有时会显示上述错误。

1 个答案:

答案 0 :(得分:1)

安德鲁(Andrew)的好评,我将其简要介绍到解决方案中。

在添加配置时,将 Run-Kind 更改为打包而不是文件或目录。 明智地使用此运行方式选项。