r3inbowari / go-mod-explorer

Go Module Explorer for Visual Studio Code (beta)
https://marketplace.visualstudio.com/items?itemName=r3inbowari.gomodexplorer
MIT License
33 stars 6 forks source link

Feature Request. Add go standard module. #18

Closed 4meepo closed 2 years ago

4meepo commented 2 years ago

可以把go 标准库也加到module列表里吗? 最好是放在列表的第一项。

r3inbowari commented 2 years ago

好滴

r3inbowari commented 2 years ago

v0.2.0 has been released, please try it. Thank you.

4meepo commented 2 years ago

Something went wrong. Please check it .

image image
r3inbowari commented 2 years ago

Is go.goroot configured in settings.json?

4meepo commented 2 years ago

Neither go.goroot configuration in setting.json or environment variable GOROOT worked.

image
r3inbowari commented 2 years ago

Ok, I understand, is the browser also empty?

4meepo commented 2 years ago

Not empty, it shows the external dependencies at least.

image
r3inbowari commented 2 years ago

v0.2.1 may fix this, try it

4meepo commented 2 years ago

There is another error occurred.

ENOENT: no such file or directory, scandir '/"/users/yifei/go-sdk/go1.17"/src'

image
r3inbowari commented 2 years ago

could you run go env, and give me the console printing, i don't have macos...

4meepo commented 2 years ago
❯ go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/yifei/Library/Caches/go-build"
GOENV="/Users/yifei/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/yifei/go/pkg/mod"
GONOPROXY="gitlab.tgmtlb.com"
GONOSUMDB="gitlab.tgmtlb.com"
GOOS="darwin"
GOPATH="/Users/yifei/go"
GOPRIVATE="gitlab.tgmtlb.com"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/users/yifei/go-sdk/go1.17"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/users/yifei/go-sdk/go1.17/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.17.9"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/yifei/project/trustbridge/book-wizard/book-wizard-assessment-service/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
r3inbowari commented 2 years ago

sorry for making you try so many times, haha. v0.2.2 has been published

4meepo commented 2 years ago

Excellent job, thank you very much! By the way, I mentioned this plugin here.

r3inbowari commented 2 years ago

pretty good, but there doesn't seem to be a plan to move forward.