Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

x/tools/gopls: add a regression test for adding a new function to a replace target #40712

Open
segevfiner opened this issue Aug 12, 2020 · 8 comments

Comments

@segevfiner
Copy link
Contributor

@segevfiner segevfiner commented Aug 12, 2020

What version of Go are you using (go version)?

$ go version
go version go1.14.7 darwin/amd64
# gopls version
golang.org/x/tools/gopls 0.4.4
    golang.org/x/tools/gopls@v0.4.4 h1:8djGYsaZ0ByP0vaXg4T+mnyfDcHpWKSZ+tpQSGv9ahk=

VS Code version v1.47.3
vscode-go v0.16.1

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/segev/Library/Caches/go-build"
GOENV="/Users/segev/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/segev/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.7/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.7/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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=/var/folders/b_/c6yh0ksn63d1yy192x2p9f4c0000gn/T/go-build425202633=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

  1. Create two new packages using Go modules:
    mkdir foo && cd foo
    go mod init github.com/segevfiner/foo
    cd ..
    mkdir bar && cd bar
    go mod init github.com/segevfiner/bar
    cd ..
  2. Open VS Code with vscode-go installed and gopls enabled: code foo bar
  3. Add replace github.com/segevfiner/bar => ../bar to module foo's go.mod.
  4. Add to module foo as main.go:
    package main
    
    func main() {
    
    }
  5. Add to module bar as bar1.go:
    package bar
    
    func Bar1() {
    
    }
  6. Try to add foo.Bar1() to foo's main.go, it would work and also auto complete it. (Might need to manually add the import statement)
  7. Add to module bar as bar2.go:
    package bar
    
    func Bar2() {
    
    }
  8. Try to add foo.Bar2() to foo's main.go, it would not autocomplete and will fail to compile until you restart the language server.

What did you expect to see?

Adding new files to replaced packages should work seamlessly, auto-completing, compiling correctly, without requiring a restart of the language server.

What did you see instead?

It fails to auto-complete, compile etc. (While working correctly with go build) until you restart the language server.

@gopherbot gopherbot added this to the Unreleased milestone Aug 12, 2020
@stamblerre stamblerre changed the title x/tools/gopls: Doesn't index new files added to a package used via modules replace after first indexing it x/tools/gopls: watch replace targets Aug 12, 2020
@stamblerre stamblerre modified the milestones: Unreleased, gopls/v1.0.0 Aug 12, 2020
@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Aug 12, 2020

This is actually a known issue which should be resolved at master (https://golang.org/cl/245327).
If you're interested, you can give it a try by downloading master (GO111MODULE=on go get golang.org/x/tools/gopls@master golang.org/x/tools@master).

@segevfiner
Copy link
Contributor Author

@segevfiner segevfiner commented Aug 12, 2020

Trying with (Installed using the provided command):

golang.org/x/tools/gopls master
    golang.org/x/tools/gopls@v0.0.0-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=

It's even worse, it's now not finding the module replaced module at all, complaining with:

could not import github.com/segevfiner/bar (no package for import github.com/segevfiner/bar)

While go build works correctly.

gopls -rpc.trace -v check foo.go
2020/08/12 18:46:50 Info:2020/08/12 18:46:50 Build info----------
golang.org/x/tools/gopls master
    golang.org/x/tools/gopls@v0.0.0-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
    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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=
    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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=
    mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=

Go info

go version go1.14.7 darwin/amd64

2020/08/12 18:46:50 Info:2020/08/12 18:46:50 go env for /Users/segev/junk/gopls-issue2/foo
(root /Users/segev/junk/gopls-issue2/foo)
(valid build configuration = true)
(build flags: [])
GOMOD=/Users/segev/junk/gopls-issue2/foo/go.mod
GONOPROXY=github.com/OceanCodes
GOPRIVATE=github.com/OceanCodes
GOPROXY=https://proxy.golang.org,direct
GOROOT=/usr/local/Cellar/go/1.14.7/libexec
GO111MODULE=
GOMODCACHE=
GOFLAGS=
GOSUMDB=sum.golang.org
GOCACHE=/Users/segev/Library/Caches/go-build
GONOSUMDB=github.com/OceanCodes
GOPATH=/Users/segev/go
GOINSECURE=

2020/08/12 18:46:50 Info:2020/08/12 18:46:50 go/packages.Load
snapshot=0
directory=/Users/segev/junk/gopls-issue2/foo
query=[./... builtin]
packages=2

Log
[Trace - 18:52:57.669 PM] Sending request 'initialize - (0)'.
Params: {"processId":75662,"clientInfo":{"name":"vscode","version":"1.47.3"},"rootPath":"/Users/segev/junk/gopls-issue2","rootUri":"file:///Users/segev/junk/gopls-issue2","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:///Users/segev/junk/gopls-issue2","name":"gopls-issue2"}]}

[Trace - 18:52:57.685 PM] Received response 'initialize - (0)' in 16ms.
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":["generate","fill_struct","regenerate_cgo","test","tidy","undeclared_name","upgrade_dependency","vendor","extract_variable","extract_function","gc_details"]},"callHierarchyProvider":true,"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-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=\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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=\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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version go1.14.7 darwin/amd64\n\n"}}

[Trace - 18:52:57.718 PM] Sending notification 'initialized'.
Params: {}

[Trace - 18:52:57.719 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","languageId":"go","version":1,"text":"package main\n\nimport "github.com/segevfiner/bar"\n\nfunc main() {\n\tbar.Bar1()\n\tbar.Bar2()\n}\n"}}

[Trace - 18:52:57.738 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:57 Build info\n----------\ngolang.org/x/tools/gopls master\n golang.org/x/tools/gopls@v0.0.0-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=\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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=\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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version go1.14.7 darwin/amd64\n\n\n"}

[Trace - 18:52:57.739 PM] Received request 'workspace/configuration - (1)'.
Params: {"items":[{"scopeUri":"file:///Users/segev/junk/gopls-issue2","section":"gopls"},{"scopeUri":"file:///Users/segev/junk/gopls-issue2","section":"gopls-gopls-issue2"}]}

[Info - 6:52:57 PM] 2020/08/12 18:52:57 Build info

golang.org/x/tools/gopls master
golang.org/x/tools/gopls@v0.0.0-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=
github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=
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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=
mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=

Go info

go version go1.14.7 darwin/amd64

[Trace - 18:52:57.768 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:57.768 PM] Sending request 'textDocument/documentLink - (2)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:57.794 PM] Sending response 'workspace/configuration - (1)' in 54ms.
Result: [null,null]

[Trace - 18:52:57.820 PM] Sending notification '$/cancelRequest'.
Params: {"id":1}

[Trace - 18:52:57.820 PM] Sending request 'textDocument/documentSymbol - (3)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:57.836 PM] Received request 'client/registerCapability - (2)'.
Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"file:///Users/segev/junk/gopls-issue2/**/*.{go,mod,sum}","kind":7}]}}]}

