Open Myzel394 opened 2 months ago
Can confirm this works when using the VS Code extension too:
[Info - 11:39:56 AM] 2024/09/01 11:39:56 go info for /home/myzel394/CodeProjects/goplus-test
(go dir /home/myzel394/CodeProjects/goplus-test)
(go version go version go1.23.0 linux/amd64)
(valid build configuration = false)
(build flags: [])
(selected go env: [GO111MODULE=, GOCACHE=/home/myzel394/.cache/go-build, GOFLAGS=, GOMODCACHE=/home/myzel394/go/pkg/mod, GOPATH=/home/myzel394/go, GOPRIVATE=, GOROOT=/home/linuxbrew/.linuxbrew/Cellar/go/1.23.0/libexec, GOWORK=])
[Info - 11:39:56 AM] 2024/09/01 11:39:56 go/packages.Load #1
snapshot=0
directory=file:///home/myzel394/CodeProjects/goplus-test
query=[./ builtin]
packages=2
[Info - 11:39:56 AM] 2024/09/01 11:39:56 go/packages.Load #1: updating metadata for 1 packages
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xdcdcba]
goroutine 194 [running]:
golang.org/x/tools/gopls/internal/lsp/cache.localPackageKey({{0xc000426990, 0x28}, {0xc000426990, 0x28}, {0xc000495658, 0x4}, {0xc000566150, 0x1, 0x1}, {0x1b1c260, ...}, ...})
/home/myzel394/go/pkg/mod/github.com/goplus/tools/gopls@v0.0.0-20240212113720-3c9c8e3d8619/internal/lsp/cache/check.go:1493 +0xcfa
golang.org/x/tools/gopls/internal/lsp/cache.(*packageHandleBuilder).buildPackageHandle(0xc0006cc540, {0x13fb9a8, 0xc0002e2230}, 0xc0002e21e0)
/home/myzel394/go/pkg/mod/github.com/goplus/tools/gopls@v0.0.0-20240212113720-3c9c8e3d8619/internal/lsp/cache/check.go:1143 +0x2e5
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).getPackageHandles.func2.1()
/home/myzel394/go/pkg/mod/github.com/goplus/tools/gopls@v0.0.0-20240212113720-3c9c8e3d8619/internal/lsp/cache/check.go:942 +0xc8
golang.org/x/sync/errgroup.(*Group).Go.func1()
/home/myzel394/go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:78 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 180
/home/myzel394/go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:75 +0x96
[Info - 11:39:56 AM]
true
[Info - 11:39:56 AM] 2024/09/01 11:39:56 go info for /home/myzel394/CodeProjects/goplus-test
(go dir /home/myzel394/CodeProjects/goplus-test)
(go version go version go1.23.0 linux/amd64)
(valid build configuration = false)
(build flags: [])
(selected go env: [GO111MODULE=, GOCACHE=/home/myzel394/.cache/go-build, GOFLAGS=, GOMODCACHE=/home/myzel394/go/pkg/mod, GOPATH=/home/myzel394/go, GOPRIVATE=, GOROOT=/home/linuxbrew/.linuxbrew/Cellar/go/1.23.0/libexec, GOWORK=])
Hey, so I'm trying to get
goxls
to work on neovim, here's what I did:Procedure
goxls
usinggop install github.com/goplus/goxls@latest
*.gop
files:main.gop
files, the following error is thrown:Info