Why IntelliJ Idea cannot find location of GO SDK?

后端 未结 3 1955
面向向阳花
面向向阳花 2021-02-19 22:02
  1. I downloaded go1.4.darwin-amd64-osx10.8.tar.gz and extract it on my local directory.
  2. Based on what Installing to a custom location says I added GOROOT in env vari
相关标签:
3条回答
  • 2021-02-19 22:22

    Please consider using one of the alpha releases for 0.9.16. I believe that alpha7 could be the more stable one rather than alpha9. You can get them from GitHub releases

    The v1.0.0-alpha0 branch is, as the name implies, an alpha release and it's in the early stages of development, that's why there's no release done yet for it as well.

    P.S. I'm one of the contributors to the plugin.

    0 讨论(0)
  • 2021-02-19 22:37

    ~Desktop/go/sdk doesn't seems a valid path (as it refers to the homedir of the 'Desktop' user): ~/Desktop/go/sdk should work better.

    As long as you see in that ~/Desktop/go/sdk folders the subfolders 'api', 'bin', 'blog', ..., that should be the right one for the GO SDK expected by the "golang support plugin".

    Some issues exist with that plugin and IntelliJ 14: issues 1169, PR 1172 (fixed for for 1.0.0-alpha).
    The other approach is to recompile and install that plugin.

    The end result of specifying the Go SDK path should look like:

    http://pivotallabs.com/wordpress/wp-content/uploads/2013/12/Screen-Shot-2013-12-09-at-4.53.20-PM.png

    0 讨论(0)
  • 2021-02-19 22:44

    Does not allow to use SDK placed in /usr/local/go (perfectly valid and recent SDK) under Mac Yosemite. Google App Engine does not recognise last valid GAE GO SDK either.

    0 讨论(0)
提交回复
热议问题