[Trace - 18:52:57.836 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:57 go env for /Users/segev/junk/gopls-issue2\n(root /Users/segev/junk/gopls-issue2)\n(valid build configuration = false)\n(build flags: [])\nGOFLAGS=\nGOINSECURE=\nGOPRIVATE=github.com/OceanCodes\nGOCACHE=/Users/segev/Library/Caches/go-build\nGOROOT=/usr/local/Cellar/go/1.14.7/libexec\nGO111MODULE=\nGOMODCACHE=\nGONOPROXY=github.com/OceanCodes\nGOMOD=\nGOPROXY=https://proxy.golang.org,direct\nGONOSUMDB=github.com/OceanCodes\nGOPATH=/Users/segev/go\nGOSUMDB=sum.golang.org\n\n"}

[Trace - 18:52:57.877 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:57 go/packages.Load\n\tsnapshot=0\n\tdirectory=/Users/segev/junk/gopls-issue2\n\tquery=[./ builtin]\n\tpackages=2\n"}

[Trace - 18:52:57.917 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:57 go/packages.Load\n\tsnapshot=0\n\tdirectory=/Users/segev/junk/gopls-issue2\n\tquery=[./]\n\tpackages=1\n"}

[Trace - 18:52:57.969 PM] Sending response 'client/registerCapability - (2)' in 132ms.
Result:

[Trace - 18:52:57.969 PM] Received request 'client/registerCapability - (3)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}

[Info - 6:52:57 PM] 2020/08/12 18:52:57 go env for /Users/segev/junk/gopls-issue2
(root /Users/segev/junk/gopls-issue2)
(valid build configuration = false)
(build flags: [])
GOFLAGS=
GOINSECURE=
GOPRIVATE=github.com/OceanCodes
GOCACHE=/Users/segev/Library/Caches/go-build
GOROOT=/usr/local/Cellar/go/1.14.7/libexec
GO111MODULE=
GOMODCACHE=
GONOPROXY=github.com/OceanCodes
GOMOD=
GOPROXY=https://proxy.golang.org,direct
GONOSUMDB=github.com/OceanCodes
GOPATH=/Users/segev/go
GOSUMDB=sum.golang.org

[Trace - 18:52:57.972 PM] Sending notification '$/cancelRequest'.
Params: {"id":3}

[Trace - 18:52:57.972 PM] Sending request 'textDocument/documentSymbol - (4)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:57.973 PM] Sending request 'textDocument/foldingRange - (5)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Info - 6:52:57 PM] 2020/08/12 18:52:57 go/packages.Load
snapshot=0
directory=/Users/segev/junk/gopls-issue2
query=[./ builtin]
packages=2

[Info - 6:52:57 PM] 2020/08/12 18:52:57 go/packages.Load
snapshot=0
directory=/Users/segev/junk/gopls-issue2
query=[./]
packages=1

[Trace - 18:52:57.987 PM] Sending response 'client/registerCapability - (3)' in 17ms.
Result:

[Error - Received] 18:52:57.988 PM #1 JSON RPC cancelled

[Trace - 18:52:58.007 PM] Sending request 'textDocument/codeLens - (6)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:58.041 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:58 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2\n\tquery=[./]\n\tpackages=1\n"}

[Info - 6:52:58 PM] 2020/08/12 18:52:58 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2
query=[./]
packages=1

[Trace - 18:52:58.167 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:58 go/packages.Load\n\tsnapshot=1\n\tpackage_path="command-line-arguments"\n\tfiles=[/Users/segev/junk/gopls-issue2/foo/main.go]\n"}

[Trace - 18:52:58.167 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:58 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2\n\tquery=[file=/Users/segev/junk/gopls-issue2/foo/main.go]\n\tpackages=1\n"}

[Info - 6:52:58 PM] 2020/08/12 18:52:58 go/packages.Load
snapshot=1
package_path="command-line-arguments"
files=[/Users/segev/junk/gopls-issue2/foo/main.go]

[Trace - 18:52:58.167 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 18:52:58 no dep handle: no metadata for github.com/segevfiner/bar\n\tpackage="github.com/segevfiner/bar"\n"}

[Info - 6:52:58 PM] 2020/08/12 18:52:58 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2
query=[file=/Users/segev/junk/gopls-issue2/foo/main.go]
packages=1

[Error - 6:52:58 PM] 2020/08/12 18:52:58 no dep handle: no metadata for github.com/segevfiner/bar
package="github.com/segevfiner/bar"

[Trace - 18:52:58.168 PM] Received response 'textDocument/documentLink - (2)' in 399ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar"}]

[Error - Received] 18:52:58.168 PM #3 JSON RPC cancelled

[Trace - 18:52:58.169 PM] Received response 'textDocument/documentSymbol - (4)' in 196ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":7,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 18:52:58.169 PM] Received response 'textDocument/foldingRange - (5)' in 195ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":11}]

[Trace - 18:52:58.169 PM] Received response 'textDocument/codeLens - (6)' in 161ms.
Result: null

[Trace - 18:52:58.206 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:58 go/packages.Load\n\tsnapshot=1\n\tpackage_path="command-line-arguments"\n\tfiles=[/Users/segev/junk/gopls-issue2/foo/main.go]\n"}

[Trace - 18:52:58.206 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 18:52:58 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2\n\tquery=[file=/Users/segev/junk/gopls-issue2/foo/main.go]\n\tpackages=1\n"}

[Trace - 18:52:58.207 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":1,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":34}},"severity":1,"source":"compiler","message":"could not import github.com/segevfiner/bar (no package for import github.com/segevfiner/bar)"}]}

[Info - 6:52:58 PM] 2020/08/12 18:52:58 go/packages.Load
snapshot=1
package_path="command-line-arguments"
files=[/Users/segev/junk/gopls-issue2/foo/main.go]

[Info - 6:52:58 PM] 2020/08/12 18:52:58 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2
query=[file=/Users/segev/junk/gopls-issue2/foo/main.go]
packages=1

[Trace - 18:52:59.448 PM] Sending request 'textDocument/documentSymbol - (7)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:59.448 PM] Received response 'textDocument/documentSymbol - (7)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":7,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 18:52:59.495 PM] Sending request 'textDocument/documentLink - (8)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:59.495 PM] Received response 'textDocument/documentLink - (8)' in 0ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar"}]

[Trace - 18:52:59.701 PM] Sending request 'textDocument/codeLens - (9)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:59.701 PM] Received response 'textDocument/codeLens - (9)' in 0ms.
Result: null

[Trace - 18:52:59.703 PM] Sending request 'textDocument/codeLens - (10)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:59.703 PM] Received response 'textDocument/codeLens - (10)' in 0ms.
Result: null

[Trace - 18:52:59.707 PM] Sending request 'textDocument/codeLens - (11)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 18:52:59.707 PM] Received response 'textDocument/codeLens - (11)' in 0ms.
Result: null

@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Aug 12, 2020

It looks like you're opening the /Users/segev/junk/gopls-issue2 folder as your workspace root, but the go.mod file is contained in /Users/segev/junk/gopls-issue2/foo. gopls at master still expects your module root to be the root of the workspace.

@segevfiner
Copy link
Contributor Author

@segevfiner segevfiner commented Aug 12, 2020

Oh wait... Dammit... VS Code opened the folder instead of the workspace file in it... (Maybe I forgot to save the workspace file)

It looks like the original problem still persists now that I opened the project under a workspace correctly.

Log
[Trace - 19:14:02.104 PM] Sending request 'initialize - (0)'.
Params: {"processId":76458,"clientInfo":{"name":"vscode","version":"1.47.3"},"rootPath":"/Users/segev/junk/gopls-issue2/foo","rootUri":"file:///Users/segev/junk/gopls-issue2/foo","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:///Users/segev/junk/gopls-issue2/foo","name":"foo"},{"uri":"file:///Users/segev/junk/gopls-issue2/bar","name":"bar"}]}

[Trace - 19:14:02.124 PM] Received response 'initialize - (0)' in 20ms.
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":["generate","fill_struct","regenerate_cgo","test","tidy","undeclared_name","upgrade_dependency","vendor","extract_variable","extract_function","gc_details"]},"callHierarchyProvider":true,"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-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=\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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=\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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version go1.14.7 darwin/amd64\n\n"}}

[Trace - 19:14:02.146 PM] Sending notification 'initialized'.
Params: {}

