原因を調べていくうちに、以下の記事が見つかった。 blog.framinal.life www.web-dev-qa-db-ja.com bash 関連の諸々の設定をVisual Studio Code が読み込んでいないのが原因らしい。 自分の場合、Visual Studio Code に GOROOT の設定について怒られたていた。この問題を settings.json に GOROOT の設定を書くことで解決した。 >|json| { ... "go.goroot": "/home/hujimori/.asdf/installs/golang/1.17.6/go", "go.gopath…