4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio Code / goenv で Cannot find "go" binary. Update PATH or GOROOT appropriately.

Posted at

環境

MacBookPro (macOS High Sierra v10.13.6)
homebrew/goenv で管理
Visual Studio Code

現象

Visual Studio Code にて GoLang の拡張機能を入れようとすると、

Cannot find "go" binary. Update PATH or GOROOT appropriately.

と出てインストールできない問題。

対応

UserSettingsを開いて、

"go.goroot"の値をgoenv配下のパスに書き換える。

例:

    "go.goroot": "/Users/hogehoge/.goenv/versions/1.8.7",

備考

goenvでバージョン変えるときどうすんだこれ
毎回書き換えるのだるい

これでだめな人は、zshの設定をvscodeでやる必要あるかも

4
5
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?