[Trace - 19:14:02.146 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","languageId":"go","version":1,"text":"package main\n\nimport "github.com/segevfiner/bar"\n\nfunc main() {\n\tbar.Bar1()\n\tbar.Bar2()\n}\n"}}

[Trace - 19:14:02.162 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:02 Build info\n----------\ngolang.org/x/tools/gopls master\n golang.org/x/tools/gopls@v0.0.0-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=\n github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=\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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=\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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=\n mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=\n\nGo info\n-------\ngo version go1.14.7 darwin/amd64\n\n\n"}

[Trace - 19:14:02.162 PM] Received request 'workspace/configuration - (1)'.
Params: {"items":[{"scopeUri":"file:///Users/segev/junk/gopls-issue2/foo","section":"gopls"},{"scopeUri":"file:///Users/segev/junk/gopls-issue2/foo","section":"gopls-foo"}]}

[Info - 7:14:02 PM] 2020/08/12 19:14:02 Build info

golang.org/x/tools/gopls master
golang.org/x/tools/gopls@v0.0.0-20200811215021-48a8ffc5b207 h1:mOy1nNJGN9EIh6lz32XSu+nRN/eQCz6pUy3bNyvpGBc=
github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/google/go-cmp@v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
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-20200811215021-48a8ffc5b207 h1:8Kg+JssU1jBZs8GIrL5pl4nVyaqyyhdmHAR4D1zGErg=
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/gofumpt@v0.0.0-20200709182408-4fd085cb6d5f h1:gi7cb8HTDZ6q8VqsUpkdoFi3vxwHMneQ6+Q5Ap5hjPE=
mvdan.cc/xurls/v2@v2.2.0 h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A=

Go info

go version go1.14.7 darwin/amd64

[Trace - 19:14:02.173 PM] Sending response 'workspace/configuration - (1)' in 10ms.
Result: [null,null]

[Trace - 19:14:02.273 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///Users/segev/junk/gopls-issue2/bar","section":"gopls"},{"scopeUri":"file:///Users/segev/junk/gopls-issue2/bar","section":"gopls-bar"}]}

[Trace - 19:14:02.274 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:02 go env for /Users/segev/junk/gopls-issue2/foo\n(root /Users/segev/junk/gopls-issue2/foo)\n(valid build configuration = true)\n(build flags: [])\nGOINSECURE=\nGOPRIVATE=github.com/OceanCodes\nGOFLAGS=\nGOMOD=/Users/segev/junk/gopls-issue2/foo/go.mod\nGONOPROXY=github.com/OceanCodes\nGO111MODULE=\nGOMODCACHE=\nGONOSUMDB=github.com/OceanCodes\nGOPATH=/Users/segev/go\nGOCACHE=/Users/segev/Library/Caches/go-build\nGOPROXY=https://proxy.golang.org,direct\nGOROOT=/usr/local/Cellar/go/1.14.7/libexec\nGOSUMDB=sum.golang.org\n\n"}

[Trace - 19:14:02.369 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:02.370 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":1}},"context":{"diagnostics":[]}}

[Trace - 19:14:02.370 PM] Sending request 'textDocument/documentLink - (3)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:02.373 PM] Sending notification '$/cancelRequest'.
Params: {"id":1}

[Trace - 19:14:02.373 PM] Sending request 'textDocument/documentSymbol - (4)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:02.379 PM] Sending response 'workspace/configuration - (2)' in 105ms.
Result: [null,null]

[Info - 7:14:02 PM] 2020/08/12 19:14:02 go env for /Users/segev/junk/gopls-issue2/foo
(root /Users/segev/junk/gopls-issue2/foo)
(valid build configuration = true)
(build flags: [])
GOINSECURE=
GOPRIVATE=github.com/OceanCodes
GOFLAGS=
GOMOD=/Users/segev/junk/gopls-issue2/foo/go.mod
GONOPROXY=github.com/OceanCodes
GO111MODULE=
GOMODCACHE=
GONOSUMDB=github.com/OceanCodes
GOPATH=/Users/segev/go
GOCACHE=/Users/segev/Library/Caches/go-build
GOPROXY=https://proxy.golang.org,direct
GOROOT=/usr/local/Cellar/go/1.14.7/libexec
GOSUMDB=sum.golang.org

[Trace - 19:14:02.405 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:02 go/packages.Load\n\tsnapshot=0\n\tdirectory=/Users/segev/junk/gopls-issue2/foo\n\tquery=[./... builtin]\n\tpackages=2\n"}

[Info - 7:14:02 PM] 2020/08/12 19:14:02 go/packages.Load
snapshot=0
directory=/Users/segev/junk/gopls-issue2/foo
query=[./... builtin]
packages=2

[Trace - 19:14:02.453 PM] Received request 'client/registerCapability - (3)'.
Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"file:///Users/segev/junk/gopls-issue2/foo//*.{go,mod,sum}","kind":7},{"globPattern":"file:///Users/segev/junk/gopls-issue2/bar//*.{go,mod,sum}","kind":7}]}}]}

[Trace - 19:14:02.453 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:02 go env for /Users/segev/junk/gopls-issue2/bar\n(root /Users/segev/junk/gopls-issue2/bar)\n(valid build configuration = true)\n(build flags: [])\nGOPATH=/Users/segev/go\nGOINSECURE=\nGOMODCACHE=\nGONOPROXY=github.com/OceanCodes\nGONOSUMDB=github.com/OceanCodes\nGOROOT=/usr/local/Cellar/go/1.14.7/libexec\nGOSUMDB=sum.golang.org\nGOCACHE=/Users/segev/Library/Caches/go-build\nGOPRIVATE=github.com/OceanCodes\nGOPROXY=https://proxy.golang.org,direct\nGO111MODULE=\nGOMOD=/Users/segev/junk/gopls-issue2/bar/go.mod\nGOFLAGS=\n\n"}

[Info - 7:14:02 PM] 2020/08/12 19:14:02 go env for /Users/segev/junk/gopls-issue2/bar
(root /Users/segev/junk/gopls-issue2/bar)
(valid build configuration = true)
(build flags: [])
GOPATH=/Users/segev/go
GOINSECURE=
GOMODCACHE=
GONOPROXY=github.com/OceanCodes
GONOSUMDB=github.com/OceanCodes
GOROOT=/usr/local/Cellar/go/1.14.7/libexec
GOSUMDB=sum.golang.org
GOCACHE=/Users/segev/Library/Caches/go-build
GOPRIVATE=github.com/OceanCodes
GOPROXY=https://proxy.golang.org,direct
GO111MODULE=
GOMOD=/Users/segev/junk/gopls-issue2/bar/go.mod
GOFLAGS=

[Trace - 19:14:02.456 PM] Sending response 'client/registerCapability - (3)' in 2ms.
Result:

[Trace - 19:14:02.460 PM] Received request 'client/registerCapability - (4)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}

[Trace - 19:14:02.464 PM] Sending response 'client/registerCapability - (4)' in 3ms.
Result:

[Error - Received] 19:14:02.464 PM #1 JSON RPC cancelled

[Trace - 19:14:02.466 PM] Received response 'textDocument/codeAction - (2)' in 96ms.
Result: null

[Trace - 19:14:02.466 PM] Received response 'textDocument/documentLink - (3)' in 95ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar@v0.0.0-00010101000000-000000000000"}]

[Trace - 19:14:02.466 PM] Received response 'textDocument/documentSymbol - (4)' in 93ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":7,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:02.481 PM] Sending request 'textDocument/foldingRange - (5)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:02.482 PM] Received response 'textDocument/foldingRange - (5)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":11}]

[Trace - 19:14:02.496 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:02 go/packages.Load\n\tsnapshot=0\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[./... builtin]\n\tpackages=2\n"}

[Info - 7:14:02 PM] 2020/08/12 19:14:02 go/packages.Load
snapshot=0
directory=/Users/segev/junk/gopls-issue2/bar
query=[./... builtin]
packages=2

[Trace - 19:14:02.516 PM] Sending request 'textDocument/codeLens - (6)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:02.516 PM] Received response 'textDocument/codeLens - (6)' in 0ms.
Result: null

[Trace - 19:14:03.237 PM] Sending request 'textDocument/codeAction - (7)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":1}},"context":{"diagnostics":[]}}

[Trace - 19:14:03.237 PM] Received response 'textDocument/codeAction - (7)' in 0ms.
Result: null

[Trace - 19:14:03.831 PM] Sending request 'textDocument/documentSymbol - (8)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:03.832 PM] Received response 'textDocument/documentSymbol - (8)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":7,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:03.887 PM] Sending request 'textDocument/documentLink - (9)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:03.887 PM] Received response 'textDocument/documentLink - (9)' in 0ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar@v0.0.0-00010101000000-000000000000"}]

[Trace - 19:14:04.091 PM] Sending request 'textDocument/codeLens - (10)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:04.092 PM] Received response 'textDocument/codeLens - (10)' in 0ms.
Result: null

[Trace - 19:14:04.093 PM] Sending request 'textDocument/codeLens - (11)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:04.094 PM] Received response 'textDocument/codeLens - (11)' in 0ms.
Result: null

[Trace - 19:14:04.095 PM] Sending request 'textDocument/codeLens - (12)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:04.095 PM] Received response 'textDocument/codeLens - (12)' in 0ms.
Result: null

[Trace - 19:14:06.472 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","languageId":"go","version":1,"text":""}}

[Trace - 19:14:06.472 PM] Sending request 'textDocument/documentLink - (13)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:06.474 PM] Sending request 'textDocument/documentSymbol - (14)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:06.516 PM] Received response 'textDocument/documentLink - (13)' in 43ms.
Result: null

[Trace - 19:14:06.516 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:06 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[github.com/segevfiner/bar]\n\tpackages=1\n"}

[Trace - 19:14:06.516 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:06 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:06.516 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:06 failed to compute document links: \u003cnil\u003e: packages.Load error\n\tURI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go\n"}

[Trace - 19:14:06.516 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:06 go/packages.Load\n\tsnapshot=1\n\tpackage_path="github.com/segevfiner/bar"\n\tfiles=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go]\n"}

[Info - 7:14:06 PM] 2020/08/12 19:14:06 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2/bar
query=[github.com/segevfiner/bar]
packages=1

[Info - 7:14:06 PM] 2020/08/12 19:14:06 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:06 PM] 2020/08/12 19:14:06 failed to compute document links: : packages.Load error
URI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go

[Info - 7:14:06 PM] 2020/08/12 19:14:06 go/packages.Load
snapshot=1
package_path="github.com/segevfiner/bar"
files=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go]

[Trace - 19:14:06.549 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:06 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:06.549 PM] Received response 'textDocument/documentSymbol - (14)' in 74ms.
Result: []

[Trace - 19:14:06.549 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:06 DocumentSymbols failed: getting file for DocumentSymbols: \u003cnil\u003e: packages.Load error\n\tURI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go\n"}

[Info - 7:14:06 PM] 2020/08/12 19:14:06 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Trace - 19:14:06.549 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:06 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Trace - 19:14:06.549 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:06 go/packages.Load\n\tsnapshot=1\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Error - 7:14:06 PM] 2020/08/12 19:14:06 DocumentSymbols failed: getting file for DocumentSymbols: : packages.Load error
URI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go

