Skip to content
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

x/tools/gopls: Neovim stuck at "Loading packages...Setting up workspace gopls" when opening folder in NFS share #67186

Open
omani opened this issue May 5, 2024 · 1 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.
Milestone

Comments

@omani
Copy link

omani commented May 5, 2024

gopls version

golang.org/x/tools/gopls v0.15.2

go env

GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/sun/.cache/go-build'
GOENV='/home/sun/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/sun/.local/share/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/sun/.local/share/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.2'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/sun/nfs/shared/git/mytest/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build323280100=/tmp/go-build -gno-record-gcc-switches'

What did you do?

open neovim with gopls set up (lspconfig) in a directory located within an NFS share.

What did you see happen?

neovim gets stuck at...(see title).

What did you expect to see?

I expect the same behavour when I copy over the directory to my local disk. then everything runs fine.

it seems that gopls is scanning the whole NFS tree? (which is quite large)

Editor and settings

No response

Logs

No response

@omani omani 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 May 5, 2024
@gopherbot gopherbot added this to the Unreleased milestone May 5, 2024
@omani omani changed the title x/tools/gopls: Neovim stuck at "Loading packages...Setting up workspace gopls" when opening folder via **NFS** share x/tools/gopls: Neovim stuck at "Loading packages...Setting up workspace gopls" when opening folder in NFS share May 5, 2024
@suzmue suzmue modified the milestones: Unreleased, gopls/backlog May 6, 2024
@suzmue
Copy link
Contributor

suzmue commented May 15, 2024

@omani Thanks for filing an issue! How long does go list -deps ./... take in the directory within the NFS share?

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.
Projects
None yet
Development

No branches or pull requests

3 participants