sourcegraph / go-langserver

Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)
https://sourcegraph.com
MIT License
1.17k stars 89 forks source link

Error installing on Ubuntu 20.04 #400

Closed Alexey-T closed 2 years ago

Alexey-T commented 2 years ago
user@PC:~$ go install github.com/sourcegraph/go-langserver@latest
go: downloading github.com/sourcegraph/go-langserver v2.0.0+incompatible
go: finding module for package github.com/opentracing/basictracer-go
go: finding module for package github.com/hashicorp/golang-lru
go: finding module for package github.com/neelance/parallel
go: finding module for package github.com/sourcegraph/jsonrpc2
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: finding module for package github.com/opentracing/opentracing-go
go: downloading github.com/neelance/parallel v0.0.0-20160708114440-4de9ce63d14c
go: downloading github.com/opentracing/basictracer-go v1.1.0
go: downloading github.com/sourcegraph/jsonrpc2 v0.1.0
go: finding module for package github.com/opentracing/opentracing-go/ext
go: downloading github.com/opentracing/opentracing-go v1.2.0
go: finding module for package github.com/pmezard/go-difflib/difflib
go: finding module for package github.com/prometheus/client_golang/prometheus
go: finding module for package github.com/slimsag/godocmd
go: finding module for package github.com/sourcegraph/ctxvfs
go: finding module for package golang.org/x/net/context
go: finding module for package golang.org/x/tools/go/buildutil
go: downloading github.com/prometheus/client_golang v1.13.0
go: finding module for package golang.org/x/tools/go/loader
go: downloading golang.org/x/net v0.0.0-20221004154528-8021a29435af
go: finding module for package golang.org/x/tools/go/types/typeutil
go: finding module for package golang.org/x/tools/imports
go: downloading github.com/sourcegraph/ctxvfs v0.0.0-20180418081416-2b65f1b1ea81
go: finding module for package golang.org/x/tools/refactor/importgraph
go: finding module for package golang.org/x/tools/go/ast/astutil
go: found github.com/sourcegraph/jsonrpc2 in github.com/sourcegraph/jsonrpc2 v0.1.0
go: found github.com/hashicorp/golang-lru in github.com/hashicorp/golang-lru v0.5.4
go: found github.com/neelance/parallel in github.com/neelance/parallel v0.0.0-20160708114440-4de9ce63d14c
go: found github.com/opentracing/basictracer-go in github.com/opentracing/basictracer-go v1.1.0
go: found github.com/opentracing/opentracing-go in github.com/opentracing/opentracing-go v1.2.0
go: found github.com/opentracing/opentracing-go/ext in github.com/opentracing/opentracing-go v1.2.0
go: found github.com/pmezard/go-difflib/difflib in github.com/pmezard/go-difflib v1.0.0
go: found github.com/prometheus/client_golang/prometheus in github.com/prometheus/client_golang v1.13.0
go: found github.com/slimsag/godocmd in github.com/slimsag/godocmd v0.0.0-20161025000126-a1005ad29fe3
go: found github.com/sourcegraph/ctxvfs in github.com/sourcegraph/ctxvfs v0.0.0-20180418081416-2b65f1b1ea81
go: found golang.org/x/net/context in golang.org/x/net v0.0.0-20221004154528-8021a29435af
go: found golang.org/x/tools/go/buildutil in golang.org/x/tools v0.1.12
go: found golang.org/x/tools/go/loader in golang.org/x/tools v0.1.12
go: found golang.org/x/tools/go/types/typeutil in golang.org/x/tools v0.1.12
go: found golang.org/x/tools/imports in golang.org/x/tools v0.1.12
go: found golang.org/x/tools/refactor/importgraph in golang.org/x/tools v0.1.12
go: found golang.org/x/tools/go/ast/astutil in golang.org/x/tools v0.1.12
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.37.0
go: downloading github.com/prometheus/procfs v0.8.0
go: downloading google.golang.org/protobuf v1.28.1
go: downloading golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
# github.com/sourcegraph/go-langserver/langserver/internal/godef/go/parser
go/pkg/mod/github.com/sourcegraph/go-langserver@v2.0.0+incompatible/langserver/internal/godef/go/parser/parser.go:858:43: too few values in struct literal
go/pkg/mod/github.com/sourcegraph/go-langserver@v2.0.0+incompatible/langserver/internal/godef/go/parser/parser.go:877:54: too few values in struct literal
go/pkg/mod/github.com/sourcegraph/go-langserver@v2.0.0+incompatible/langserver/internal/godef/go/parser/parser.go:2143:76: too few values in struct literal

and

user@PC:~$ go version
go version go1.18.3 linux/amd64
keegancsmith commented 2 years ago

Hey we no longer maintain this server (in fact I am about to archive this repository). Please use the official gopls language server from the go team.