[Error - 7:14:06 PM] 2020/08/12 19:14:06 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Info - 7:14:06 PM] 2020/08/12 19:14:06 go/packages.Load
snapshot=1
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Trace - 19:14:06.664 PM] Sending request 'textDocument/foldingRange - (15)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:06.664 PM] Received response 'textDocument/foldingRange - (15)' in 0ms.
Result: []

[Trace - 19:14:06.711 PM] Sending request 'textDocument/codeLens - (16)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:06.711 PM] Received response 'textDocument/codeLens - (16)' in 0ms.
Result: null

[Trace - 19:14:06.713 PM] Sending request 'textDocument/codeLens - (17)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:06.713 PM] Received response 'textDocument/codeLens - (17)' in 0ms.
Result: null

[Trace - 19:14:07.278 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":2},"contentChanges":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"rangeLength":0,"text":"p"}]}

[Trace - 19:14:07.309 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=2\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.309 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=2
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.355 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":3},"contentChanges":[{"range":{"start":{"line":0,"character":1},"end":{"line":0,"character":1}},"rangeLength":0,"text":"a"}]}

[Trace - 19:14:07.370 PM] Sending request 'textDocument/completion - (18)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":2},"context":{"triggerKind":1}}

[Trace - 19:14:07.388 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=3\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.388 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=3
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.400 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=3\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.400 PM] Received response 'textDocument/completion - (18)' in 30ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:07.400 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 no completions found: getting file for Completion: \u003cnil\u003e: packages.Load error\n\tposition={0 2}\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=3
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 no completions found: getting file for Completion: : packages.Load error
position={0 2}

[Trace - 19:14:07.441 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":4},"contentChanges":[{"range":{"start":{"line":0,"character":2},"end":{"line":0,"character":2}},"rangeLength":0,"text":"c"}]}

[Trace - 19:14:07.446 PM] Sending request 'textDocument/completion - (19)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":3},"context":{"triggerKind":1}}

[Trace - 19:14:07.471 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=4\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.472 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=4
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.474 PM] Received response 'textDocument/completion - (19)' in 28ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:07.474 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=4\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.474 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 no completions found: getting file for Completion: \u003cnil\u003e: packages.Load error\n\tposition={0 3}\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=4
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 no completions found: getting file for Completion: : packages.Load error
position={0 3}

[Trace - 19:14:07.518 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":5},"contentChanges":[{"range":{"start":{"line":0,"character":3},"end":{"line":0,"character":3}},"rangeLength":0,"text":"k"}]}

[Trace - 19:14:07.522 PM] Sending request 'textDocument/completion - (20)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":4},"context":{"triggerKind":1}}

[Trace - 19:14:07.559 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=5\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.560 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=5
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.562 PM] Received response 'textDocument/completion - (20)' in 39ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:07.562 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=5\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.562 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 no completions found: getting file for Completion: \u003cnil\u003e: packages.Load error\n\tposition={0 4}\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=5
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 no completions found: getting file for Completion: : packages.Load error
position={0 4}

[Trace - 19:14:07.585 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":6},"contentChanges":[{"range":{"start":{"line":0,"character":4},"end":{"line":0,"character":4}},"rangeLength":0,"text":"a"}]}

[Trace - 19:14:07.588 PM] Sending request 'textDocument/completion - (21)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":5},"context":{"triggerKind":1}}

[Trace - 19:14:07.618 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=6\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.619 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=6
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.619 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=6\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.619 PM] Received response 'textDocument/completion - (21)' in 31ms.
Result: {"isIncomplete":false,"items":[]}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=6
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Trace - 19:14:07.619 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 no completions found: getting file for Completion: \u003cnil\u003e: packages.Load error\n\tposition={0 5}\n"}

[Error - 7:14:07 PM] 2020/08/12 19:14:07 no completions found: getting file for Completion: : packages.Load error
position={0 5}

[Trace - 19:14:07.678 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":7},"contentChanges":[{"range":{"start":{"line":0,"character":5},"end":{"line":0,"character":5}},"rangeLength":0,"text":"g"}]}

[Trace - 19:14:07.682 PM] Sending request 'textDocument/completion - (22)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":6},"context":{"triggerKind":1}}

[Trace - 19:14:07.709 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=7\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.709 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=7
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.712 PM] Received response 'textDocument/completion - (22)' in 29ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:07.712 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=7\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.712 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 no completions found: getting file for Completion: \u003cnil\u003e: packages.Load error\n\tposition={0 6}\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=7
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 no completions found: getting file for Completion: : packages.Load error
position={0 6}

[Trace - 19:14:07.750 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":8},"contentChanges":[{"range":{"start":{"line":0,"character":6},"end":{"line":0,"character":6}},"rangeLength":0,"text":"e"}]}

[Trace - 19:14:07.758 PM] Sending request 'textDocument/completion - (23)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":7},"context":{"triggerKind":1}}

[Trace - 19:14:07.779 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=8\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.780 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=8
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:07.787 PM] Received response 'textDocument/completion - (23)' in 28ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:07.787 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=8\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.787 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 no completions found: getting file for Completion: \u003cnil\u003e: packages.Load error\n\tposition={0 7}\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=8
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 no completions found: getting file for Completion: : packages.Load error
position={0 7}

[Trace - 19:14:07.828 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":9},"contentChanges":[{"range":{"start":{"line":0,"character":7},"end":{"line":0,"character":7}},"rangeLength":0,"text":" "}]}

[Trace - 19:14:07.857 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:07 go/packages.Load\n\tsnapshot=9\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:07.857 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: \u003cnil\u003e: packages.Load error\n\tquery=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:07 PM] 2020/08/12 19:14:07 go/packages.Load
snapshot=9
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:07 PM] 2020/08/12 19:14:07 reloadOrphanedFiles: failed to load: : packages.Load error
query=[file:///Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:08.020 PM] Sending request 'textDocument/foldingRange - (24)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.020 PM] Received response 'textDocument/foldingRange - (24)' in 0ms.
Result: []

[Trace - 19:14:08.074 PM] Sending request 'textDocument/codeLens - (25)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.074 PM] Received response 'textDocument/codeLens - (25)' in 0ms.
Result: null

[Trace - 19:14:08.075 PM] Sending request 'textDocument/codeLens - (26)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.076 PM] Received response 'textDocument/codeLens - (26)' in 0ms.
Result: null

[Trace - 19:14:08.173 PM] Sending request 'textDocument/documentSymbol - (27)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.202 PM] Received response 'textDocument/documentSymbol - (27)' in 28ms.
Result: []

[Trace - 19:14:08.202 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=9\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:08.202 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:08 DocumentSymbols failed: getting file for DocumentSymbols: \u003cnil\u003e: packages.Load error\n\tURI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=9
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:08 PM] 2020/08/12 19:14:08 DocumentSymbols failed: getting file for DocumentSymbols: : packages.Load error
URI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go

[Trace - 19:14:08.259 PM] Sending request 'textDocument/documentLink - (28)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.287 PM] Received response 'textDocument/documentLink - (28)' in 27ms.
Result: null

[Trace - 19:14:08.287 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=9\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=0\n"}

[Trace - 19:14:08.287 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:08 failed to compute document links: \u003cnil\u003e: packages.Load error\n\tURI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=9
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=0

[Error - 7:14:08 PM] 2020/08/12 19:14:08 failed to compute document links: : packages.Load error
URI=file:///Users/segev/junk/gopls-issue2/bar/bar3.go

[Trace - 19:14:08.323 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":10},"contentChanges":[{"range":{"start":{"line":0,"character":8},"end":{"line":0,"character":8}},"rangeLength":0,"text":"b"}]}

[Trace - 19:14:08.328 PM] Sending request 'textDocument/completion - (29)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":9},"context":{"triggerKind":1}}

[Trace - 19:14:08.353 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=10\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[github.com/segevfiner/bar]\n\tpackages=1\n"}

[Trace - 19:14:08.353 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=10\n\tpackage_path="github.com/segevfiner/bar"\n\tfiles=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=10
directory=/Users/segev/junk/gopls-issue2/bar
query=[github.com/segevfiner/bar]
packages=1

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=10
package_path="github.com/segevfiner/bar"
files=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:08.358 PM] Received response 'textDocument/completion - (29)' in 29ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:08.358 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=10\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=1\n"}

[Trace - 19:14:08.358 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=10\n\tpackage_path="github.com/segevfiner/bar"\n\tfiles=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Trace - 19:14:08.358 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:08 no completions found: this is a definition\n\tposition={0 9}\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=10
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=1

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=10
package_path="github.com/segevfiner/bar"
files=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]

[Error - 7:14:08 PM] 2020/08/12 19:14:08 no completions found: this is a definition
position={0 9}

[Trace - 19:14:08.373 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar1.go","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":7}},"severity":1,"source":"compiler","message":"package bar; expected b"}]}

[Trace - 19:14:08.373 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar2.go","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":7}},"severity":1,"source":"compiler","message":"package bar; expected b"}]}

[Trace - 19:14:08.436 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":11},"contentChanges":[{"range":{"start":{"line":0,"character":9},"end":{"line":0,"character":9}},"rangeLength":0,"text":"a"}]}

[Trace - 19:14:08.465 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=11\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[github.com/segevfiner/bar]\n\tpackages=1\n"}

[Trace - 19:14:08.465 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=11\n\tpackage_path="github.com/segevfiner/bar"\n\tfiles=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=11
directory=/Users/segev/junk/gopls-issue2/bar
query=[github.com/segevfiner/bar]
packages=1

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=11
package_path="github.com/segevfiner/bar"
files=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:08.483 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar1.go","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":7}},"severity":1,"source":"compiler","message":"package bar; expected ba"}]}

[Trace - 19:14:08.483 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar2.go","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":7}},"severity":1,"source":"compiler","message":"package bar; expected ba"}]}

[Trace - 19:14:08.547 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":12},"contentChanges":[{"range":{"start":{"line":0,"character":10},"end":{"line":0,"character":10}},"rangeLength":0,"text":"r"}]}

[Trace - 19:14:08.561 PM] Sending request 'textDocument/completion - (30)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":0,"character":11},"context":{"triggerKind":1}}

[Trace - 19:14:08.579 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=12\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[github.com/segevfiner/bar]\n\tpackages=1\n"}

[Trace - 19:14:08.579 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=12\n\tpackage_path="github.com/segevfiner/bar"\n\tfiles=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=12
directory=/Users/segev/junk/gopls-issue2/bar
query=[github.com/segevfiner/bar]
packages=1

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=12
package_path="github.com/segevfiner/bar"
files=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:08.591 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=12\n\tdirectory=/Users/segev/junk/gopls-issue2/bar\n\tquery=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]\n\tpackages=1\n"}

[Trace - 19:14:08.591 PM] Received response 'textDocument/completion - (30)' in 29ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:08.591 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:08 no completions found: this is a definition\n\tposition={0 11}\n"}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=12
directory=/Users/segev/junk/gopls-issue2/bar
query=[file=/Users/segev/junk/gopls-issue2/bar/bar3.go]
packages=1

[Trace - 19:14:08.591 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/08/12 19:14:08 go/packages.Load\n\tsnapshot=12\n\tpackage_path="github.com/segevfiner/bar"\n\tfiles=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]\n"}

[Error - 7:14:08 PM] 2020/08/12 19:14:08 no completions found: this is a definition
position={0 11}

[Info - 7:14:08 PM] 2020/08/12 19:14:08 go/packages.Load
snapshot=12
package_path="github.com/segevfiner/bar"
files=[/Users/segev/junk/gopls-issue2/bar/bar1.go /Users/segev/junk/gopls-issue2/bar/bar2.go /Users/segev/junk/gopls-issue2/bar/bar3.go]

[Trace - 19:14:08.600 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar1.go","diagnostics":[]}

[Trace - 19:14:08.600 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar2.go","diagnostics":[]}

[Trace - 19:14:08.749 PM] Sending request 'textDocument/foldingRange - (31)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.749 PM] Received response 'textDocument/foldingRange - (31)' in 0ms.
Result: []

[Trace - 19:14:08.768 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":13},"contentChanges":[{"range":{"start":{"line":0,"character":11},"end":{"line":0,"character":11}},"rangeLength":0,"text":"\n"}]}

[Trace - 19:14:08.960 PM] Sending request 'textDocument/foldingRange - (32)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:08.960 PM] Received response 'textDocument/foldingRange - (32)' in 0ms.
Result: []

[Trace - 19:14:08.965 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":14},"contentChanges":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"rangeLength":0,"text":"\n"}]}

[Trace - 19:14:09.094 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":15},"contentChanges":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"rangeLength":0,"text":"f"}]}

[Trace - 19:14:09.095 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":15,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found f"}]}

[Trace - 19:14:09.104 PM] Sending request 'textDocument/completion - (33)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":2,"character":1},"context":{"triggerKind":1}}

[Trace - 19:14:09.105 PM] Received response 'textDocument/completion - (33)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"func","kind":14,"preselect":true,"sortText":"00000","filterText":"func","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":"func"}}]}

[Trace - 19:14:09.224 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":16},"contentChanges":[{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"rangeLength":0,"text":"u"}]}

[Trace - 19:14:09.225 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":16,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found fu"}]}

[Trace - 19:14:09.287 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":17},"contentChanges":[{"range":{"start":{"line":2,"character":2},"end":{"line":2,"character":2}},"rangeLength":0,"text":"n"}]}

[Trace - 19:14:09.288 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":17,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found fun"}]}

[Trace - 19:14:09.315 PM] Sending request 'textDocument/documentLink - (34)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:09.315 PM] Received response 'textDocument/documentLink - (34)' in 0ms.
Result: null

[Trace - 19:14:09.349 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":18},"contentChanges":[{"range":{"start":{"line":2,"character":3},"end":{"line":2,"character":3}},"rangeLength":0,"text":"c"}]}

[Trace - 19:14:09.350 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":18,"diagnostics":[{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"severity":1,"source":"syntax","message":"expected '(', found 'EOF'"}]}

[Trace - 19:14:09.470 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":19},"contentChanges":[{"range":{"start":{"line":2,"character":4},"end":{"line":2,"character":4}},"rangeLength":0,"text":" "}]}

[Trace - 19:14:09.662 PM] Sending request 'textDocument/foldingRange - (35)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:09.662 PM] Received response 'textDocument/foldingRange - (35)' in 0ms.
Result: []

[Trace - 19:14:09.718 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":20},"contentChanges":[{"range":{"start":{"line":2,"character":5},"end":{"line":2,"character":5}},"rangeLength":0,"text":"B"}]}

[Trace - 19:14:09.719 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":20,"diagnostics":[{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"severity":1,"source":"syntax","message":"expected '(', found newline"}]}

[Trace - 19:14:09.721 PM] Sending request 'textDocument/completion - (36)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":2,"character":6},"context":{"triggerKind":1}}

[Trace - 19:14:09.721 PM] Received response 'textDocument/completion - (36)' in 0ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:09.721 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:09 no completions found: this is a definition of func B(invalid type)\n\tposition={2 6}\n"}

[Error - 7:14:09 PM] 2020/08/12 19:14:09 no completions found: this is a definition of func B(invalid type)
position={2 6}

[Trace - 19:14:09.914 PM] Sending request 'textDocument/foldingRange - (37)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:09.915 PM] Received response 'textDocument/foldingRange - (37)' in 0ms.
Result: []

[Trace - 19:14:09.960 PM] Sending request 'textDocument/codeLens - (38)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:09.961 PM] Received response 'textDocument/codeLens - (38)' in 0ms.
Result: null

[Trace - 19:14:09.962 PM] Sending request 'textDocument/codeLens - (39)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:09.962 PM] Received response 'textDocument/codeLens - (39)' in 0ms.
Result: null

[Trace - 19:14:09.986 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":21},"contentChanges":[{"range":{"start":{"line":2,"character":6},"end":{"line":2,"character":6}},"rangeLength":0,"text":"a"}]}

[Trace - 19:14:10.065 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":22},"contentChanges":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"rangeLength":0,"text":"r"}]}

[Trace - 19:14:10.069 PM] Sending request 'textDocument/completion - (40)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":2,"character":8},"context":{"triggerKind":1}}

[Trace - 19:14:10.070 PM] Received response 'textDocument/completion - (40)' in 0ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:10.070 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:10 no completions found: this is a definition of func Bar(invalid type)\n\tposition={2 8}\n"}

[Error - 7:14:10 PM] 2020/08/12 19:14:10 no completions found: this is a definition of func Bar(invalid type)
position={2 8}

[Trace - 19:14:10.261 PM] Sending request 'textDocument/foldingRange - (41)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.262 PM] Received response 'textDocument/foldingRange - (41)' in 0ms.
Result: []

[Trace - 19:14:10.277 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":23},"contentChanges":[{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":8}},"rangeLength":0,"text":"3"}]}

[Trace - 19:14:10.337 PM] Sending request 'textDocument/documentLink - (42)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.337 PM] Received response 'textDocument/documentLink - (42)' in 0ms.
Result: null

[Trace - 19:14:10.471 PM] Sending request 'textDocument/foldingRange - (43)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.471 PM] Received response 'textDocument/foldingRange - (43)' in 0ms.
Result: []

[Trace - 19:14:10.509 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":24},"contentChanges":[{"range":{"start":{"line":2,"character":9},"end":{"line":2,"character":9}},"rangeLength":0,"text":"()"}]}

[Trace - 19:14:10.510 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":24,"diagnostics":[]}

[Trace - 19:14:10.623 PM] Sending request 'textDocument/signatureHelp - (44)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"position":{"line":2,"character":10},"context":{"isRetrigger":false,"triggerCharacter":"(","triggerKind":2}}

[Trace - 19:14:10.623 PM] Received response 'textDocument/signatureHelp - (44)' in 0ms.
Result: null

[Trace - 19:14:10.623 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:10 no signature help: cannot find an enclosing function\n\tposition={2 10}\n"}

[Error - 7:14:10 PM] 2020/08/12 19:14:10 no signature help: cannot find an enclosing function
position={2 10}

[Trace - 19:14:10.705 PM] Sending request 'textDocument/foldingRange - (45)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.705 PM] Received response 'textDocument/foldingRange - (45)' in 0ms.
Result: []

[Trace - 19:14:10.752 PM] Sending request 'textDocument/codeLens - (46)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.753 PM] Received response 'textDocument/codeLens - (46)' in 0ms.
Result: null

[Trace - 19:14:10.754 PM] Sending request 'textDocument/codeLens - (47)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.754 PM] Received response 'textDocument/codeLens - (47)' in 0ms.
Result: null

[Trace - 19:14:10.764 PM] Sending request 'textDocument/codeAction - (48)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"range":{"start":{"line":2,"character":10},"end":{"line":2,"character":10}},"context":{"diagnostics":[]}}

[Trace - 19:14:10.764 PM] Received response 'textDocument/codeAction - (48)' in 0ms.
Result: null

[Trace - 19:14:10.851 PM] Sending request 'textDocument/documentSymbol - (49)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:10.851 PM] Received response 'textDocument/documentSymbol - (49)' in 0ms.
Result: [{"name":"Bar3","detail":"()","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":9}}}]

[Trace - 19:14:10.962 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":25},"contentChanges":[{"range":{"start":{"line":2,"character":11},"end":{"line":2,"character":11}},"rangeLength":0,"text":" "}]}

[Trace - 19:14:11.117 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":26},"contentChanges":[{"range":{"start":{"line":2,"character":12},"end":{"line":2,"character":12}},"rangeLength":0,"text":"{}"}]}

[Trace - 19:14:11.313 PM] Sending request 'textDocument/foldingRange - (50)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.313 PM] Received response 'textDocument/foldingRange - (50)' in 0ms.
Result: []

[Trace - 19:14:11.360 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":27},"contentChanges":[{"range":{"start":{"line":2,"character":13},"end":{"line":2,"character":13}},"rangeLength":0,"text":"\n\t\n"}]}

[Trace - 19:14:11.504 PM] Sending request 'textDocument/documentLink - (51)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.505 PM] Received response 'textDocument/documentLink - (51)' in 0ms.
Result: null

[Trace - 19:14:11.552 PM] Sending request 'textDocument/foldingRange - (52)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.553 PM] Received response 'textDocument/foldingRange - (52)' in 0ms.
Result: []

[Trace - 19:14:11.602 PM] Sending request 'textDocument/codeLens - (53)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.603 PM] Received response 'textDocument/codeLens - (53)' in 0ms.
Result: null

[Trace - 19:14:11.604 PM] Sending request 'textDocument/codeLens - (54)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.604 PM] Received response 'textDocument/codeLens - (54)' in 0ms.
Result: null

[Trace - 19:14:11.679 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":28},"contentChanges":[{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":1}},"rangeLength":1,"text":""}]}

[Trace - 19:14:11.680 PM] Sending request 'textDocument/codeAction - (55)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"range":{"start":{"line":0,"character":0},"end":{"line":4,"character":1}},"context":{"diagnostics":[],"only":["source.organizeImports"]}}

[Trace - 19:14:11.680 PM] Received response 'textDocument/codeAction - (55)' in 0ms.
Result: null

[Trace - 19:14:11.688 PM] Sending request 'textDocument/formatting - (56)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"},"options":{"tabSize":4,"insertSpaces":false}}

[Trace - 19:14:11.688 PM] Received response 'textDocument/formatting - (56)' in 0ms.
Result: [{"range":{"start":{"line":5,"character":0},"end":{"line":5,"character":0}},"newText":"\n"}]

[Trace - 19:14:11.697 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":29},"contentChanges":[{"range":{"start":{"line":4,"character":1},"end":{"line":4,"character":1}},"rangeLength":0,"text":"\n"}]}

[Trace - 19:14:11.725 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go","version":29}}

[Trace - 19:14:11.895 PM] Sending request 'textDocument/foldingRange - (57)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.896 PM] Received response 'textDocument/foldingRange - (57)' in 0ms.
Result: []

[Trace - 19:14:11.950 PM] Sending request 'textDocument/codeLens - (58)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.950 PM] Received response 'textDocument/codeLens - (58)' in 0ms.
Result: null

[Trace - 19:14:11.953 PM] Sending request 'textDocument/codeLens - (59)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:11.953 PM] Received response 'textDocument/codeLens - (59)' in 0ms.
Result: null

[Trace - 19:14:12.049 PM] Sending request 'textDocument/documentSymbol - (60)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:12.049 PM] Received response 'textDocument/documentSymbol - (60)' in 0ms.
Result: [{"name":"Bar3","detail":"()","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":4,"character":1}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":9}}}]

[Trace - 19:14:12.678 PM] Sending request 'textDocument/documentLink - (61)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/bar/bar3.go"}}

[Trace - 19:14:12.679 PM] Received response 'textDocument/documentLink - (61)' in 0ms.
Result: null

[Trace - 19:14:13.075 PM] Sending request 'textDocument/documentLink - (62)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:13.076 PM] Sending request 'textDocument/codeAction - (63)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}

[Trace - 19:14:13.076 PM] Received response 'textDocument/documentLink - (62)' in 0ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar@v0.0.0-00010101000000-000000000000"}]

[Trace - 19:14:13.076 PM] Received response 'textDocument/codeAction - (63)' in 0ms.
Result: null

[Trace - 19:14:13.077 PM] Sending request 'textDocument/documentSymbol - (64)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:13.077 PM] Received response 'textDocument/documentSymbol - (64)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":7,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:13.254 PM] Sending request 'textDocument/foldingRange - (65)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:13.254 PM] Received response 'textDocument/foldingRange - (65)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":11}]

[Trace - 19:14:13.308 PM] Sending request 'textDocument/codeLens - (66)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:13.309 PM] Received response 'textDocument/codeLens - (66)' in 0ms.
Result: null

[Trace - 19:14:13.309 PM] Sending request 'textDocument/codeAction - (67)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":1}},"context":{"diagnostics":[]}}

[Trace - 19:14:13.310 PM] Sending request 'textDocument/codeLens - (68)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:13.310 PM] Received response 'textDocument/codeAction - (67)' in 0ms.
Result: null

[Trace - 19:14:13.310 PM] Received response 'textDocument/codeLens - (68)' in 0ms.
Result: null

[Trace - 19:14:14.255 PM] Sending request 'textDocument/codeAction - (69)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":5,"character":11},"end":{"line":5,"character":11}},"context":{"diagnostics":[]}}

[Trace - 19:14:14.255 PM] Received response 'textDocument/codeAction - (69)' in 0ms.
Result: null

[Trace - 19:14:15.418 PM] Sending request 'textDocument/codeAction - (70)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":6,"character":11},"end":{"line":6,"character":11}},"context":{"diagnostics":[]}}

[Trace - 19:14:15.419 PM] Received response 'textDocument/codeAction - (70)' in 0ms.
Result: null

[Trace - 19:14:15.493 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":2},"contentChanges":[{"range":{"start":{"line":6,"character":11},"end":{"line":6,"character":11}},"rangeLength":0,"text":"\n\t"}]}

[Trace - 19:14:15.682 PM] Sending request 'textDocument/foldingRange - (71)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:15.682 PM] Received response 'textDocument/foldingRange - (71)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":11}]

[Trace - 19:14:15.711 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":3},"contentChanges":[{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":1}},"rangeLength":0,"text":"b"}]}

[Trace - 19:14:15.712 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":3,"diagnostics":[{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"severity":1,"source":"compiler","message":"undeclared name: b"}]}

[Trace - 19:14:15.715 PM] Sending request 'textDocument/completion - (72)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":2},"context":{"triggerKind":1}}

[Trace - 19:14:15.771 PM] Received response 'textDocument/completion - (72)' in 56ms.
Result: {"isIncomplete":true,"items":[{"label":"bar","kind":9,"detail":""github.com/segevfiner/bar"","preselect":true,"sortText":"00000","filterText":"bar","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"bar"}},{"label":"bool","kind":7,"sortText":"00001","filterText":"bool","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"bool"}},{"label":"byte","kind":7,"sortText":"00002","filterText":"byte","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"byte"}},{"label":"big","kind":9,"detail":""math/big"","sortText":"00003","filterText":"big","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"big"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"math/big"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"binary","kind":9,"detail":""encoding/binary"","sortText":"00004","filterText":"binary","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"binary"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"encoding/binary"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"bits","kind":9,"detail":""math/bits"","sortText":"00005","filterText":"bits","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"bits"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"math/bits"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"build","kind":9,"detail":""go/build"","sortText":"00006","filterText":"build","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"build"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"go/build"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"bytes","kind":9,"detail":""bytes"","sortText":"00007","filterText":"bytes","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"bytes"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"bytes"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"bar.Bar1","kind":3,"detail":"func()","sortText":"00008","filterText":"bar.Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"bar.Bar1()"}},{"label":"bar.Bar2","kind":3,"detail":"func()","sortText":"00009","filterText":"bar.Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":2}},"newText":"bar.Bar2()"}}]}

[Trace - 19:14:15.798 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":4},"contentChanges":[{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":2}},"rangeLength":0,"text":"a"}]}

[Trace - 19:14:15.799 PM] Sending request 'textDocument/completion - (73)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":3},"context":{"triggerKind":3}}

[Trace - 19:14:15.799 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":4,"diagnostics":[{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"severity":1,"source":"compiler","message":"undeclared name: ba"}]}

[Trace - 19:14:15.900 PM] Received response 'textDocument/completion - (73)' in 101ms.
Result: {"isIncomplete":true,"items":[{"label":"bar","kind":9,"detail":""github.com/segevfiner/bar"","preselect":true,"sortText":"00000","filterText":"bar","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"bar"}},{"label":"base32","kind":9,"detail":""encoding/base32"","sortText":"00001","filterText":"base32","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"base32"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"encoding/base32"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"base64","kind":9,"detail":""encoding/base64"","sortText":"00002","filterText":"base64","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"base64"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"encoding/base64"\n\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"bar.Bar1","kind":3,"detail":"func()","sortText":"00003","filterText":"bar.Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"bar.Bar1()"}},{"label":"bar.Bar2","kind":3,"detail":"func()","sortText":"00004","filterText":"bar.Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"bar.Bar2()"}},{"label":"balance","kind":9,"detail":""github.com/OceanCodes/stripe-go/balance"","sortText":"00005","filterText":"balance","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"balance"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"github.com/OceanCodes/stripe-go/balance"\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"bankaccount","kind":9,"detail":""github.com/OceanCodes/stripe-go/bankaccount"","sortText":"00006","filterText":"bankaccount","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"bankaccount"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"github.com/OceanCodes/stripe-go/bankaccount"\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":")\n"}]},{"label":"basicfont","kind":9,"detail":""golang.org/x/image/font/basicfont"","sortText":"00007","filterText":"basicfont","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":3}},"newText":"basicfont"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":"(\n\t"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\t"golang.org/x/image/font/basicfont"\n)\n"}]}]}

[Trace - 19:14:15.941 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":5},"contentChanges":[{"range":{"start":{"line":7,"character":3},"end":{"line":7,"character":3}},"rangeLength":0,"text":"r"}]}

[Trace - 19:14:15.942 PM] Sending request 'textDocument/completion - (74)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":4},"context":{"triggerKind":3}}

[Trace - 19:14:15.944 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":5,"diagnostics":[{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":4}},"severity":1,"source":"compiler","message":"use of package bar not in selector"}]}

[Trace - 19:14:16.044 PM] Received response 'textDocument/completion - (74)' in 102ms.
Result: {"isIncomplete":true,"items":[{"label":"bar","kind":9,"detail":""github.com/segevfiner/bar"","preselect":true,"sortText":"00000","filterText":"bar","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":4}},"newText":"bar"}},{"label":"bar.Bar1","kind":3,"detail":"func()","sortText":"00001","filterText":"bar.Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":4}},"newText":"bar.Bar1()"}},{"label":"bar.Bar2","kind":3,"detail":"func()","sortText":"00002","filterText":"bar.Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":4}},"newText":"bar.Bar2()"}}]}

[Trace - 19:14:16.078 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":6},"contentChanges":[{"range":{"start":{"line":7,"character":4},"end":{"line":7,"character":4}},"rangeLength":0,"text":"."}]}

[Trace - 19:14:16.079 PM] Sending request 'textDocument/completion - (75)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":5},"context":{"triggerKind":2,"triggerCharacter":"."}}

[Trace - 19:14:16.081 PM] Received response 'textDocument/completion - (75)' in 2ms.
Result: {"isIncomplete":true,"items":[{"label":"Bar1","kind":3,"detail":"func()","preselect":true,"sortText":"00000","filterText":"Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Bar1()"}},{"label":"Bar2","kind":3,"detail":"func()","sortText":"00001","filterText":"Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Bar2()"}}]}

[Trace - 19:14:16.082 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":6,"diagnostics":[{"range":{"start":{"line":7,"character":6},"end":{"line":7,"character":6}},"severity":1,"source":"syntax","message":"expected selector or type assertion, found '}'"}]}

[Trace - 19:14:16.273 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":7},"contentChanges":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"rangeLength":0,"text":"B"}]}

[Trace - 19:14:16.274 PM] Sending request 'textDocument/completion - (76)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":6},"context":{"triggerKind":3}}

[Trace - 19:14:16.274 PM] Received response 'textDocument/completion - (76)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"Bar1","kind":3,"detail":"func()","preselect":true,"sortText":"00000","filterText":"Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":6}},"newText":"Bar1()"}},{"label":"Bar2","kind":3,"detail":"func()","sortText":"00001","filterText":"Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":6}},"newText":"Bar2()"}}]}

[Trace - 19:14:16.275 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":7,"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":6}},"severity":1,"source":"compiler","message":"B not declared by package bar"}]}

[Trace - 19:14:16.467 PM] Sending request 'textDocument/foldingRange - (77)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:16.467 PM] Received response 'textDocument/foldingRange - (77)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":7,"endCharacter":6}]

[Trace - 19:14:16.481 PM] Sending request 'textDocument/documentLink - (78)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:16.481 PM] Received response 'textDocument/documentLink - (78)' in 0ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar@v0.0.0-00010101000000-000000000000"}]

[Trace - 19:14:16.498 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":8},"contentChanges":[{"range":{"start":{"line":7,"character":6},"end":{"line":7,"character":6}},"rangeLength":0,"text":"a"}]}

[Trace - 19:14:16.499 PM] Sending request 'textDocument/completion - (79)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":7},"context":{"triggerKind":3}}

[Trace - 19:14:16.500 PM] Received response 'textDocument/completion - (79)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"Bar1","kind":3,"detail":"func()","preselect":true,"sortText":"00000","filterText":"Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":7}},"newText":"Bar1()"}},{"label":"Bar2","kind":3,"detail":"func()","sortText":"00001","filterText":"Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":7}},"newText":"Bar2()"}}]}

[Trace - 19:14:16.500 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":8,"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":7}},"severity":1,"source":"compiler","message":"Ba not declared by package bar"}]}

[Trace - 19:14:16.641 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":9},"contentChanges":[{"range":{"start":{"line":7,"character":7},"end":{"line":7,"character":7}},"rangeLength":0,"text":"e"}]}

[Trace - 19:14:16.642 PM] Sending request 'textDocument/completion - (80)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":8},"context":{"triggerKind":3}}

[Trace - 19:14:16.642 PM] Received response 'textDocument/completion - (80)' in 0ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:16.642 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":9,"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":8}},"severity":1,"source":"compiler","message":"Bae not declared by package bar"}]}

[Trace - 19:14:16.836 PM] Sending request 'textDocument/foldingRange - (81)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:16.837 PM] Received response 'textDocument/foldingRange - (81)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":7,"endCharacter":8}]

[Trace - 19:14:16.886 PM] Sending request 'textDocument/codeLens - (82)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:16.886 PM] Received response 'textDocument/codeLens - (82)' in 0ms.
Result: null

[Trace - 19:14:16.887 PM] Sending request 'textDocument/codeLens - (83)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:16.888 PM] Received response 'textDocument/codeLens - (83)' in 0ms.
Result: null

[Trace - 19:14:16.898 PM] Sending request 'textDocument/codeAction - (84)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":8},"end":{"line":7,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":8}},"message":"Bae not declared by package bar","severity":1,"source":"compiler"}]}}

[Trace - 19:14:16.898 PM] Received response 'textDocument/codeAction - (84)' in 0ms.
Result: null

[Trace - 19:14:16.985 PM] Sending request 'textDocument/documentSymbol - (85)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:16.985 PM] Received response 'textDocument/documentSymbol - (85)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:17.393 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":10},"contentChanges":[{"range":{"start":{"line":7,"character":7},"end":{"line":7,"character":8}},"rangeLength":1,"text":""}]}

[Trace - 19:14:17.394 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":10,"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":7}},"severity":1,"source":"compiler","message":"Ba not declared by package bar"}]}

[Trace - 19:14:17.442 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":11},"contentChanges":[{"range":{"start":{"line":7,"character":7},"end":{"line":7,"character":7}},"rangeLength":0,"text":"r"}]}

[Trace - 19:14:17.443 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":11,"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":8}},"severity":1,"source":"compiler","message":"Bar not declared by package bar"}]}

[Trace - 19:14:17.459 PM] Sending request 'textDocument/completion - (86)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":8},"context":{"triggerKind":1}}

[Trace - 19:14:17.460 PM] Received response 'textDocument/completion - (86)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"Bar1","kind":3,"detail":"func()","preselect":true,"sortText":"00000","filterText":"Bar1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":8}},"newText":"Bar1()"}},{"label":"Bar2","kind":3,"detail":"func()","sortText":"00001","filterText":"Bar2","insertTextFormat":2,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":8}},"newText":"Bar2()"}}]}

[Trace - 19:14:17.497 PM] Sending request 'textDocument/documentLink - (87)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:17.498 PM] Received response 'textDocument/documentLink - (87)' in 0ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar@v0.0.0-00010101000000-000000000000"}]

[Trace - 19:14:17.641 PM] Sending request 'textDocument/foldingRange - (88)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:17.641 PM] Received response 'textDocument/foldingRange - (88)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":7,"endCharacter":8}]

[Trace - 19:14:17.691 PM] Sending request 'textDocument/codeLens - (89)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:17.692 PM] Received response 'textDocument/codeLens - (89)' in 0ms.
Result: null

[Trace - 19:14:17.693 PM] Sending request 'textDocument/codeLens - (90)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:17.693 PM] Received response 'textDocument/codeLens - (90)' in 0ms.
Result: null

[Trace - 19:14:17.697 PM] Sending request 'textDocument/codeAction - (91)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":8},"end":{"line":7,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":8}},"message":"Bar not declared by package bar","severity":1,"source":"compiler"}]}}

[Trace - 19:14:17.697 PM] Received response 'textDocument/codeAction - (91)' in 0ms.
Result: null

[Trace - 19:14:17.797 PM] Sending request 'textDocument/documentSymbol - (92)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:17.797 PM] Received response 'textDocument/documentSymbol - (92)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:17.903 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":12},"contentChanges":[{"range":{"start":{"line":7,"character":8},"end":{"line":7,"character":8}},"rangeLength":0,"text":"3"}]}

[Trace - 19:14:17.904 PM] Sending request 'textDocument/completion - (93)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":9},"context":{"triggerKind":3}}

[Trace - 19:14:17.904 PM] Received response 'textDocument/completion - (93)' in 0ms.
Result: {"isIncomplete":false,"items":[]}

[Trace - 19:14:17.904 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":12,"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":9}},"severity":1,"source":"compiler","message":"Bar3 not declared by package bar"}]}

[Trace - 19:14:18.098 PM] Sending request 'textDocument/foldingRange - (94)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.098 PM] Received response 'textDocument/foldingRange - (94)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":7,"endCharacter":9}]

[Trace - 19:14:18.147 PM] Sending request 'textDocument/codeLens - (95)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.147 PM] Received response 'textDocument/codeLens - (95)' in 0ms.
Result: null

[Trace - 19:14:18.149 PM] Sending request 'textDocument/codeLens - (96)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.149 PM] Received response 'textDocument/codeLens - (96)' in 0ms.
Result: null

[Trace - 19:14:18.160 PM] Sending request 'textDocument/codeAction - (97)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":9},"end":{"line":7,"character":9}},"context":{"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":9}},"message":"Bar3 not declared by package bar","severity":1,"source":"compiler"}]}}

[Trace - 19:14:18.160 PM] Received response 'textDocument/codeAction - (97)' in 0ms.
Result: null

[Trace - 19:14:18.248 PM] Sending request 'textDocument/documentSymbol - (98)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.248 PM] Received response 'textDocument/documentSymbol - (98)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:18.495 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":13},"contentChanges":[{"range":{"start":{"line":7,"character":9},"end":{"line":7,"character":9}},"rangeLength":0,"text":"()"}]}

[Trace - 19:14:18.608 PM] Sending request 'textDocument/signatureHelp - (99)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"position":{"line":7,"character":10},"context":{"isRetrigger":false,"triggerCharacter":"(","triggerKind":2}}

[Trace - 19:14:18.608 PM] Received response 'textDocument/signatureHelp - (99)' in 0ms.
Result: null

[Trace - 19:14:18.608 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/08/12 19:14:18 no signature help: cannot get type for Fun *ast.SelectorExpr (\u0026{bar Bar3})\n\tposition={7 10}\n"}

[Error - 7:14:18 PM] 2020/08/12 19:14:18 no signature help: cannot get type for Fun *ast.SelectorExpr (&{bar Bar3})
position={7 10}

[Trace - 19:14:18.689 PM] Sending request 'textDocument/foldingRange - (100)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.689 PM] Received response 'textDocument/foldingRange - (100)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":7,"endCharacter":11}]

[Trace - 19:14:18.740 PM] Sending request 'textDocument/codeLens - (101)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.741 PM] Received response 'textDocument/codeLens - (101)' in 0ms.
Result: null

[Trace - 19:14:18.741 PM] Sending request 'textDocument/codeAction - (102)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":10},"end":{"line":7,"character":10}},"context":{"diagnostics":[]}}

[Trace - 19:14:18.742 PM] Received response 'textDocument/codeAction - (102)' in 0ms.
Result: null

[Trace - 19:14:18.752 PM] Sending request 'textDocument/codeLens - (103)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.752 PM] Received response 'textDocument/codeLens - (103)' in 0ms.
Result: null

[Trace - 19:14:18.841 PM] Sending request 'textDocument/documentSymbol - (104)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.841 PM] Received response 'textDocument/documentSymbol - (104)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]

[Trace - 19:14:18.898 PM] Sending request 'textDocument/documentLink - (105)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"}}

[Trace - 19:14:18.898 PM] Received response 'textDocument/documentLink - (105)' in 0ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":33}},"target":"https://pkg.go.dev/github.com/segevfiner/bar@v0.0.0-00010101000000-000000000000"}]

[Trace - 19:14:20.329 PM] Sending request 'textDocument/codeAction - (106)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":9,"character":0}},"context":{"diagnostics":[{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":9}},"message":"Bar3 not declared by package bar","severity":1,"source":"compiler"}],"only":["source.organizeImports"]}}

[Trace - 19:14:20.329 PM] Received response 'textDocument/codeAction - (106)' in 0ms.
Result: null

[Trace - 19:14:20.331 PM] Sending request 'textDocument/formatting - (107)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"options":{"tabSize":4,"insertSpaces":false}}

[Trace - 19:14:20.331 PM] Received response 'textDocument/formatting - (107)' in 0ms.
Result: []

[Trace - 19:14:20.356 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go","version":13}}

[Trace - 19:14:20.378 PM] Sending request 'textDocument/codeAction - (108)'.
Params: {"textDocument":{"uri":"file:///Users/segev/junk/gopls-issue2/foo/main.go"},"range":{"start":{"line":7,"character":11},"end":{"line":7,"character":11}},"context":{"diagnostics":[]}}

[Trace - 19:14:20.379 PM] Received response 'textDocument/codeAction - (108)' in 0ms.
Result: null

@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Aug 12, 2020

To clarify, how are you adding the replace to your module? I'm not seeing any edits to the module in your log, and if you're doing it in a different editor, you may have actually picked up a file watching bug that was just fixed by https://golang.org/cl/247684 (it's not limited to Windows-specific, even though the CL title says so). I would suggest upgrading to the latest master as of a few minutes ago (GO111MODULE=on go get golang.org/x/tools/gopls@master golang.org/x/tools@master) - sorry about the inconvenience!

@segevfiner
Copy link
Contributor Author

@segevfiner segevfiner commented Aug 12, 2020

In that case, I already had the replace in, and just added a file with a new function to the replaced bar module.

Will try it later.

@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Aug 12, 2020

Thanks for the clarification. We can certainly add a regression test for that case.

@stamblerre stamblerre changed the title x/tools/gopls: watch replace targets x/tools/gopls: add a regression test for adding a new function to a replace target Aug 12, 2020
@segevfiner
Copy link
Contributor Author

@segevfiner segevfiner commented Aug 12, 2020

Still happening with:

golang.org/x/tools/gopls master
    golang.org/x/tools/gopls@v0.0.0-20200812195022-5ae4c3c160a0 h1:IFIrVpsHUpQrihC1kLyMEOjP71pIxfSzKBFR7Qj5Nx4=
@stamblerre stamblerre added this to To Do in gopls/v1.0.0 Aug 26, 2020
@stamblerre stamblerre added Testing and removed Testing labels Sep 9, 2020
@stamblerre stamblerre moved this from Bugs to Testing in gopls/v1.0.0 Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.