Package: vim-youcompleteme Version: 0+20200825+git2afee9d+ds-2 Severity: normal
Dear Maintainer, When using vim-youcompleteme, the environment set GOPATH and PATH are ignored for gopls. When opening test.go I receive the following error: FileNotFoundError: [Errno 2] No such file or directory: '/home/kyle/go/bin/gopls' This can only be resolved by linking $GOPATH/bin/gopls to ~/go/bin/gopls. I can replicate this with vim-youcompleteme being the only plugin installed (moving ~/.vim/bundle to ~/.vim/bundle.bak). Output of ':! goenv' (within vim) GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/kyle/.cache/go-build" GOENV="/home/kyle/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/kyle/projects/.go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/kyle/projects/.go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.16" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/dev/null" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1862550245=/tmp/go-build -gno-record-gcc-switches" gopls version: golang.org/x/tools/gopls v0.6.6 golang.org/x/tools/gopls@v0.6.6 h1:GmCsAKZMEb1BD1BTWnQrMyx4FmNThlEsmuFiJbLBXio= .vimrc: execute pathogen#infect() call pathogen#helptags() filetype plugin indent on let g:go_echo_command_info = 1 -- System Information: Debian Release: 11.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, arm64 Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8), LANGUAGE=en_ZA:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages vim-youcompleteme depends on: ii python3 3.9.2-3 ii python3-future 0.18.2-5 ii python3-requests 2.25.1+dfsg-2 ii python3-requests-futures 1.0.0-2 ii vim-nox [vim-python3] 2:8.2.2434-3 ii ycmd [ycmd-core-version] 0+20201028+git1d415c5+ds-1+b2 Versions of packages vim-youcompleteme recommends: ii vim-addon-manager 0.5.10 vim-youcompleteme suggests no packages. -- no debconf information