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: not working with sidecar environment #40139
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
Change https://golang.org/cl/241857 mentions this issue: |
I am using vscode-go nightly vsix, by the way. |
It might be better to use the stable version of the extension just to make sure the experience is more consistent. |
Add a higher log level for the command-line. This uses the verboseOutput setting. Updates golang/go#40139 Change-Id: I9b7edcda12b0431058c9cfe1413b7c5fc016c026 Reviewed-on: https://go-review.googlesource.com/c/tools/+/241857 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
@gattytto: If you'd like to continue debugging, please install |
/projects/src/github.com/gattytto/gopos-backend $ gopls version
golang.org/x/tools/gopls master
golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=
/projects/src/github.com/gattytto/gopos-backend $ gopls -vv -rpc.trace check internal/gRPC/impl/inventarioServiceGrpcImpl.go
2020/07/11 17:50:42 Info:2020/07/11 17:50:42 Build info
----------
golang.org/x/tools/gopls master
golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=
github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/mod@v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=
golang.org/x/tools@v0.0.0-20200711155855-7342f9734a7d h1:F3OmlXCzYtG9YE6tXDnUOlJBzVzHF8EcmZ1yTJlcgIk=
golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
honnef.co/go/tools@v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=
mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=
Go info
-------
go version devel +9699086043 Wed Jul 8 19:50:20 2020 +0000 linux/amd64
2020/07/11 17:50:42 Info:2020/07/11 17:50:42 go env for /projects/src/github.com/gattytto/gopos-backend
(valid build configuration = true)
(build flags: [])
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/.cache"
GOENV="/home/theia/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB="true"
GOOS="linux"
GOPATH="/go:/projects"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/projects/src/github.com/gattytto/gopos-backend/go.mod"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build011820338=/tmp/go-build -gno-record-gcc-switches"
2020/07/11 17:53:04 Info:2020/07/11 17:53:04 2m22.430608353s for GOROOT=/usr/local/go GOPATH=/go:/projects GO111MODULE=on GOPROXY=direct PWD=/projects/src/github.com/gattytto/gopos-backend go [go list -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.213554420.mod -e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.213554420.mod -- ./... builtin]
2020/07/11 17:53:04 Info:2020/07/11 17:53:04 go/packages.Load
snapshot=0
directory=/projects/src/github.com/gattytto/gopos-backend
query=[./... builtin]
packages=1
2020/07/11 17:53:04 Info:2020/07/11 17:53:04 go/packages.Load
snapshot=0
package_path="command-line-arguments"
files=[]
2020/07/11 17:53:05 Info:2020/07/11 17:53:05 288.768221ms for GOROOT=/usr/local/go GOPATH=/go:/projects GO111MODULE=on GOPROXY=direct PWD=/projects/src/github.com/gattytto/gopos-backend go [go list -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.549896941.mod -e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.549896941.mod -- /projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl]
2020/07/11 17:53:05 Info:2020/07/11 17:53:05 206.159839ms for GOROOT=/usr/local/go GOPATH=/go:/projects GO111MODULE=on GOPROXY=direct PWD=/projects/src/github.com/gattytto/gopos-backend go [go list -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.549896941.mod -e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.549896941.mod -- /projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
2020/07/11 17:53:05 Info:2020/07/11 17:53:05 go/packages.Load
snapshot=1
directory=/projects/src/github.com/gattytto/gopos-backend
query=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
packages=0
2020/07/11 17:53:06 Info:2020/07/11 17:53:06 199.830555ms for GOROOT=/usr/local/go GOPATH=/go:/projects GO111MODULE=on GOPROXY=direct PWD=/projects/src/github.com/gattytto/gopos-backend go [go list -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.198261159.mod -e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.198261159.mod -- /projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl]
2020/07/11 17:53:06 Info:2020/07/11 17:53:06 go/packages.Load
snapshot=1
directory=/projects/src/github.com/gattytto/gopos-backend
query=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
packages=0
2020/07/11 17:53:06 Info:2020/07/11 17:53:06 205.351063ms for GOROOT=/usr/local/go GOPATH=/go:/projects GO111MODULE=on GOPROXY=direct PWD=/projects/src/github.com/gattytto/gopos-backend go [go list -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.198261159.mod -e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.198261159.mod -- /projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go] |
here's an output of gopls from the extension, with argument to fill a log-file: Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go","languageId":"go","version":1,"text":"package impl\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t. \"github.com/gattytto/libgopos_go/v1alpha1\"\n\t\"log\"\n)\n\n//InventarioServiceGrpcImpl is an implementation of ProductService gRPC Service\ntype InventarioServiceGrpcImpl struct {\n\n}\n\n//NewInventarioServiceGrpcImpl returns the pointer to the implementation.\nfunc NewInventarioServiceGrpcImpl() *InventarioServiceGrpcImpl {\n\treturn &InventarioServiceGrpcImpl{}\n}\n\n// CreateComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) CreateComprobante(ctx context.Context, in *CreateComprobanteRequest) (*CreateComprobanteResponse, error) {\n\tlog.Println(\"Received request for adding comprobante with id \" + fmt.Sprint(in.Comprobante.GetId()))\n\n\tlog.Println(\"Comprobante persisted to storage\")\n\n\treturn &CreateComprobanteResponse{\n\t\tCreatedComprobante: in.Comprobante,\n\t\tError: nil,\n\t}, nil\n\n}\n\n// GetComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) GetComprobante(ctx context.Context, in *GetComprobanteRequest) (*GetComprobanteResponse, error) {\n\tlog.Println(\"Received request for getting Articulo with id \" + fmt.Sprint(in.Id))\n\t\n\t//Logic to persist to database or storage.\n\tlog.Println(\"Articulo returned\")\n\tvar prod Comprobante\n\tprod.Id = 20\n\treturn &GetComprobanteResponse{\n\t\tComprobante:\t&prod,\n\t\tError:\t\tnil,\n\t}, nil\n}\n\n// UpdateComprobante Method def\nfunc (serviceImpl *InventarioServiceGrpcImpl) UpdateComprobante(ctx context.Context, in *UpdateComprobanteRequest) (*UpdateComprobanteResponse, error){\n\tlog.Println(\"Received request for updating comprobante with id \" + fmt.Sprint(in.Comprobante.Id))\n\n\treturn &UpdateComprobanteResponse{\n\t\tUpdatedComprobante: in.Comprobante,\n\t\tError: nil,\n\t}, nil\n}\n\n// DeleteComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) DeleteComprobante(ctx context.Context, in *DeleteComprobanteRequest) (*DeleteComprobanteResponse, error){\n\tlog.Println(\"Received request for deleting product with id \" + fmt.Sprint(in.Id))\n\n\tlog.Println(\"Comprobante was deleted\")\n\n\treturn &DeleteComprobanteResponse{\n\t\tError: nil,\n\t},nil\n\t\n}\n\n// CreateArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) CreateArticulo(ctx context.Context, in *CreateArticuloRequest) (*CreateArticuloResponse, error) {\n\tlog.Println(\"Received request for adding Articulo with id \" + fmt.Sprint(in.Articulo.GetId()))\n\n\tlog.Println(\"Articulo persisted to storage\")\n\n\treturn &CreateArticuloResponse{\n\t\tCreatedArticulo: in.Articulo,\n\t\tError: nil,\n\t}, nil\n\n}\n\n// GetArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) GetArticulo(ctx context.Context, in *GetArticuloRequest) (*GetArticuloResponse, error) {\n\tlog.Println(\"Received request for getting Articulo with id \" + fmt.Sprint(in.Id))\n\t\n\t//Logic to persist to database or storage.\n\tlog.Println(\"Articulo returned\")\n\tvar prod Articulo\n\tprod.Id = 20\n\treturn &GetArticuloResponse{\n\t\tArticulo:\t&prod,\n\t\tError:\t\tnil,\n\t}, nil\n}\n\n// UpdateArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) UpdateArticulo(ctx context.Context, in *UpdateArticuloRequest) (*UpdateArticuloResponse, error){\n\tlog.Println(\"Received request for updating Articulo with id \" + fmt.Sprint(in.Articulo.Id))\n\n\treturn &UpdateArticuloResponse{\n\t\tUpdatedArticulo: in.Articulo,\n\t\tError: nil,\n\t}, nil\n}\n\n// DeleteArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) DeleteArticulo(ctx context.Context, in *DeleteArticuloRequest) (*DeleteArticuloResponse, error){\n\tlog.Println(\"Received request for deleting product with id \" + fmt.Sprint(in.Id))\n\n\tlog.Println(\"Articulo was deleted\")\n\n\treturn &DeleteArticuloResponse{\n\t\tError: nil,\n\t},nil\n\n}\n\n// ListComprobantes function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) ListComprobantes(req *ListComprobantesRequest, stream Inventario_ListComprobantesServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// ListArticulos function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) ListArticulos(req *ListArticulosRequest, stream Inventario_ListArticulosServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// BulkPatchArticulos function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) BulkPatchArticulos(stream Inventario_BulkPatchArticulosServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// BulkPatchComprobantes function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) BulkPatchComprobantes(stream Inventario_BulkPatchComprobantesServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}"}}
[Trace - 18:02:13.766 PM] Sending request 'textDocument/documentLink - (1)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 18:02:13.767 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}
[Trace - 18:02:13.784 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:02:13 failed to load workspace packages, skipping diagnostics: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./]: exit status 1: go: cannot find main module; see 'go help modules'\n\n\tsnapshot=1\n\tdirectory=file:///projects\n"}
[Trace - 18:02:13.784 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:02:13 go/packages.Load: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./]: exit status 1: go: cannot find main module; see 'go help modules'\n\n\tsnapshot=1\n\tdirectory=/projects\n\tquery=[./]\n\tpackages=0\n"}
[Trace - 18:02:13.860 PM] Received response 'textDocument/documentLink - (1)' in 94ms.
Result: null
[Trace - 18:02:13.860 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:02:13 failed to compute document links: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go\n"}
[Trace - 18:02:13.861 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:02:13 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:02:13.914 PM] Sending request 'textDocument/foldingRange - (3)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 18:02:13.930 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:02:13 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Error - Received] 18:02:13.931 PM #2 no PackageHandles
[Trace - 18:02:13.931 PM] Received response 'textDocument/foldingRange - (3)' in 17ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":6,"endCharacter":6,"kind":"imports"},{"startLine":15,"startCharacter":64,"endLine":16,"endCharacter":36},{"startLine":20,"startCharacter":152,"endLine":28,"endCharacter":7},{"startLine":25,"startCharacter":35,"endLine":27,"endCharacter":22},{"startLine":33,"startCharacter":143,"endLine":43,"endCharacter":7},{"startLine":40,"startCharacter":32,"endLine":42,"endCharacter":13},{"startLine":47,"startCharacter":151,"endLine":53,"endCharacter":7},{"startLine":50,"startCharacter":35,"endLine":52,"endCharacter":22},{"startLine":57,"startCharacter":151,"endLine":64,"endCharacter":6},{"startLine":62,"startCharacter":35,"endLine":63,"endCharacter":12},{"startLine":69,"startCharacter":143,"endLine":77,"endCharacter":7},{"startLine":74,"startCharacter":32,"endLine":76,"endCharacter":22},{"startLine":82,"startCharacter":134,"endLine":92,"endCharacter":7},{"startLine":89,"startCharacter":29,"endLine":91,"endCharacter":13},{"startLine":96,"startCharacter":142,"endLine":102,"endCharacter":7},{"startLine":99,"startCharacter":32,"endLine":101,"endCharacter":22},{"startLine":106,"startCharacter":142,"endLine":113,"endCharacter":6},{"startLine":111,"startCharacter":32,"endLine":112,"endCharacter":12},{"startLine":118,"startCharacter":142,"endLine":127,"endCharacter":11},{"startLine":131,"startCharacter":133,"endLine":140,"endCharacter":11},{"startLine":144,"startCharacter":116,"endLine":153,"endCharacter":11},{"startLine":157,"startCharacter":122,"endLine":166,"endCharacter":11}]
[Trace - 18:02:13.958 PM] Sending request 'textDocument/codeLens - (4)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 18:02:13.958 PM] Received response 'textDocument/codeLens - (4)' in 0ms.
Result: null
[Trace - 18:02:43.862 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:02:43 background imports cache refresh starting\n"}
[Trace - 18:02:43.907 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:02:43 background refresh finished after 44.95181ms\n"}
[Trace - 18:04:03.632 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go","languageId":"go","version":1,"text":"package main\n\nimport (\n\t\"fmt\"\n\timpl \"github.com/gattytto/gopos-backend/internal/gRPC/impl\"\n\tinventario \"github.com/gattytto/libgopos_go/v1alpha1\"\n\t\"log\"\n\t\"net\"\n\n\tgrpc \"google.golang.org/grpc\"\n)\n\n//noinspection ALL\nfunc main() {\n\t//netListener := getNetListener(7000)\n\tvar unixListener = getUnixListener(\"/tmp/gopos_backend.sock\")\n\tvar gRPCServer = grpc.NewServer()\n\tvar inventarioServiceImpl = impl.NewInventarioServiceGrpcImpl()\n\tinventario.RegisterInventarioServer(gRPCServer, inventarioServiceImpl)\n\n\tif err := gRPCServer.Serve(unixListener); err != nil {\n\t\tlog.Fatalf(\"failed to serve socket: %s\", err)\n\t}\n\n}\n\nfunc getUnixListener(path string) net.Listener {\n\tlis, err := net.Listen(\"unix\", path)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to listen: %v\", err)\n\t\tpanic(fmt.Sprintf(\"failed to listen: %v\", err))\n\t}\n\treturn lis\n}\n\nfunc getNetListener(port uint) net.Listener {\n lis, err := net.Listen(\"tcp\", fmt.Sprintf(\":%d\", port))\n if err != nil {\n log.Fatalf(\"failed to listen: %v\", err)\n panic(fmt.Sprintf(\"failed to listen: %v\", err))\n }\n\n return lis\n}\n"}}
[Trace - 18:04:03.633 PM] Sending request 'textDocument/documentLink - (5)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Trace - 18:04:03.634 PM] Sending request 'textDocument/codeAction - (6)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}
[Trace - 18:04:03.644 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:04:03 failed to load workspace packages, skipping diagnostics: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./]: exit status 1: go: cannot find main module; see 'go help modules'\n\n\tsnapshot=2\n\tdirectory=file:///projects\n"}
[Trace - 18:04:03.644 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:04:03 go/packages.Load: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./]: exit status 1: go: cannot find main module; see 'go help modules'\n\n\tsnapshot=2\n\tdirectory=/projects\n\tquery=[./]\n\tpackages=0\n"}
[Trace - 18:04:03.726 PM] Received response 'textDocument/documentLink - (5)' in 93ms.
Result: null
[Trace - 18:04:03.726 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:03 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go]\n\tpackages=0\n"}
[Trace - 18:04:03.726 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:04:03 failed to compute document links: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go\n"}
[Trace - 18:04:03.785 PM] Sending request 'textDocument/foldingRange - (7)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Trace - 18:04:03.826 PM] Sending request 'textDocument/codeLens - (8)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Error - Received] 18:04:03.832 PM #6 no PackageHandles
[Trace - 18:04:03.832 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:03 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go]\n\tpackages=0\n"}
[Trace - 18:04:03.832 PM] Received response 'textDocument/foldingRange - (7)' in 46ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":9,"endCharacter":30,"kind":"imports"},{"startLine":13,"startCharacter":13,"endLine":22,"endCharacter":2},{"startLine":20,"startCharacter":55,"endLine":21,"endCharacter":47},{"startLine":26,"startCharacter":48,"endLine":32,"endCharacter":11},{"startLine":28,"startCharacter":16,"endLine":30,"endCharacter":49},{"startLine":35,"startCharacter":45,"endLine":42,"endCharacter":14},{"startLine":37,"startCharacter":19,"endLine":39,"endCharacter":55}]
[Trace - 18:04:03.832 PM] Received response 'textDocument/codeLens - (8)' in 6ms.
Result: null
[Trace - 18:04:19.030 PM] Sending request 'textDocument/hover - (9)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":25,"character":16}}
[Trace - 18:04:19.084 PM] Received response 'textDocument/hover - (9)' in 54ms.
Result: null
[Trace - 18:04:19.084 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:19 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:04:19.241 PM] Sending request 'textDocument/hover - (10)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":26,"character":13}}
[Trace - 18:04:19.281 PM] Sending notification '$/cancelRequest'.
Params: {"id":10}
[Error - Received] 18:04:19.282 PM #10 JSON RPC cancelled
[Trace - 18:04:27.222 PM] Sending request 'textDocument/hover - (11)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":27,"character":15}}
[Trace - 18:04:27.275 PM] Received response 'textDocument/hover - (11)' in 53ms.
Result: null
[Trace - 18:04:27.275 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:27 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:04:29.149 PM] Sending request 'textDocument/codeAction - (12)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":8}},"context":{"diagnostics":[]}}
[Error - Received] 18:04:29.204 PM #12 no PackageHandles
[Trace - 18:04:29.204 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:29 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:04:33.727 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:33 background imports cache refresh starting\n"}
[Trace - 18:04:33.730 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:04:33 background refresh finished after 3.533687ms\n"} |
here's a log file with the project folder added as a workspace folder (I guess this is needed for the extension no to look for go.mod in /projects): �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[Trace - 18:14:01.104 PM] Sending request 'textDocument/hover - (28)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":41,"character":12}}
[Trace - 18:14:01.157 PM] Sending notification '$/cancelRequest'.
Params: {"id":28}
[Error - Received] 18:14:01.159 PM #28 JSON RPC cancelled
[Trace - 18:14:01.406 PM] Sending request 'textDocument/hover - (29)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":41,"character":10}}
[Trace - 18:14:01.457 PM] Sending notification '$/cancelRequest'.
Params: {"id":29}
[Error - Received] 18:14:01.460 PM #29 JSON RPC cancelled
[Trace - 18:14:09.700 PM] Sending request 'textDocument/hover - (30)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":15}}
[Trace - 18:14:10.040 PM] Received response 'textDocument/hover - (30)' in 340ms.
Result: null
[Trace - 18:14:10.041 PM] Sending request 'textDocument/documentHighlight - (31)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":15}}
[Trace - 18:14:10.041 PM] Sending notification '$/cancelRequest'.
Params: {"id":30}
[Trace - 18:14:10.041 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:14:10 go/packages.Load\n\tsnapshot=0\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:14:10.282 PM] Sending request 'textDocument/codeAction - (32)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":38,"character":15},"end":{"line":38,"character":15}},"context":{"diagnostics":[]}}
[Trace - 18:14:10.346 PM] Received response 'textDocument/documentHighlight - (31)' in 305ms.
Result: []
[Trace - 18:14:10.346 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:14:10 go/packages.Load\n\tsnapshot=0\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:14:10.346 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:14:10 no highlight: getting file for Highlight: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go\n"}
[Trace - 18:14:10.447 PM] Sending request 'textDocument/hover - (33)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":15}}
[Trace - 18:14:10.560 PM] Sending notification '$/cancelRequest'.
Params: {"id":33}
[Trace - 18:14:10.660 PM] Sending request 'textDocument/hover - (34)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":16}}
[Error - Received] 18:14:10.737 PM #32 no PackageHandles
[Trace - 18:14:10.737 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:14:10 go/packages.Load\n\tsnapshot=0\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Error - Received] 18:14:10.737 PM #33 JSON RPC cancelled
[Trace - 18:14:11.102 PM] Received response 'textDocument/hover - (34)' in 441ms.
Result: null
[Trace - 18:14:11.102 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:14:11 go/packages.Load\n\tsnapshot=0\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
|
here's a log of reproduction in che.openshift.io : [Info - 6:38:00 PM] 2020/07/11 18:38:00 Build info
----------
golang.org/x/tools/gopls master
golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=
github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/mod@v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=
golang.org/x/tools@v0.0.0-20200711155855-7342f9734a7d h1:F3OmlXCzYtG9YE6tXDnUOlJBzVzHF8EcmZ1yTJlcgIk=
golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
honnef.co/go/tools@v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=
mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=
Go info
-------
go version devel +9699086043 Wed Jul 8 19:50:20 2020 +0000 linux/amd64
[Info - 6:38:00 PM] 2020/07/11 18:38:00 go env for /projects/src/github.com/gattytto/gopos-backend
(valid build configuration = true)
(build flags: [])
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/.cache"
GOENV="/home/theia/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB="true"
GOOS="linux"
GOPATH="/go:/projects"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/projects/src/github.com/gattytto/gopos-backend/go.mod"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build752016428=/tmp/go-build -gno-record-gcc-switches"
[Info - 6:38:18 PM] 2020/07/11 18:38:18 go/packages.Load
snapshot=0
directory=/projects/src/github.com/gattytto/gopos-backend
query=[./... builtin]
packages=1
[Info - 6:38:19 PM] 2020/07/11 18:38:19 go/packages.Load
snapshot=1
directory=/projects/src/github.com/gattytto/gopos-backend
query=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
packages=0
[Error - 6:38:19 PM] 2020/07/11 18:38:19 failed to compute document links: no PackageHandles
URI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go
[Info - 6:38:19 PM] 2020/07/11 18:38:19 go/packages.Load
snapshot=1
directory=/projects/src/github.com/gattytto/gopos-backend
query=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
packages=0
[Error - 6:38:19 PM] Request textDocument/codeAction failed.
Message: no PackageHandles
Code: 0
[Info - 6:38:19 PM] 2020/07/11 18:38:19 go/packages.Load
snapshot=1
directory=/projects/src/github.com/gattytto/gopos-backend
query=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
packages=0
[Info - 6:38:20 PM] 2020/07/11 18:38:20 go/packages.Load
snapshot=1
directory=/projects/src/github.com/gattytto/gopos-backend
query=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]
packages=0
[Info - 6:38:49 PM] 2020/07/11 18:38:49 background imports cache refresh starting
[Info - 6:38:50 PM] 2020/07/11 18:38:50 background refresh finished after 1.039298434s |
as requested, this is the logs of a non-nightly version of the extension: [Trace - 18:48:47.526 PM] Sending request 'initialize - (0)'.
Params: {"processId":1,"clientInfo":{"name":"vscode","version":"1.44.0"},"rootPath":"/projects/src/github.com/gattytto/gopos-backend","rootUri":"file:///projects/src/github.com/gattytto/gopos-backend","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///projects/src/github.com/gattytto/gopos-backend","name":"gopos-backend"}]}
[Trace - 18:48:47.535 PM] Received response 'initialize - (0)' in 9ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor.extract","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["test","tidy","upgrade_dependency","generate","regenerate_cgo"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"Build info\n----------\ngolang.org/x/tools/gopls master\n golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n golang.org/x/mod@v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=\n golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=\n golang.org/x/tools@v0.0.0-20200711155855-7342f9734a7d h1:F3OmlXCzYtG9YE6tXDnUOlJBzVzHF8EcmZ1yTJlcgIk=\n golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n honnef.co/go/tools@v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version devel +9699086043 Wed Jul 8 19:50:20 2020 +0000 linux/amd64\n\n"}}
[Trace - 18:48:47.538 PM] Sending notification 'initialized'.
Params: {}
[Trace - 18:48:47.551 PM] Received request 'workspace/configuration - (1)'.
Params: {"items":[{"scopeUri":"file:///projects/src/github.com/gattytto/gopos-backend","section":"gopls"},{"scopeUri":"file:///projects/src/github.com/gattytto/gopos-backend","section":"gopls-gopos-backend"}]}
[Trace - 18:48:47.551 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:48:47 Build info\n----------\ngolang.org/x/tools/gopls master\n golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n golang.org/x/mod@v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=\n golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=\n golang.org/x/tools@v0.0.0-20200711155855-7342f9734a7d h1:F3OmlXCzYtG9YE6tXDnUOlJBzVzHF8EcmZ1yTJlcgIk=\n golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n honnef.co/go/tools@v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version devel +9699086043 Wed Jul 8 19:50:20 2020 +0000 linux/amd64\n\n\n"}
[Trace - 18:48:47.555 PM] Sending response 'workspace/configuration - (1)' in 4ms.
Result: [null,null]
[Trace - 18:48:47.629 PM] Received request 'client/registerCapability - (2)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"},{"id":"workspace/didChangeWatchedFiles","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"/projects/src/github.com/gattytto/gopos-backend/**.go","kind":7}]}}]}
[Trace - 18:48:47.631 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:48:47 go env for /projects/src/github.com/gattytto/gopos-backend\n(valid build configuration = true)\n(build flags: [])\nGO111MODULE=\"on\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/.cache\"\nGOENV=\"/home/theia/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOINSECURE=\"\"\nGOMODCACHE=\"/go/pkg/mod\"\nGONOPROXY=\"\"\nGONOSUMDB=\"true\"\nGOOS=\"linux\"\nGOPATH=\"/go:/projects\"\nGOPRIVATE=\"\"\nGOPROXY=\"direct\"\nGOROOT=\"/usr/local/go\"\nGOSUMDB=\"off\"\nGOTMPDIR=\"\"\nGOTOOLDIR=\"/usr/local/go/pkg/tool/linux_amd64\"\nGCCGO=\"gccgo\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\nGOMOD=\"/projects/src/github.com/gattytto/gopos-backend/go.mod\"\nCGO_CFLAGS=\"-g -O2\"\nCGO_CPPFLAGS=\"\"\nCGO_CXXFLAGS=\"-g -O2\"\nCGO_FFLAGS=\"-g -O2\"\nCGO_LDFLAGS=\"-g -O2\"\nPKG_CONFIG=\"pkg-config\"\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build625831874=/tmp/go-build -gno-record-gcc-switches\"\n\n"}
[Trace - 18:48:47.633 PM] Sending response 'client/registerCapability - (2)' in 3ms.
Result:
[Trace - 18:49:06.487 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:06 go/packages.Load\n\tsnapshot=0\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[./... builtin]\n\tpackages=1\n"}
[Trace - 18:49:13.747 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go","languageId":"go","version":1,"text":"package impl\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t. \"github.com/gattytto/libgopos_go/v1alpha1\"\n\t\"log\"\n)\n\n//InventarioServiceGrpcImpl is an implementation of ProductService gRPC Service\ntype InventarioServiceGrpcImpl struct {\n\n}\n\n//NewInventarioServiceGrpcImpl returns the pointer to the implementation.\nfunc NewInventarioServiceGrpcImpl() *InventarioServiceGrpcImpl {\n\treturn &InventarioServiceGrpcImpl{}\n}\n\n// CreateComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) CreateComprobante(ctx context.Context, in *CreateComprobanteRequest) (*CreateComprobanteResponse, error) {\n\tlog.Println(\"Received request for adding comprobante with id \" + fmt.Sprint(in.Comprobante.GetId()))\n\n\tlog.Println(\"Comprobante persisted to storage\")\n\n\treturn &CreateComprobanteResponse{\n\t\tCreatedComprobante: in.Comprobante,\n\t\tError: nil,\n\t}, nil\n\n}\n\n// GetComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) GetComprobante(ctx context.Context, in *GetComprobanteRequest) (*GetComprobanteResponse, error) {\n\tlog.Println(\"Received request for getting Articulo with id \" + fmt.Sprint(in.Id))\n\t\n\t//Logic to persist to database or storage.\n\tlog.Println(\"Articulo returned\")\n\tvar prod Comprobante\n\tprod.Id = 20\n\treturn &GetComprobanteResponse{\n\t\tComprobante:\t&prod,\n\t\tError:\t\tnil,\n\t}, nil\n}\n\n// UpdateComprobante Method def\nfunc (serviceImpl *InventarioServiceGrpcImpl) UpdateComprobante(ctx context.Context, in *UpdateComprobanteRequest) (*UpdateComprobanteResponse, error){\n\tlog.Println(\"Received request for updating comprobante with id \" + fmt.Sprint(in.Comprobante.Id))\n\n\treturn &UpdateComprobanteResponse{\n\t\tUpdatedComprobante: in.Comprobante,\n\t\tError: nil,\n\t}, nil\n}\n\n// DeleteComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) DeleteComprobante(ctx context.Context, in *DeleteComprobanteRequest) (*DeleteComprobanteResponse, error){\n\tlog.Println(\"Received request for deleting product with id \" + fmt.Sprint(in.Id))\n\n\tlog.Println(\"Comprobante was deleted\")\n\n\treturn &DeleteComprobanteResponse{\n\t\tError: nil,\n\t},nil\n\t\n}\n\n// CreateArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) CreateArticulo(ctx context.Context, in *CreateArticuloRequest) (*CreateArticuloResponse, error) {\n\tlog.Println(\"Received request for adding Articulo with id \" + fmt.Sprint(in.Articulo.GetId()))\n\n\tlog.Println(\"Articulo persisted to storage\")\n\n\treturn &CreateArticuloResponse{\n\t\tCreatedArticulo: in.Articulo,\n\t\tError: nil,\n\t}, nil\n\n}\n\n// GetArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) GetArticulo(ctx context.Context, in *GetArticuloRequest) (*GetArticuloResponse, error) {\n\tlog.Println(\"Received request for getting Articulo with id \" + fmt.Sprint(in.Id))\n\t\n\t//Logic to persist to database or storage.\n\tlog.Println(\"Articulo returned\")\n\tvar prod Articulo\n\tprod.Id = 20\n\treturn &GetArticuloResponse{\n\t\tArticulo:\t&prod,\n\t\tError:\t\tnil,\n\t}, nil\n}\n\n// UpdateArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) UpdateArticulo(ctx context.Context, in *UpdateArticuloRequest) (*UpdateArticuloResponse, error){\n\tlog.Println(\"Received request for updating Articulo with id \" + fmt.Sprint(in.Articulo.Id))\n\n\treturn &UpdateArticuloResponse{\n\t\tUpdatedArticulo: in.Articulo,\n\t\tError: nil,\n\t}, nil\n}\n\n// DeleteArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) DeleteArticulo(ctx context.Context, in *DeleteArticuloRequest) (*DeleteArticuloResponse, error){\n\tlog.Println(\"Received request for deleting product with id \" + fmt.Sprint(in.Id))\n\n\tlog.Println(\"Articulo was deleted\")\n\n\treturn &DeleteArticuloResponse{\n\t\tError: nil,\n\t},nil\n\n}\n\n// ListComprobantes function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) ListComprobantes(req *ListComprobantesRequest, stream Inventario_ListComprobantesServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// ListArticulos function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) ListArticulos(req *ListArticulosRequest, stream Inventario_ListArticulosServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// BulkPatchArticulos function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) BulkPatchArticulos(stream Inventario_BulkPatchArticulosServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// BulkPatchComprobantes function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) BulkPatchComprobantes(stream Inventario_BulkPatchComprobantesServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}"}}
[Trace - 18:49:13.756 PM] Sending request 'textDocument/documentLink - (1)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 18:49:13.757 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}
[Trace - 18:49:13.924 PM] Sending request 'textDocument/foldingRange - (3)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 18:49:13.975 PM] Sending request 'textDocument/codeLens - (4)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 18:49:14.387 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:14 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:14.388 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:49:14 failed to compute document links: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go\n"}
[Trace - 18:49:14.390 PM] Received response 'textDocument/documentLink - (1)' in 633ms.
Result: null
[Trace - 18:49:14.410 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:14 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Error - Received] 18:49:15.085 PM #2 no PackageHandles
[Trace - 18:49:15.090 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:15 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:15.093 PM] Received response 'textDocument/foldingRange - (3)' in 1169ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":6,"endCharacter":6,"kind":"imports"},{"startLine":15,"startCharacter":64,"endLine":16,"endCharacter":36},{"startLine":20,"startCharacter":152,"endLine":28,"endCharacter":7},{"startLine":25,"startCharacter":35,"endLine":27,"endCharacter":22},{"startLine":33,"startCharacter":143,"endLine":43,"endCharacter":7},{"startLine":40,"startCharacter":32,"endLine":42,"endCharacter":13},{"startLine":47,"startCharacter":151,"endLine":53,"endCharacter":7},{"startLine":50,"startCharacter":35,"endLine":52,"endCharacter":22},{"startLine":57,"startCharacter":151,"endLine":64,"endCharacter":6},{"startLine":62,"startCharacter":35,"endLine":63,"endCharacter":12},{"startLine":69,"startCharacter":143,"endLine":77,"endCharacter":7},{"startLine":74,"startCharacter":32,"endLine":76,"endCharacter":22},{"startLine":82,"startCharacter":134,"endLine":92,"endCharacter":7},{"startLine":89,"startCharacter":29,"endLine":91,"endCharacter":13},{"startLine":96,"startCharacter":142,"endLine":102,"endCharacter":7},{"startLine":99,"startCharacter":32,"endLine":101,"endCharacter":22},{"startLine":106,"startCharacter":142,"endLine":113,"endCharacter":6},{"startLine":111,"startCharacter":32,"endLine":112,"endCharacter":12},{"startLine":118,"startCharacter":142,"endLine":127,"endCharacter":11},{"startLine":131,"startCharacter":133,"endLine":140,"endCharacter":11},{"startLine":144,"startCharacter":116,"endLine":153,"endCharacter":11},{"startLine":157,"startCharacter":122,"endLine":166,"endCharacter":11}]
[Trace - 18:49:15.097 PM] Received response 'textDocument/codeLens - (4)' in 1121ms.
Result: null
[Trace - 18:49:15.581 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:15 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:17.774 PM] Sending request 'textDocument/hover - (5)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":16,"character":8}}
[Trace - 18:49:17.826 PM] Sending notification '$/cancelRequest'.
Params: {"id":5}
[Error - Received] 18:49:17.833 PM #5 JSON RPC cancelled
[Trace - 18:49:18.069 PM] Sending request 'textDocument/hover - (6)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":15,"character":14}}
[Trace - 18:49:18.316 PM] Sending notification '$/cancelRequest'.
Params: {"id":6}
[Error - Received] 18:49:18.322 PM #6 JSON RPC cancelled
[Trace - 18:49:34.013 PM] Sending request 'textDocument/hover - (7)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":25,"character":16}}
[Trace - 18:49:34.308 PM] Sending notification '$/cancelRequest'.
Params: {"id":7}
[Error - Received] 18:49:34.311 PM #7 JSON RPC cancelled
[Trace - 18:49:35.159 PM] Sending request 'textDocument/hover - (8)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":36,"character":16}}
[Trace - 18:49:35.214 PM] Sending notification '$/cancelRequest'.
Params: {"id":8}
[Error - Received] 18:49:35.235 PM #8 JSON RPC cancelled
[Trace - 18:49:35.459 PM] Sending request 'textDocument/hover - (9)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":37,"character":18}}
[Trace - 18:49:35.629 PM] Sending notification '$/cancelRequest'.
Params: {"id":9}
[Error - Received] 18:49:35.638 PM #9 JSON RPC cancelled
[Trace - 18:49:35.761 PM] Sending request 'textDocument/hover - (10)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":18}}
[Trace - 18:49:36.404 PM] Received response 'textDocument/hover - (10)' in 642ms.
Result: null
[Trace - 18:49:36.404 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:36 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:36.819 PM] Sending request 'textDocument/documentHighlight - (11)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":19}}
[Trace - 18:49:37.052 PM] Sending request 'textDocument/codeAction - (12)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":38,"character":19},"end":{"line":38,"character":19}},"context":{"diagnostics":[]}}
[Trace - 18:49:37.379 PM] Received response 'textDocument/documentHighlight - (11)' in 559ms.
Result: []
[Trace - 18:49:37.382 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:37 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:37.384 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 18:49:37 no highlight: getting file for Highlight: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go\n"}
[Trace - 18:49:37.698 PM] Sending request 'textDocument/hover - (13)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":18}}
[Error - Received] 18:49:37.954 PM #12 no PackageHandles
[Trace - 18:49:37.954 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:37 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:38.418 PM] Received response 'textDocument/hover - (13)' in 720ms.
Result: null
[Trace - 18:49:38.419 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:38 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:40.045 PM] Sending request 'textDocument/hover - (14)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":17}}
[Trace - 18:49:40.493 PM] Received response 'textDocument/hover - (14)' in 448ms.
Result: null
[Trace - 18:49:40.493 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:40 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:41.305 PM] Sending request 'textDocument/hover - (15)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":19}}
[Trace - 18:49:41.789 PM] Received response 'textDocument/hover - (15)' in 484ms.
Result: null
[Trace - 18:49:41.790 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:41 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:43.185 PM] Sending request 'textDocument/hover - (16)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":17}}
[Trace - 18:49:43.653 PM] Received response 'textDocument/hover - (16)' in 467ms.
Result: null
[Trace - 18:49:43.653 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:43 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:44.163 PM] Sending request 'textDocument/hover - (17)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":17}}
[Trace - 18:49:44.392 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:44 background imports cache refresh starting\n"}
[Trace - 18:49:44.670 PM] Received response 'textDocument/hover - (17)' in 507ms.
Result: null
[Trace - 18:49:44.672 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:44 go/packages.Load\n\tsnapshot=1\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 18:49:45.293 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 18:49:45 background refresh finished after 901.62544ms\n"}
[Trace - 18:49:57.412 PM] Sending request 'textDocument/hover - (18)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":46,"character":24}}
[Trace - 18:49:57.449 PM] Sending notification '$/cancelRequest'.
Params: {"id":18}
[Error - Received] 18:49:57.460 PM #18 JSON RPC cancelled
|
and here is 0.15.1 vsix logs: [Trace - 19:07:12.457 PM] Sending request 'initialize - (0)'.
Params: {"processId":1,"clientInfo":{"name":"vscode","version":"1.44.0"},"rootPath":"/projects/src/github.com/gattytto/gopos-backend","rootUri":"file:///projects/src/github.com/gattytto/gopos-backend","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///projects/src/github.com/gattytto/gopos-backend","name":"gopos-backend"}]}
[Trace - 19:07:12.466 PM] Received response 'initialize - (0)' in 8ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor.extract","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["test","tidy","upgrade_dependency","generate","regenerate_cgo"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"Build info\n----------\ngolang.org/x/tools/gopls master\n golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n golang.org/x/mod@v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=\n golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=\n golang.org/x/tools@v0.0.0-20200711155855-7342f9734a7d h1:F3OmlXCzYtG9YE6tXDnUOlJBzVzHF8EcmZ1yTJlcgIk=\n golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n honnef.co/go/tools@v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version devel +9699086043 Wed Jul 8 19:50:20 2020 +0000 linux/amd64\n\n"}}
[Trace - 19:07:12.476 PM] Sending notification 'initialized'.
Params: {}
[Trace - 19:07:12.477 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go","languageId":"go","version":1,"text":"package impl\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t. \"github.com/gattytto/libgopos_go/v1alpha1\"\n\t\"log\"\n)\n\n//InventarioServiceGrpcImpl is an implementation of ProductService gRPC Service\ntype InventarioServiceGrpcImpl struct {\n\n}\n\n//NewInventarioServiceGrpcImpl returns the pointer to the implementation.\nfunc NewInventarioServiceGrpcImpl() *InventarioServiceGrpcImpl {\n\treturn &InventarioServiceGrpcImpl{}\n}\n\n// CreateComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) CreateComprobante(ctx context.Context, in *CreateComprobanteRequest) (*CreateComprobanteResponse, error) {\n\tlog.Println(\"Received request for adding comprobante with id \" + fmt.Sprint(in.Comprobante.GetId()))\n\n\tlog.Println(\"Comprobante persisted to storage\")\n\n\treturn &CreateComprobanteResponse{\n\t\tCreatedComprobante: in.Comprobante,\n\t\tError: nil,\n\t}, nil\n\n}\n\n// GetComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) GetComprobante(ctx context.Context, in *GetComprobanteRequest) (*GetComprobanteResponse, error) {\n\tlog.Println(\"Received request for getting Articulo with id \" + fmt.Sprint(in.Id))\n\t\n\t//Logic to persist to database or storage.\n\tlog.Println(\"Articulo returned\")\n\tvar prod Comprobante\n\tprod.Id = 20\n\treturn &GetComprobanteResponse{\n\t\tComprobante:\t&prod,\n\t\tError:\t\tnil,\n\t}, nil\n}\n\n// UpdateComprobante Method def\nfunc (serviceImpl *InventarioServiceGrpcImpl) UpdateComprobante(ctx context.Context, in *UpdateComprobanteRequest) (*UpdateComprobanteResponse, error){\n\tlog.Println(\"Received request for updating comprobante with id \" + fmt.Sprint(in.Comprobante.Id))\n\n\treturn &UpdateComprobanteResponse{\n\t\tUpdatedComprobante: in.Comprobante,\n\t\tError: nil,\n\t}, nil\n}\n\n// DeleteComprobante function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) DeleteComprobante(ctx context.Context, in *DeleteComprobanteRequest) (*DeleteComprobanteResponse, error){\n\tlog.Println(\"Received request for deleting product with id \" + fmt.Sprint(in.Id))\n\n\tlog.Println(\"Comprobante was deleted\")\n\n\treturn &DeleteComprobanteResponse{\n\t\tError: nil,\n\t},nil\n\t\n}\n\n// CreateArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) CreateArticulo(ctx context.Context, in *CreateArticuloRequest) (*CreateArticuloResponse, error) {\n\tlog.Println(\"Received request for adding Articulo with id \" + fmt.Sprint(in.Articulo.GetId()))\n\n\tlog.Println(\"Articulo persisted to storage\")\n\n\treturn &CreateArticuloResponse{\n\t\tCreatedArticulo: in.Articulo,\n\t\tError: nil,\n\t}, nil\n\n}\n\n// GetArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) GetArticulo(ctx context.Context, in *GetArticuloRequest) (*GetArticuloResponse, error) {\n\tlog.Println(\"Received request for getting Articulo with id \" + fmt.Sprint(in.Id))\n\t\n\t//Logic to persist to database or storage.\n\tlog.Println(\"Articulo returned\")\n\tvar prod Articulo\n\tprod.Id = 20\n\treturn &GetArticuloResponse{\n\t\tArticulo:\t&prod,\n\t\tError:\t\tnil,\n\t}, nil\n}\n\n// UpdateArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) UpdateArticulo(ctx context.Context, in *UpdateArticuloRequest) (*UpdateArticuloResponse, error){\n\tlog.Println(\"Received request for updating Articulo with id \" + fmt.Sprint(in.Articulo.Id))\n\n\treturn &UpdateArticuloResponse{\n\t\tUpdatedArticulo: in.Articulo,\n\t\tError: nil,\n\t}, nil\n}\n\n// DeleteArticulo function implementation of gRPC Service\nfunc (serviceImpl *InventarioServiceGrpcImpl) DeleteArticulo(ctx context.Context, in *DeleteArticuloRequest) (*DeleteArticuloResponse, error){\n\tlog.Println(\"Received request for deleting product with id \" + fmt.Sprint(in.Id))\n\n\tlog.Println(\"Articulo was deleted\")\n\n\treturn &DeleteArticuloResponse{\n\t\tError: nil,\n\t},nil\n\n}\n\n// ListComprobantes function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) ListComprobantes(req *ListComprobantesRequest, stream Inventario_ListComprobantesServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// ListArticulos function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) ListArticulos(req *ListArticulosRequest, stream Inventario_ListArticulosServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// BulkPatchArticulos function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) BulkPatchArticulos(stream Inventario_BulkPatchArticulosServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}\n\n// BulkPatchComprobantes function implementation of gRPC service\nfunc (serviceImpl *InventarioServiceGrpcImpl) BulkPatchComprobantes(stream Inventario_BulkPatchComprobantesServer) error {\n\t/*for _, feature := range s.savedFeatures {\n\t\tif inRange(feature.Location, rect) {\n\t\t\tif err := stream.Send(feature); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}*/\n\t\n\treturn nil\n}"}}
[Trace - 19:07:12.477 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go","languageId":"go","version":1,"text":"package main\n\nimport (\n\t\"fmt\"\n\timpl \"github.com/gattytto/gopos-backend/internal/gRPC/impl\"\n\tinventario \"github.com/gattytto/libgopos_go/v1alpha1\"\n\t\"log\"\n\t\"net\"\n\n\tgrpc \"google.golang.org/grpc\"\n)\n\n//noinspection ALL\nfunc main() {\n\t//netListener := getNetListener(7000)\n\tvar unixListener = getUnixListener(\"/tmp/gopos_backend.sock\")\n\tvar gRPCServer = grpc.NewServer()\n\tvar inventarioServiceImpl = impl.NewInventarioServiceGrpcImpl()\n\tinventario.RegisterInventarioServer(gRPCServer, inventarioServiceImpl)\n\n\tif err := gRPCServer.Serve(unixListener); err != nil {\n\t\tlog.Fatalf(\"failed to serve socket: %s\", err)\n\t}\n\n}\n\nfunc getUnixListener(path string) net.Listener {\n\tlis, err := net.Listen(\"unix\", path)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to listen: %v\", err)\n\t\tpanic(fmt.Sprintf(\"failed to listen: %v\", err))\n\t}\n\treturn lis\n}\n\nfunc getNetListener(port uint) net.Listener {\n lis, err := net.Listen(\"tcp\", fmt.Sprintf(\":%d\", port))\n if err != nil {\n log.Fatalf(\"failed to listen: %v\", err)\n panic(fmt.Sprintf(\"failed to listen: %v\", err))\n }\n\n return lis\n}\n"}}
[Trace - 19:07:12.487 PM] Received request 'workspace/configuration - (1)'.
Params: {"items":[{"scopeUri":"file:///projects/src/github.com/gattytto/gopos-backend","section":"gopls"},{"scopeUri":"file:///projects/src/github.com/gattytto/gopos-backend","section":"gopls-gopos-backend"}]}
[Trace - 19:07:12.487 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:12 Build info\n----------\ngolang.org/x/tools/gopls master\n golang.org/x/tools/gopls@v0.0.0-20200711155855-7342f9734a7d h1:UBt5D6Jj+Rna3ULm+TqX/KVQp1nHRnRy1xT4z4qBudE=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n golang.org/x/mod@v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=\n golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=\n golang.org/x/tools@v0.0.0-20200711155855-7342f9734a7d h1:F3OmlXCzYtG9YE6tXDnUOlJBzVzHF8EcmZ1yTJlcgIk=\n golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n honnef.co/go/tools@v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version devel +9699086043 Wed Jul 8 19:50:20 2020 +0000 linux/amd64\n\n\n"}
[Trace - 19:07:12.489 PM] Sending response 'workspace/configuration - (1)' in 2ms.
Result: [null,null]
[Trace - 19:07:12.539 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:12 go env for /projects/src/github.com/gattytto/gopos-backend\n(valid build configuration = true)\n(build flags: [])\nGO111MODULE=\"on\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/.cache\"\nGOENV=\"/home/theia/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOINSECURE=\"\"\nGOMODCACHE=\"/go/pkg/mod\"\nGONOPROXY=\"\"\nGONOSUMDB=\"true\"\nGOOS=\"linux\"\nGOPATH=\"/go:/projects\"\nGOPRIVATE=\"\"\nGOPROXY=\"direct\"\nGOROOT=\"/usr/local/go\"\nGOSUMDB=\"off\"\nGOTMPDIR=\"\"\nGOTOOLDIR=\"/usr/local/go/pkg/tool/linux_amd64\"\nGCCGO=\"gccgo\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\nGOMOD=\"/projects/src/github.com/gattytto/gopos-backend/go.mod\"\nCGO_CFLAGS=\"-g -O2\"\nCGO_CPPFLAGS=\"\"\nCGO_CXXFLAGS=\"-g -O2\"\nCGO_FFLAGS=\"-g -O2\"\nCGO_LDFLAGS=\"-g -O2\"\nPKG_CONFIG=\"pkg-config\"\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build280503661=/tmp/go-build -gno-record-gcc-switches\"\n\n"}
[Trace - 19:07:12.542 PM] Received request 'client/registerCapability - (2)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"},{"id":"workspace/didChangeWatchedFiles","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"/projects/src/github.com/gattytto/gopos-backend/**.go","kind":7}]}}]}
[Trace - 19:07:12.547 PM] Sending response 'client/registerCapability - (2)' in 4ms.
Result:
[Trace - 19:07:12.749 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":38,"character":18},"end":{"line":38,"character":18}},"context":{"diagnostics":[]}}
[Trace - 19:07:12.749 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"},"range":{"start":{"line":5,"character":6},"end":{"line":5,"character":6}},"context":{"diagnostics":[]}}
[Trace - 19:07:12.750 PM] Sending request 'textDocument/documentLink - (3)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 19:07:12.750 PM] Sending request 'textDocument/documentLink - (4)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Trace - 19:07:12.778 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:12 go/packages.Load\n\tsnapshot=0\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[./... builtin]\n\tpackages=1\n"}
[Trace - 19:07:13.024 PM] Sending request 'textDocument/foldingRange - (5)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 19:07:13.025 PM] Sending request 'textDocument/foldingRange - (6)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Trace - 19:07:13.029 PM] Sending request 'textDocument/codeLens - (7)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 19:07:13.031 PM] Sending request 'textDocument/codeLens - (8)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Trace - 19:07:13.442 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:13 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Error - Received] 19:07:13.443 PM #1 no PackageHandles
[Trace - 19:07:13.631 PM] Sending notification '$/cancelRequest'.
Params: {"id":5}
[Trace - 19:07:13.632 PM] Sending notification '$/cancelRequest'.
Params: {"id":6}
[Trace - 19:07:13.831 PM] Sending request 'textDocument/foldingRange - (9)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"}}
[Trace - 19:07:13.838 PM] Sending request 'textDocument/foldingRange - (10)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go"}}
[Error - Received] 19:07:14.007 PM #2 no PackageHandles
[Trace - 19:07:14.008 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:14 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go]\n\tpackages=0\n"}
[Trace - 19:07:14.412 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:14 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:14.702 PM] Received response 'textDocument/documentLink - (3)' in 1952ms.
Result: null
[Trace - 19:07:14.703 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:14 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:14.704 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 19:07:14 failed to compute document links: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go\n"}
[Trace - 19:07:15.339 PM] Received response 'textDocument/documentLink - (4)' in 2589ms.
Result: null
[Trace - 19:07:15.341 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:15 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go]\n\tpackages=0\n"}
[Trace - 19:07:15.342 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 19:07:15 failed to compute document links: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go\n"}
[Error - Received] 19:07:15.343 PM #5 JSON RPC cancelled
[Error - Received] 19:07:15.343 PM #6 JSON RPC cancelled
[Trace - 19:07:15.344 PM] Received response 'textDocument/codeLens - (7)' in 2314ms.
Result: null
[Trace - 19:07:15.344 PM] Received response 'textDocument/codeLens - (8)' in 2312ms.
Result: null
[Trace - 19:07:15.344 PM] Received response 'textDocument/foldingRange - (9)' in 1513ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":6,"endCharacter":6,"kind":"imports"},{"startLine":15,"startCharacter":64,"endLine":16,"endCharacter":36},{"startLine":20,"startCharacter":152,"endLine":28,"endCharacter":7},{"startLine":25,"startCharacter":35,"endLine":27,"endCharacter":22},{"startLine":33,"startCharacter":143,"endLine":43,"endCharacter":7},{"startLine":40,"startCharacter":32,"endLine":42,"endCharacter":13},{"startLine":47,"startCharacter":151,"endLine":53,"endCharacter":7},{"startLine":50,"startCharacter":35,"endLine":52,"endCharacter":22},{"startLine":57,"startCharacter":151,"endLine":64,"endCharacter":6},{"startLine":62,"startCharacter":35,"endLine":63,"endCharacter":12},{"startLine":69,"startCharacter":143,"endLine":77,"endCharacter":7},{"startLine":74,"startCharacter":32,"endLine":76,"endCharacter":22},{"startLine":82,"startCharacter":134,"endLine":92,"endCharacter":7},{"startLine":89,"startCharacter":29,"endLine":91,"endCharacter":13},{"startLine":96,"startCharacter":142,"endLine":102,"endCharacter":7},{"startLine":99,"startCharacter":32,"endLine":101,"endCharacter":22},{"startLine":106,"startCharacter":142,"endLine":113,"endCharacter":6},{"startLine":111,"startCharacter":32,"endLine":112,"endCharacter":12},{"startLine":118,"startCharacter":142,"endLine":127,"endCharacter":11},{"startLine":131,"startCharacter":133,"endLine":140,"endCharacter":11},{"startLine":144,"startCharacter":116,"endLine":153,"endCharacter":11},{"startLine":157,"startCharacter":122,"endLine":166,"endCharacter":11}]
[Trace - 19:07:15.345 PM] Received response 'textDocument/foldingRange - (10)' in 1506ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":9,"endCharacter":30,"kind":"imports"},{"startLine":13,"startCharacter":13,"endLine":22,"endCharacter":2},{"startLine":20,"startCharacter":55,"endLine":21,"endCharacter":47},{"startLine":26,"startCharacter":48,"endLine":32,"endCharacter":11},{"startLine":28,"startCharacter":16,"endLine":30,"endCharacter":49},{"startLine":35,"startCharacter":45,"endLine":42,"endCharacter":14},{"startLine":37,"startCharacter":19,"endLine":39,"endCharacter":55}]
[Trace - 19:07:15.679 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:15 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/cmd/gRPC/server/server.go file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:28.226 PM] Sending request 'textDocument/hover - (11)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":26,"character":4}}
[Trace - 19:07:28.716 PM] Received response 'textDocument/hover - (11)' in 490ms.
Result: null
[Trace - 19:07:28.717 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:28 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:31.179 PM] Sending request 'textDocument/hover - (12)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":21}}
[Trace - 19:07:31.592 PM] Received response 'textDocument/hover - (12)' in 412ms.
Result: null
[Trace - 19:07:31.592 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:31 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:32.007 PM] Sending request 'textDocument/hover - (13)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":19}}
[Trace - 19:07:32.414 PM] Received response 'textDocument/hover - (13)' in 407ms.
Result: null
[Trace - 19:07:32.415 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:32 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:42.785 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:42 background imports cache refresh starting\n"}
[Trace - 19:07:42.984 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:42 background refresh finished after 199.335865ms\n"}
[Trace - 19:07:45.341 PM] Sending request 'textDocument/hover - (14)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":18}}
[Trace - 19:07:45.754 PM] Received response 'textDocument/hover - (14)' in 413ms.
Result: null
[Trace - 19:07:45.755 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:45 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:47.466 PM] Sending request 'textDocument/codeAction - (15)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":33,"character":18},"end":{"line":33,"character":18}},"context":{"diagnostics":[]}}
[Error - Received] 19:07:47.867 PM #15 no PackageHandles
[Trace - 19:07:47.867 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:47 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:48.056 PM] Sending request 'textDocument/hover - (16)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":17}}
[Trace - 19:07:48.486 PM] Received response 'textDocument/hover - (16)' in 429ms.
Result: null
[Trace - 19:07:48.486 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:48 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:50.363 PM] Sending request 'textDocument/documentHighlight - (17)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":17}}
[Trace - 19:07:50.612 PM] Sending request 'textDocument/codeAction - (18)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"range":{"start":{"line":38,"character":17},"end":{"line":38,"character":17}},"context":{"diagnostics":[]}}
[Trace - 19:07:50.637 PM] Sending request 'textDocument/hover - (19)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":38,"character":17}}
[Trace - 19:07:50.771 PM] Received response 'textDocument/documentHighlight - (17)' in 408ms.
Result: []
[Trace - 19:07:50.772 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:50 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:50.772 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/07/11 19:07:50 no highlight: getting file for Highlight: no PackageHandles\n\tURI=file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go\n"}
[Error - Received] 19:07:51.236 PM #18 no PackageHandles
[Trace - 19:07:51.237 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:51 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:51.411 PM] Sending notification '$/cancelRequest'.
Params: {"id":19}
[Error - Received] 19:07:51.415 PM #19 JSON RPC cancelled
[Trace - 19:07:51.653 PM] Sending request 'textDocument/hover - (20)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":37,"character":21}}
[Trace - 19:07:51.704 PM] Sending notification '$/cancelRequest'.
Params: {"id":20}
[Error - Received] 19:07:51.713 PM #20 JSON RPC cancelled
[Trace - 19:07:52.828 PM] Sending request 'textDocument/hover - (21)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":37,"character":17}}
[Trace - 19:07:53.248 PM] Received response 'textDocument/hover - (21)' in 420ms.
Result: null
[Trace - 19:07:53.249 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/11 19:07:53 go/packages.Load\n\tsnapshot=2\n\tdirectory=/projects/src/github.com/gattytto/gopos-backend\n\tquery=[file=/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go]\n\tpackages=0\n"}
[Trace - 19:07:53.778 PM] Sending request 'textDocument/hover - (22)'.
Params: {"textDocument":{"uri":"file:///projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go"},"position":{"line":25,"character":17}}
[Trace - 19:07:53.834 PM] Sending notification '$/cancelRequest'.
Params: {"id":22}
[Error - Received] 19:07:53.838 PM #22 JSON RPC cancelled
|
Can you please share the output of the two The two commands to try are:
and
|
difference between commands is: "Dir": "/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl",
"ImportPath": "command-line-arguments",
"Name": "impl", output2: "Dir": "/projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl",
"ImportPath": "github.com/gattytto/gopos-backend/internal/gRPC/impl",
"Name": "impl",
"Target": "/projects/pkg/linux_amd64/github.com/gattytto/gopos-backend/internal/gRPC/impl.a",
"Root": "/projects", |
the imports command also does something like: GOROOT=/usr/local/go GOPATH=/go:/projects GO111MODULE=on GOPROXY=direct PWD=/projects/src/github.com/gattytto/gopos-backend go [go list -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.487939500.mod -e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.0056200e60327dba367b3e7ee1d4a57792113fa2.487939500.mod -- /projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl and then: gopls: /projects/src/github.com/gattytto/gopos-backend/internal/gRPC/impl/inventarioServiceGrpcImpl.go: no PackageHandles |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?x64 cri-o runc rootless container (Dockerfile, YAML with ENV vars) in lxc in debian (PVE 5.4.41-1)
go env
OutputWhat did you do?
setup eclipse che nightly in minikube inside a LXC container over ZFS, prepare a golang sidecar and follow the eclipse recipe to add a ms-vscode extension to che-plugin-registry.
right click an object in a go file and go to "peek" menu, then click "Peek Definition"
What did you expect to see?
"PEEK DEFINITION" popup showing the source file around the definition of an object.
What did you see instead?
"no definition for " notificaiton
verbose logs around gopls@0.4.3 using golang@lmaster:
OutputThe text was updated successfully, but these errors were encountered: