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

Bug: not working on windows 11 #44

Closed windzhu0514 closed 1 year ago

windzhu0514 commented 1 year ago

only go stand library, not show project dependent library image

r3inbowari commented 1 year ago

Hi! @windzhu0514 Could you provide the go.mod and go.sum files for reproduction, thank you! And It should be noted that if there are some errors in the go.mod file, the libraries will not be updated correctly. So you can run go list -mod=readonly -m -json -e all in your workspace to see whether the list is fetched correctly.

windzhu0514 commented 1 year ago

go.mod

module test

go 1.18

require github.com/google/uuid v1.3.0

go.sum

github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

go list

$ go list -mod=readonly -m -json -e all
{
        "Path": "test",
        "Main": true,
        "Dir": "D:\\WorkspaceGo\\test",
        "GoMod": "D:\\WorkspaceGo\\test\\go.mod",
        "GoVersion": "1.18"
}
{
        "Path": "github.com/google/uuid",
        "Version": "v1.3.0",
        "Time": "2021-07-12T22:33:52Z",
        "Dir": "C:\\Users\\LJC\\go\\pkg\\mod\\github.com\\google\\uuid@v1.3.0",
        "GoMod": "C:\\Users\\LJC\\go\\pkg\\mod\\cache\\download\\github.com\\google\\uuid\\@v\\v1.3.0.mod"
}

also only show go stand library

版本 Windows 11 专业版 版本 22H2 安装日期 ‎2022/‎7/‎29 ‎周五 操作系统版本 22623.1028 体验 Windows Feature Experience Pack 1000.22638.1000.0

r3inbowari commented 1 year ago

Thanks , I wonder if there is an exception in the vscode console logs? image

windzhu0514 commented 1 year ago

image but there is alreadly has a go.mod file

go list -mod=readonly -m -json -e all command exec success in vscode TERMINAL

r3inbowari commented 1 year ago

OKAY. @windzhu0514 I pushed a patch with tag v0.3.7, plz try it, emmm...maybe useful...

windzhu0514 commented 1 year ago

it works,thanks a lot

image