Skip to content

x/tools/gopls: lsprpc.go errors #69483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xubuntas opened this issue Sep 16, 2024 · 7 comments
Closed

x/tools/gopls: lsprpc.go errors #69483

xubuntas opened this issue Sep 16, 2024 · 7 comments
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@xubuntas
Copy link

xubuntas commented Sep 16, 2024

gopls version

--

go env

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\MSI\AppData\Local\go-build
set GOENV=C:\Users\MSI\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\MSI\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\MSI\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.23.1
set GODEBUG=
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\MSI\AppData\Roaming\go\telemetry
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=F:\Documents\go prj\base\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\MSI\AppData\Local\Temp\go-build655128628=/tmp/go-build -gno-record-gcc-switches

What did you do?

I was customizing visual studio code to work with golang, and ran into errors when installing the language server.

What did you see happen?

I saw some undefined errors in lsprpc.go in the terminal.

What did you expect to see?

Completing the gopls installation without errors.

Editor and settings

{
"workbench.colorTheme": "Rapture"
}

Logs

--

@xubuntas xubuntas added gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. labels Sep 16, 2024
@gopherbot gopherbot added this to the Unreleased milestone Sep 16, 2024
@kolyshkin
Copy link
Contributor

I saw some undefined errors in lsprpc.go in the terminal.

Could you be more specific as to

  • which version of gopls are you using;
  • which errors have you seen?

@xubuntas
Copy link
Author

* which version of gopls are you using;

* which errors have you seen?
  1. Gopls is not installed due to errors. The latest version on golang.org is 0.16.2.

C:\Users\MSI\go\pkg\mod\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:104:10: undefined: autoDialer
C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:119:17: undefined: newAutoDialer
C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:147:16: undefined: autoNetwork
C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:526:15: undefined: autoNetwork
C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:527:10: undefined: autoNetwork

@seankhliao
Copy link
Member

what's in C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\dialer.go?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 16, 2024
@xubuntas xubuntas reopened this Sep 16, 2024
@xubuntas
Copy link
Author

what's in C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\dialer.go?

There is no such file in the path you specified.

@seankhliao
Copy link
Member

that would be your issue then
something on your system (maybe antivirus or similar) is interfering with the go module cache and corrupting module downloads.
this is outside the control of go.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@heil-ham
Copy link

heil-ham commented Mar 2, 2025

* which version of gopls are you using;

* which errors have you seen?
  1. Gopls is not installed due to errors. The latest version on golang.org is 0.16.2.

C:\Users\MSI\go\pkg\mod\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:104:10: undefined: autoDialer C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:119:17: undefined: newAutoDialer C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:147:16: undefined: autoNetwork C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:526:15: undefined: autoNetwork C:\Users\MSI\go\pkg\modules\golang.org\x\tools\gopls@v0.16.2\internal\lsprpc\lsprpc.go:527:10: undefined: autoNetwork

hey man, i wonder how did you solve this problem? cause i also have this gopls problem right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

6 participants