x/tools/gopls: 如果初始工作区加载失败,gopls不容易恢复,

yjghlzjz  于 6个月前  发布在  Go
关注(0)|答案(6)|浏览(45)

你正在使用哪个版本的Go(go version)?

$ go version
go1.17rc1

$ golang.org/x/tools/gopls v0.7.1
    golang.org/x/tools/gopls@v0.7.1 h1:Mh3Z8Xcoq3Zy7ksSlwDV/nzQSbjFf06A+L+F8YHq55U=

你做了什么?

由于网络连接不良,初始工作区加载未能下载必要的依赖项。我手动运行了go mod tidy并下载了依赖项,但错误通知没有消失。
如何复现:

  • go clean -modcache
  • 关闭网络
  • 从golang.org/x/tools仓库克隆vscode
  • 查看关于缺少模块的“加载工作区时出错”消息。没有可操作的项目
  • 打开网络
  • 从终端手动运行go mod tidy
  • 观察错误通知和诊断消息不更新。

你期望看到什么?

  • go mod tidy运行后,错误通知和诊断信息得到更新。
  • 关于如何解决问题的更好的指导---> 我发现如果我使用“运行go mod tidy”的代码lens,最终gopls错误通知和诊断信息会消失。

你看到了什么?

粘性的错误通知和诊断信息。
gopls trace - 在大约7:23左右手动运行了go mod tidy。

[Trace - 19:22:43.296 PM] Sending request 'initialize - (0)'.
Params: {"processId":9631,"clientInfo":{"name":"Visual Studio Code","version":"1.58.2"},"locale":"en-us","rootPath":"/Users/hakim/projects/editor/tools","rootUri":"file:///Users/hakim/projects/editor/tools","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"groupsOnLabel":true}},"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]},"tagSupport":{"valueSet":[1]}},"codeLens":{"refreshSupport":true},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true},"fileOperations":{"dynamicRegistration":true,"didCreate":true,"didRename":true,"didDelete":true,"willCreate":true,"willRename":true,"willDelete":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"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]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"insertTextModeSupport":{"valueSet":[1,2]}},"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},"activeParameterSupport":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,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"honorsChangeAnnotations":false},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1,"honorsChangeAnnotations":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},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}},"multilineTokenSupport":false,"overlappingTokenSupport":false},"linkedEditingRange":{"dynamicRegistration":true}},"window":{"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"showDocument":{"support":true},"workDoneProgress":true},"general":{"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"markdown":{"parser":"marked","version":"1.1.0"}}},"initializationOptions":{"build.experimentalWorkspaceModule":true},"trace":"off","workspaceFolders":[{"uri":"file:///Users/hakim/projects/editor/tools","name":"tools"}]}

[Trace - 19:22:43.299 PM] Received response 'initialize - (0)' in 2ms.

Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."],"completionItem":{}},"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":["gopls.add_dependency","gopls.add_import","gopls.apply_fix","gopls.check_upgrades","gopls.gc_details","gopls.generate","gopls.generate_gopls_mod","gopls.go_get_package","gopls.list_known_packages","gopls.regenerate_cgo","gopls.remove_dependency","gopls.run_tests","gopls.start_debugging","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor","gopls.workspace_metadata"]},"callHierarchyProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"{"path":"golang.org/x/tools/gopls","version":"v0.7.1","sum":"h1:Mh3Z8Xcoq3Zy7ksSlwDV/nzQSbjFf06A+L+F8YHq55U=","deps":[{"path":"github.com/BurntSushi/toml","version":"v0.3.1","sum":"h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ="},{"path":"github.com/google/go-cmp","version":"v0.5.5","sum":"h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU="},{"path":"github.com/sergi/go-diff","version":"v1.1.0","sum":"h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0="},{"path":"golang.org/x/mod","version":"v0.4.2","sum":"h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo="},{"path":"golang.org/x/sync","version":"v0.0.0-20210220032951-036812b2e83c","sum":"h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ="},{"path":"golang.org/x/sys","version":"v0.0.0-20210510120138-977fb7262007","sum":"h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE="},{"path":"golang.org/x/tools","version":"v0.1.6-0.20210802203754-9b21a8868e16","sum":"h1:ZC/gVBZl8poJyKzWLxxlsmhayVGosF4mohR35szD5Bg="},{"path":"golang.org/x/xerrors","version":"v0.0.0-20200804184101-5ec99f83aff1","sum":"h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE="},{"path":"honnef.co/go/tools","version":"v0.2.0","sum":"h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE="},{"path":"mvdan.cc/gofumpt","version":"v0.1.1","sum":"h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA="},{"path":"mvdan.cc/xurls/v2","version":"v2.2.0","sum":"h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A="}]}"}}

[Trace - 19:22:43.333 PM] Sending notification 'initialized'.

Params: {}

[Trace - 19:22:43.333 PM] Received request 'window/workDoneProgress/create - (1)'.

Params: {"token":"5577006791947779410"}

[Trace - 19:22:43.334 PM] Sending notification 'textDocument/didOpen'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go","languageId":"go","version":1,"text":"// Copyright 2020 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\npackage cache\n\nimport (\n\t"bytes"\n\t"fmt"\n\t"os"\n\t"path/filepath"\n\t"strings"\n\t"syscall"\n\t"unsafe"\n)\n\nfunc init() {\n\tcheckPathCase = darwinCheckPathCase\n}\n\nfunc darwinCheckPathCase(path string) error {\n\t// Darwin provides fcntl(F_GETPATH) to get a path for an arbitrary FD.\n\t// Conveniently for our purposes, it gives the canonical case back. But\n\t// there's no guarantee that it will follow the same route through the\n\t// filesystem that the original path did.\n\n\tpath, err := filepath.Abs(path)\n\tif err != nil {\n\t\treturn err\n\t}\n\tfd, err := syscall.Open(path, os.O_RDONLY, 0)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer syscall.Close(fd)\n\tbuf := make([]byte, 4096) // No MAXPATHLEN in syscall, I think it's 1024, this is bigger.\n\n\t// Wheeee! syscall doesn't expose a way to call Fcntl except FcntlFlock.\n\t// As of writing, it just passes the pointer through, so we can just lie.\n\tif err := syscall.FcntlFlock(uintptr(fd), syscall.F_GETPATH, (*syscall.Flock_t)(unsafe.Pointer(&buf[0]))); err != nil {\n\t\treturn err\n\t}\n\tbuf = buf[:bytes.IndexByte(buf, 0)]\n\n\tisRoot := func(p string) bool {\n\t\treturn p[len(p)-1] == filepath.Separator\n\t}\n\t// Darwin seems to like having multiple names for the same folder. Match as much of the suffix as we can.\n\tfor got, want := path, string(buf); !isRoot(got) && !isRoot(want); got, want = filepath.Dir(got), filepath.Dir(want) {\n\t\tg, w := filepath.Base(got), filepath.Base(want)\n\t\tif !strings.EqualFold(g, w) {\n\t\t\tbreak\n\t\t}\n\t\tif g != w {\n\t\t\treturn fmt.Errorf("case mismatch in path %q: component %q should be %q", path, g, w)\n\t\t}\n\t}\n\treturn nil\n}\n"}}

[Trace - 19:22:43.335 PM] Sending response 'window/workDoneProgress/create - (1)' in 1ms.

Result:

[Trace - 19:22:43.336 PM] Received notification '$/progress'.

Params: {"token":"5577006791947779410","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}}

[Trace - 19:22:43.336 PM] Received request 'workspace/configuration - (2)'.

Params: {"items":[{"scopeUri":"file:///Users/hakim/projects/editor/tools","section":"gopls"}]}

[Trace - 19:22:43.350 PM] Sending response 'workspace/configuration - (2)' in 14ms.

Result: [{"build.experimentalWorkspaceModule":true}]

[Trace - 19:22:43.454 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:22:43 go env for /Users/hakim/projects/editor/tools\n(root /Users/hakim/projects/editor/tools)\n(go version go version go1.17rc1 darwin/amd64)\n(valid build configuration = true)\n(build flags: [])\nGOMOD=/Users/hakim/projects/editor/tools/go.mod\nGOPATH=/Users/hakim/go\nGOROOT=/Users/hakim/sdk/go1.17rc1\nGONOPROXY=\nGOPRIVATE=\nGOPROXY= [https://proxy.golang.org,direct\nGOCACHE=/Users/hakim/Library/Caches/go-build\nGO111MODULE=\nGOMODCACHE=/Users/hakim/go/pkg/mod\nGOSUMDB=sum.golang.org\nGOFLAGS=\nGOINSECURE=\nGONOSUMDB=\n\n"}](https://proxy.golang.org,direct%5CnGOCACHE=/Users/hakim/Library/Caches/go-build%5CnGO111MODULE=%5CnGOMODCACHE=/Users/hakim/go/pkg/mod%5CnGOSUMDB=sum.golang.org%5CnGOFLAGS=%5CnGOINSECURE=%5CnGONOSUMDB=%5Cn%5Cn%22%7D)

[Info  - 7:22:43 PM] 2021/08/04 19:22:43 go env for /Users/hakim/projects/editor/tools

(root /Users/hakim/projects/editor/tools)

(go version go version go1.17rc1 darwin/amd64)

(valid build configuration = true)

(build flags: [])

GOMOD=/Users/hakim/projects/editor/tools/go.mod

GOPATH=/Users/hakim/go

GOROOT=/Users/hakim/sdk/go1.17rc1

GONOPROXY=

GOPRIVATE=

GOPROXY= [https://proxy.golang.org,direct](https://proxy.golang.org,direct) 

GOCACHE=/Users/hakim/Library/Caches/go-build

GO111MODULE=

GOMODCACHE=/Users/hakim/go/pkg/mod

GOSUMDB=sum.golang.org

GOFLAGS=

GOINSECURE=

GONOSUMDB=

[Trace - 19:22:43.616 PM] Sending request 'textDocument/documentSymbol - (1)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Trace - 19:22:43.616 PM] Sending request 'textDocument/codeAction - (2)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"},"range":{"start":{"line":45,"character":28},"end":{"line":45,"character":28}},"context":{"diagnostics":[]}}

[Trace - 19:22:43.616 PM] Sending request 'textDocument/documentLink - (3)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Trace - 19:22:43.940 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:43 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n\n\tsnapshot=0\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[builtin golang.org/x/tools/... golang.org/x/tools/gopls/...]\n\tpackages=0\n"}

[Trace - 19:22:43.940 PM] Received notification '$/progress'.

Params: {"token":"5577006791947779410","value":{"kind":"end","message":"Finished loading packages."}}

[Trace - 19:22:43.940 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:43 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:22:43.940 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:43 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:22:43.940 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:43 initial workspace load failed: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:22:43.940 PM] Received request 'client/registerCapability - (3)'.

Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.{go,mod,sum}","kind":7},{"globPattern":"**/*.*tmpl","kind":7},{"globPattern":"{/Users/hakim/projects/editor/tools/gopls}","kind":7}]}}]}

[Trace - 19:22:44.038 PM] Sending request 'textDocument/foldingRange - (4)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Trace - 19:22:44.050 PM] Received request 'window/workDoneProgress/create - (4)'.

Params: {"token":"8674665223082153551"}

[Trace - 19:22:44.050 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 errors loading workspace: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n\tsnapshot=0\n\tdirectory=file:///Users/hakim/projects/editor/tools\n"}

[Trace - 19:22:44.050 PM] Sending request 'textDocument/codeLens - (5)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Error - 7:22:44 PM] 2021/08/04 19:22:43 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

snapshot=0
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[builtin golang.org/x/tools/... golang.org/x/tools/gopls/...]
packages=0

 

[Error - 7:22:44 PM] 2021/08/04 19:22:43 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Error - 7:22:44 PM] 2021/08/04 19:22:43 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Trace - 19:22:44.088 PM] Sending notification '$/cancelRequest'.

Params: {"id":5}

[Error - 7:22:44 PM] 2021/08/04 19:22:43 initial workspace load failed: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Trace - 19:22:44.121 PM] Sending response 'client/registerCapability - (3)' in 181ms.

Result:

[Trace - 19:22:44.124 PM] Received request 'client/registerCapability - (5)'.

Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}

[Error - 7:22:44 PM] 2021/08/04 19:22:44 errors loading workspace: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

snapshot=0

directory=file:///Users/hakim/projects/editor/tools

[Trace - 19:22:44.185 PM] Sending response 'window/workDoneProgress/create - (4)' in 134ms.

Result:

[Trace - 19:22:44.185 PM] Received notification '$/progress'.

Params: {"token":"8674665223082153551","value":{"kind":"begin","title":"Error loading workspace","message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires \tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires \tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host : packages.Load error"}}

[Trace - 19:22:44.185 PM] Received notification 'textDocument/publishDiagnostics'.

Params: {"uri":"file:///Users/hakim/projects/editor/tools/go.mod","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":25}},"severity":1,"source":"go list","message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error"}]}

[Trace - 19:22:44.185 PM] Received notification 'textDocument/publishDiagnostics'.

Params: {"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"severity":1,"source":"go list","message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error"}]}

[Trace - 19:22:44.222 PM] Sending response 'client/registerCapability - (5)' in 98ms.

Result:

[Trace - 19:22:44.414 PM] Received response 'textDocument/documentSymbol - (1)' in 798ms.

Result: []

[Trace - 19:22:44.415 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Trace - 19:22:44.415 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 DocumentSymbols failed: getting file for DocumentSymbols: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n: packages.Load error\n\tURI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go\n"}

[Trace - 19:22:44.453 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Error - 7:22:44 PM] 2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Error - Received] 19:22:44.550 PM #2 err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

: packages.Load error

[Trace - 19:22:44.551 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Error - 7:22:44 PM] 2021/08/04 19:22:44 DocumentSymbols failed: getting file for DocumentSymbols: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

: packages.Load error

URI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go

[Error - 7:22:44 PM] 2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Error - 7:22:44 PM] Request textDocument/codeAction failed.

Message: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

: packages.Load error

Code: 0

[Trace - 19:22:44.709 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:22:44.712 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:22:44.716 PM] Received response 'textDocument/documentLink - (3)' in 1099ms.

Result: null

[Trace - 19:22:44.716 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Trace - 19:22:44.716 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 failed to compute document links: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n: packages.Load error\n\tURI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go\n"}

[Trace - 19:22:44.716 PM] Received response 'textDocument/foldingRange - (4)' in 677ms.

Result: [{"startLine":0,"startCharacter":54,"endLine":2,"endCharacter":49,"kind":"comment"},{"startLine":6,"startCharacter":8,"endLine":13,"endCharacter":9,"kind":"imports"},{"startLine":16,"startCharacter":13,"endLine":17,"endCharacter":36},{"startLine":20,"startCharacter":45,"endLine":57,"endCharacter":11},{"startLine":21,"startCharacter":71,"endLine":24,"endCharacter":42,"kind":"comment"},{"startLine":27,"startCharacter":16,"endLine":28,"endCharacter":12},{"startLine":31,"startCharacter":16,"endLine":32,"endCharacter":12},{"startLine":37,"startCharacter":73,"endLine":38,"endCharacter":74,"kind":"comment"},{"startLine":39,"startCharacter":120,"endLine":40,"endCharacter":12},{"startLine":44,"startCharacter":32,"endLine":45,"endCharacter":42},{"startLine":48,"startCharacter":119,"endLine":55,"endCharacter":3},{"startLine":50,"startCharacter":31,"endLine":51,"endCharacter":8},{"startLine":53,"startCharacter":13,"endLine":54,"endCharacter":87}]

[Error - Received] 19:22:44.716 PM #5 JSON RPC cancelled

[Error - 7:22:44 PM] 2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Trace - 19:22:44.737 PM] Sending request 'textDocument/documentSymbol - (6)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Trace - 19:22:44.737 PM] Sending request 'textDocument/codeLens - (7)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Error - 7:22:44 PM] 2021/08/04 19:22:44 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Error - 7:22:44 PM] 2021/08/04 19:22:44 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Error - 7:22:44 PM] 2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Error - 7:22:44 PM] 2021/08/04 19:22:44 failed to compute document links: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

: packages.Load error

URI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go

[Trace - 19:22:44.845 PM] Received notification '$/progress'.

Params: {"token":"8674665223082153551","value":{"kind":"report","message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires \tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires \tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host : packages.Load error"}}

[Trace - 19:22:44.845 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 errors loading workspace: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n\tsnapshot=1\n\tdirectory=file:///Users/hakim/projects/editor/tools\n"}

[Error - 7:22:44 PM] 2021/08/04 19:22:44 errors loading workspace: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

snapshot=1

directory=file:///Users/hakim/projects/editor/tools

[Trace - 19:22:44.868 PM] Received response 'textDocument/documentSymbol - (6)' in 131ms.

Result: []

[Trace - 19:22:44.868 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Trace - 19:22:44.868 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:44 DocumentSymbols failed: getting file for DocumentSymbols: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n: packages.Load error\n\tURI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go\n"}

[Trace - 19:22:44.869 PM] Received response 'textDocument/codeLens - (7)' in 132ms.

Result: null

[Error - 7:22:44 PM] 2021/08/04 19:22:44 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Trace - 19:22:44.870 PM] Sending request 'textDocument/documentLink - (8)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Error - 7:22:44 PM] 2021/08/04 19:22:44 DocumentSymbols failed: getting file for DocumentSymbols: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

: packages.Load error

URI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go

[Trace - 19:22:45.003 PM] Received response 'textDocument/documentLink - (8)' in 132ms.

Result: null

[Trace - 19:22:45.003 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:45 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Trace - 19:22:45.003 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:22:45 failed to compute document links: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off\n: packages.Load error\n\tURI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go\n"}

[Error - 7:22:45 PM] 2021/08/04 19:22:45 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Error - 7:22:45 PM] 2021/08/04 19:22:45 failed to compute document links: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: module lookup disabled by GOPROXY=off

: packages.Load error

URI=file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go

[Trace - 19:23:14.442 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:23:14 background imports cache refresh starting\n"}

[Info  - 7:23:14 PM] 2021/08/04 19:23:14 background imports cache refresh starting

[Trace - 19:23:14.561 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:23:14 background refresh finished after 140.725939ms\n"}

[Info  - 7:23:14 PM] 2021/08/04 19:23:14 background refresh finished after 140.725939ms

[Trace - 19:29:17.625 PM] Sending request 'textDocument/hover - (9)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"},"position":{"line":48,"character":50}}

[Trace - 19:29:17.764 PM] Received response 'textDocument/hover - (9)' in 138ms.

Result: null

[Trace - 19:29:17.764 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:29:17 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/tools/ [gopls@v1.9999999.0-goplsworkspace](mailto:gopls@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/BurntSushi/toml@v0.3.1: module lookup disabled by GOPROXY=off\ngo: golang.org/x/tools/ [gopls@v1.9999999.0-goplsworkspace](mailto:gopls@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/BurntSushi/toml@v0.3.1: module lookup disabled by GOPROXY=off\n\n\tsnapshot=1\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496\n\tquery=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]\n\tpackages=0\n"}

[Error - 7:29:17 PM] 2021/08/04 19:29:17 go/packages.Load: err: exit status 1: stderr: go: golang.org/x/tools/ [gopls@v1.9999999.0-goplsworkspace](mailto:gopls@v1.9999999.0-goplsworkspace)  requires

github.com/BurntSushi/toml@v0.3.1: module lookup disabled by GOPROXY=off

go: golang.org/x/tools/ [gopls@v1.9999999.0-goplsworkspace](mailto:gopls@v1.9999999.0-goplsworkspace)  requires

github.com/BurntSushi/toml@v0.3.1: module lookup disabled by GOPROXY=off

snapshot=1
directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod4162838496
query=[file=/Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go]
packages=0

 

[Trace - 19:31:38.210 PM] Sending request 'textDocument/documentSymbol - (10)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/internal/lsp/cache/os_darwin.go"}}

[Trace - 19:31:38.393 PM] Sending notification 'textDocument/didOpen'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","languageId":"go.mod","version":1,"text":"module golang.org/x/tools/gopls\n\ngo 1.17\n\nrequire (\n\tgithub.com/BurntSushi/toml v0.3.1 // indirect\n\tgithub.com/google/go-cmp v0.5.5\n\tgithub.com/google/safehtml v0.0.2 // indirect\n\tgithub.com/jba/templatecheck v0.6.0\n\tgithub.com/sanity-io/litter v1.5.0\n\tgithub.com/sergi/go-diff v1.1.0\n\tgolang.org/x/mod v0.4.2\n\tgolang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect\n\tgolang.org/x/sys v0.0.0-20210510120138-977fb7262007\n\tgolang.org/x/text v0.3.6 // indirect\n\tgolang.org/x/tools v0.1.0\n\tgolang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect\n\thonnef.co/go/tools v0.2.0\n\tmvdan.cc/gofumpt v0.1.1\n\tmvdan.cc/xurls/v2 v2.2.0\n)\n\nreplace golang.org/x/tools => ../\n"}}

[Trace - 19:31:38.393 PM] Sending request 'textDocument/codeAction - (11)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error","severity":1,"source":"go list"}],"only":["quickfix"]}}

[Trace - 19:31:38.393 PM] Sending request 'textDocument/documentLink - (12)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Trace - 19:31:38.394 PM] Sending request 'textDocument/codeAction - (13)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error","severity":1,"source":"go list"}]}}

[Trace - 19:31:38.394 PM] Sending notification '$/cancelRequest'.

Params: {"id":10}

[Trace - 19:31:38.394 PM] Sending request 'textDocument/documentSymbol - (14)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Error - Received] 19:31:38.410 PM #10 JSON RPC cancelled

[Trace - 19:31:38.411 PM] Received response 'textDocument/codeAction - (11)' in 17ms.

Result: null

[Trace - 19:31:38.411 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:31:38.411 PM] Received response 'textDocument/documentLink - (12)' in 17ms.

Result: [{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":27}},"target":"https://pkg.go.dev/mod/github.com/BurntSushi/toml@v0.3.1?utm_source=gopls"},{"range":{"start":{"line":6,"character":1},"end":{"line":6,"character":25}},"target":"https://pkg.go.dev/mod/github.com/google/go-cmp@v0.5.5?utm_source=gopls"},{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":27}},"target":"https://pkg.go.dev/mod/github.com/google/safehtml@v0.0.2?utm_source=gopls"},{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":29}},"target":"https://pkg.go.dev/mod/github.com/jba/templatecheck@v0.6.0?utm_source=gopls"},{"range":{"start":{"line":9,"character":1},"end":{"line":9,"character":28}},"target":"https://pkg.go.dev/mod/github.com/sanity-io/litter@v1.5.0?utm_source=gopls"},{"range":{"start":{"line":10,"character":1},"end":{"line":10,"character":25}},"target":"https://pkg.go.dev/mod/github.com/sergi/go-diff@v1.1.0?utm_source=gopls"},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":17}},"target":"https://pkg.go.dev/mod/golang.org/x/mod@v0.4.2?utm_source=gopls"},{"range":{"start":{"line":12,"character":1},"end":{"line":12,"character":18}},"target":"https://pkg.go.dev/mod/golang.org/x/ [sync@v0.0.0-20210220032951-036812b2e83c](mailto:sync@v0.0.0-20210220032951-036812b2e83c) ?utm_source=gopls"},{"range":{"start":{"line":13,"character":1},"end":{"line":13,"character":17}},"target":"https://pkg.go.dev/mod/golang.org/x/sys@v0.0.0-20210510120138-977fb7262007?utm_source=gopls"},{"range":{"start":{"line":14,"character":1},"end":{"line":14,"character":18}},"target":"https://pkg.go.dev/mod/golang.org/x/text@v0.3.6?utm_source=gopls"},{"range":{"start":{"line":15,"character":1},"end":{"line":15,"character":19}},"target":"https://pkg.go.dev/mod/golang.org/x/tools@v0.1.0?utm_source=gopls"},{"range":{"start":{"line":16,"character":1},"end":{"line":16,"character":21}},"target":"https://pkg.go.dev/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1?utm_source=gopls"},{"range":{"start":{"line":17,"character":1},"end":{"line":17,"character":19}},"target":"https://pkg.go.dev/mod/honnef.co/go/tools@v0.2.0?utm_source=gopls"},{"range":{"start":{"line":18,"character":1},"end":{"line":18,"character":17}},"target":"https://pkg.go.dev/mod/mvdan.cc/gofumpt@v0.1.1?utm_source=gopls"},{"range":{"start":{"line":19,"character":1},"end":{"line":19,"character":18}},"target":"https://pkg.go.dev/mod/mvdan.cc/xurls/v2@v2.2.0?utm_source=gopls"}]

[Trace - 19:31:38.411 PM] Received response 'textDocument/codeAction - (13)' in 17ms.

Result: null

[Trace - 19:31:38.411 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:31:38.411 PM] Received response 'textDocument/documentSymbol - (14)' in 17ms.

Result: []

[Trace - 19:31:38.411 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 DocumentSymbols failed: getting file for DocumentSymbols: no packages for non-Go file file:///Users/hakim/projects/editor/tools/gopls/go.mod\n\tURI=file:///Users/hakim/projects/editor/tools/gopls/go.mod\n"}

[Error - 7:31:38 PM] 2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Error - 7:31:38 PM] 2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Error - 7:31:38 PM] 2021/08/04 19:31:38 DocumentSymbols failed: getting file for DocumentSymbols: no packages for non-Go file file:///Users/hakim/projects/editor/tools/gopls/go.mod

URI=file:///Users/hakim/projects/editor/tools/gopls/go.mod

[Trace - 19:31:38.661 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Trace - 19:31:38.662 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Error - 7:31:38 PM] 2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Error - 7:31:38 PM] 2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Trace - 19:31:38.672 PM] Sending request 'textDocument/foldingRange - (15)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Trace - 19:31:38.672 PM] Sending request 'textDocument/codeLens - (16)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Trace - 19:31:38.672 PM] Sending request 'textDocument/codeAction - (17)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"context":{"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get "https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error","severity":1,"source":"go list"}]}}

[Trace - 19:31:38.673 PM] Received response 'textDocument/foldingRange - (15)' in 1ms.

Result: null

[Trace - 19:31:38.673 PM] Received response 'textDocument/codeLens - (16)' in 1ms.

Result: [{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"command":{"title":"Run go mod tidy","command":"gopls.tidy","arguments":[{"URIs":["file:///Users/hakim/projects/editor/tools/gopls/go.mod"]}]}},{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"command":{"title":"Create vendor directory","command":"gopls.vendor","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}]}},{"range":{"start":{"line":4,"character":0},"end":{"line":20,"character":1}},"command":{"title":"Check for upgrades","command":"gopls.check_upgrades","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","Modules":["github.com/BurntSushi/toml","github.com/google/go-cmp","github.com/google/safehtml","github.com/jba/templatecheck","github.com/sanity-io/litter","github.com/sergi/go-diff","golang.org/x/mod","golang.org/x/sync","golang.org/x/sys","golang.org/x/text","golang.org/x/tools","golang.org/x/xerrors","honnef.co/go/tools","mvdan.cc/gofumpt","mvdan.cc/xurls/v2"]}]}},{"range":{"start":{"line":4,"character":0},"end":{"line":20,"character":1}},"command":{"title":"Upgrade transitive dependencies","command":"gopls.upgrade_dependency","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","GoCmdArgs":["-d","-u","-t","./..."],"AddRequire":false}]}},{"range":{"start":{"line":4,"character":0},"end":{"line":20,"character":1}},"command":{"title":"Upgrade direct dependencies","command":"gopls.upgrade_dependency","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","GoCmdArgs":["-d","github.com/BurntSushi/toml","github.com/google/go-cmp","github.com/google/safehtml","github.com/jba/templatecheck","github.com/sanity-io/litter","github.com/sergi/go-diff","golang.org/x/mod","golang.org/x/sync","golang.org/x/sys","golang.org/x/text","golang.org/x/tools","golang.org/x/xerrors","honnef.co/go/tools","mvdan.cc/gofumpt","mvdan.cc/xurls/v2"],"AddRequire":false}]}}]

[Trace - 19:31:38.674 PM] Received response 'textDocument/codeAction - (17)' in 1ms.

Result: null

[Trace - 19:31:38.674 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n"}

[Error - 7:31:38 PM] 2021/08/04 19:31:38 workspace packages: diagnosing file:///Users/hakim/projects/editor/tools/gopls/go.mod: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

[Trace - 19:31:38.819 PM] Received notification '$/progress'.

Params: {"token":"8674665223082153551","value":{"kind":"report","message":"err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires \tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires \tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host : packages.Load error"}}

[Trace - 19:31:38.819 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:38 errors loading workspace: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\ngo: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires\n\tgithub.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod\](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod%5C) ": dial tcp: lookup proxy.golang.org: no such host\n: packages.Load error\n\tsnapshot=2\n\tdirectory=file:///Users/hakim/projects/editor/tools\n"}

[Error - 7:31:38 PM] 2021/08/04 19:31:38 errors loading workspace: err: exit status 1: stderr: go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

go: golang.org/x/ [tools@v1.9999999.0-goplsworkspace](mailto:tools@v1.9999999.0-goplsworkspace)  requires

github.com/yuin/goldmark@v1.3.5: Get " [https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod](https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.3.5.mod) ": dial tcp: lookup proxy.golang.org: no such host

: packages.Load error

snapshot=2

directory=file:///Users/hakim/projects/editor/tools

[Trace - 19:31:38.877 PM] Sending request 'textDocument/foldingRange - (18)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Trace - 19:31:38.880 PM] Received response 'textDocument/foldingRange - (18)' in 3ms.

Result: null

[Trace - 19:31:39.512 PM] Sending request 'textDocument/documentSymbol - (19)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Trace - 19:31:39.513 PM] Received response 'textDocument/documentSymbol - (19)' in 1ms.

Result: []

[Trace - 19:31:39.513 PM] Received notification 'window/logMessage'.

Params: {"type":1,"message":"2021/08/04 19:31:39 DocumentSymbols failed: getting file for DocumentSymbols: no packages for non-Go file file:///Users/hakim/projects/editor/tools/gopls/go.mod\n\tURI=file:///Users/hakim/projects/editor/tools/gopls/go.mod\n"}

[Error - 7:31:39 PM] 2021/08/04 19:31:39 DocumentSymbols failed: getting file for DocumentSymbols: no packages for non-Go file file:///Users/hakim/projects/editor/tools/gopls/go.mod

URI=file:///Users/hakim/projects/editor/tools/gopls/go.mod

[Trace - 19:31:39.978 PM] Sending request 'textDocument/codeLens - (20)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}}

[Trace - 19:31:39.979 PM] Received response 'textDocument/codeLens - (20)' in 0ms.

Result: [{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"command":{"title":"Run go mod tidy","command":"gopls.tidy","arguments":[{"URIs":["file:///Users/hakim/projects/editor/tools/gopls/go.mod"]}]}},{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":31}},"command":{"title":"Create vendor directory","command":"gopls.vendor","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"}]}},{"range":{"start":{"line":4,"character":0},"end":{"line":20,"character":1}},"command":{"title":"Check for upgrades","command":"gopls.check_upgrades","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","Modules":["github.com/BurntSushi/toml","github.com/google/go-cmp","github.com/google/safehtml","github.com/jba/templatecheck","github.com/sanity-io/litter","github.com/sergi/go-diff","golang.org/x/mod","golang.org/x/sync","golang.org/x/sys","golang.org/x/text","golang.org/x/tools","golang.org/x/xerrors","honnef.co/go/tools","mvdan.cc/gofumpt","mvdan.cc/xurls/v2"]}]}},{"range":{"start":{"line":4,"character":0},"end":{"line":20,"character":1}},"command":{"title":"Upgrade transitive dependencies","command":"gopls.upgrade_dependency","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","GoCmdArgs":["-d","-u","-t","./..."],"AddRequire":false}]}},{"range":{"start":{"line":4,"character":0},"end":{"line":20,"character":1}},"command":{"title":"Upgrade direct dependencies","command":"gopls.upgrade_dependency","arguments":[{"URI":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","GoCmdArgs":["-d","github.com/BurntSushi/toml","github.com/google/go-cmp","github.com/google/safehtml","github.com/jba/templatecheck","github.com/sanity-io/litter","github.com/sergi/go-diff","golang.org/x/mod","golang.org/x/sync","golang.org/x/sys","golang.org/x/text","golang.org/x/tools","golang.org/x/xerrors","honnef.co/go/tools","mvdan.cc/gofumpt","mvdan.cc/xurls/v2"],"AddRequire":false}]}}]

[Trace - 19:31:42.601 PM] Sending request 'textDocument/codeAction - (21)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"range":{"start":{"line":4,"character":9},"end":{"line":4,"character":9}},"context":{"diagnostics":[]}}

[Trace - 19:31:42.602 PM] Received response 'textDocument/codeAction - (21)' in 0ms.

Result: null

[Trace - 19:31:43.340 PM] Sending request 'textDocument/hover - (22)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"position":{"line":0,"character":9}}

[Trace - 19:31:43.340 PM] Received response 'textDocument/hover - (22)' in 0ms.

Result: null

[Trace - 19:31:45.271 PM] Sending request 'textDocument/hover - (23)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"position":{"line":4,"character":9}}

[Trace - 19:31:45.272 PM] Received response 'textDocument/hover - (23)' in 0ms.

Result: null

[Trace - 19:31:46.058 PM] Sending request 'workspace/executeCommand - (24)'.

Params: {"command":"gopls.tidy","arguments":[{"URIs":["file:///Users/hakim/projects/editor/tools/gopls/go.mod"]}]}

[Trace - 19:31:46.059 PM] Received request 'window/workDoneProgress/create - (6)'.

Params: {"token":"6129484611666145821"}

[Trace - 19:31:46.059 PM] Sending response 'window/workDoneProgress/create - (6)' in 0ms.

Result:

[Trace - 19:31:46.060 PM] Received notification '$/progress'.

Params: {"token":"6129484611666145821","value":{"kind":"begin","title":"Running go mod tidy","cancellable":true,"message":"Running..."}}

[Trace - 19:32:14.702 PM] Received notification '$/progress'.

Params: {"token":"6129484611666145821","value":{"kind":"end","message":"completed"}}

[Trace - 19:32:14.703 PM] Received response 'workspace/executeCommand - (24)' in 28644ms.

Result: null

[Trace - 19:32:15.379 PM] Sending notification 'workspace/didChangeWatchedFiles'.

Params: {"changes":[{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.sum","type":2}]}

[Trace - 19:32:35.852 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:35 go/packages.Load\n\tsnapshot=3\n\tdirectory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod2643537537\n\tquery=[builtin golang.org/x/tools/... golang.org/x/tools/gopls/...]\n\tpackages=550\n"}

[Info  - 7:32:35 PM] 2021/08/04 19:32:35 go/packages.Load

snapshot=3

directory=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/gopls-workspace-mod2643537537

query=[builtin golang.org/x/tools/... golang.org/x/tools/gopls/...]

packages=550

[Trace - 19:32:37.309 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:37 discovered missing identifiers: map[memRecordCycle:true pageBits:true]\n\tpackage="runtime"\n"}

[Info  - 7:32:37 PM] 2021/08/04 19:32:37 discovered missing identifiers: map[memRecordCycle:true pageBits:true]

package="runtime"

[Trace - 19:32:37.390 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:37 falling back to safe trimming due to type errors: [/Users/hakim/sdk/go1.17rc1/src/internal/buildcfg/exp.go:24:38: 2-valued (func() (goexperiment.Flags, goexperiment.Flags) literal)() (value of type (goexperiment.Flags, goexperiment.Flags)) where single value is expected] or still-missing identifiers: map[]\n\tpackage="internal/buildcfg"\n"}

[Trace - 19:32:37.394 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:37 falling back to safe trimming due to type errors: [/Users/hakim/sdk/go1.17rc1/src/os/user/cgo_lookup_unix.go:200:19: int not declared by package C /Users/hakim/sdk/go1.17rc1/src/os/user/cgo_lookup_unix.go:203:16: bufferKind(C._SC_GETPW_R_SIZE_MAX) (value of type bufferKind) is not constant /Users/hakim/sdk/go1.17rc1/src/os/user/cgo_lookup_unix.go:204:16: bufferKind(C._SC_GETGR_R_SIZE_MAX) (value of type bufferKind) is not constant] or still-missing identifiers: map[]\n\tpackage="os/user"\n"}

[Info  - 7:32:37 PM] 2021/08/04 19:32:37 falling back to safe trimming due to type errors: [/Users/hakim/sdk/go1.17rc1/src/internal/buildcfg/exp.go:24:38: 2-valued (func() (goexperiment.Flags, goexperiment.Flags) literal)() (value of type (goexperiment.Flags, goexperiment.Flags)) where single value is expected] or still-missing identifiers: map[]

package="internal/buildcfg"

[Info  - 7:32:37 PM] 2021/08/04 19:32:37 falling back to safe trimming due to type errors: [/Users/hakim/sdk/go1.17rc1/src/os/user/cgo_lookup_unix.go:200:19: int not declared by package C /Users/hakim/sdk/go1.17rc1/src/os/user/cgo_lookup_unix.go:203:16: bufferKind(C._SC_GETPW_R_SIZE_MAX) (value of type bufferKind) is not constant /Users/hakim/sdk/go1.17rc1/src/os/user/cgo_lookup_unix.go:204:16: bufferKind(C._SC_GETGR_R_SIZE_MAX) (value of type bufferKind) is not constant] or still-missing identifiers: map[]

package="os/user"

[Trace - 19:32:37.833 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:37 discovered missing identifiers: map[message:true]\n\tpackage="internal/profile"\n"}

[Info  - 7:32:37 PM] 2021/08/04 19:32:37 discovered missing identifiers: map[message:true]

package="internal/profile"

[Trace - 19:32:37.885 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:37 discovered missing identifiers: map[options:true]\n\tpackage="vendor/golang.org/x/text/unicode/bidi"\n"}

[Info  - 7:32:37 PM] 2021/08/04 19:32:37 discovered missing identifiers: map[options:true]

package="vendor/golang.org/x/text/unicode/bidi"

[Trace - 19:32:38.269 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:38 discovered missing identifiers: map[markdown:true]\n\tpackage="github.com/yuin/goldmark"\n"}

[Info  - 7:32:38 PM] 2021/08/04 19:32:38 discovered missing identifiers: map[markdown:true]

package="github.com/yuin/goldmark"

[Trace - 19:32:38.473 PM] Received notification 'window/logMessage'.

Params: {"type":3,"message":"2021/08/04 19:32:38 discovered missing identifiers: map[parser:true]\n\tpackage="golang.org/x/net/html"\n"}

[Info  - 7:32:38 PM] 2021/08/04 19:32:38 discovered missing identifiers: map[parser:true]

package="golang.org/x/net/html"

[Trace - 19:32:39.802 PM] Received notification '$/progress'.

Params: {"token":"8674665223082153551","value":{"kind":"end","message":"Done."}}

[Trace - 19:32:39.871 PM] Received notification 'textDocument/publishDiagnostics'.

Params: {"uri":"file:///Users/hakim/projects/editor/tools/go.mod","diagnostics":[]}

[Trace - 19:32:39.871 PM] Received notification 'textDocument/publishDiagnostics'.

Params: {"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod","version":1,"diagnostics":[]}

[Trace - 19:32:40.128 PM] Sending request 'textDocument/codeAction - (25)'.

Params: {"textDocument":{"uri":"file:///Users/hakim/projects/editor/tools/gopls/go.mod"},"range":{"start":{"line":4,"character":9},"end":{"line":4,"character":9}},"context":{"diagnostics":[]}}

[Trace - 19:32:40.128 PM] Received response 'textDocument/codeAction - (25)' in 0ms.

Result: null
pdkcd3nj

pdkcd3nj1#

这当然是可疑的不良行为,但你是否碰巧在工作区中打开了go.mod文件?这可能会抑制来自磁盘上更改的重新加载。
我当然可以尝试重现,但我想先检查一下:)

u91tlkcl

u91tlkcl2#

我没有打开go.mod文件(并在确保没有其他文件打开后复制了它)。但是另一个消息:只有在启用实验工作区模块功能时,才会发生初始工作区加载失败。当未启用该功能时,初始工作区加载将完成并发送关于所有缺失导入模块的诊断信息。

gab6jxml

gab6jxml3#

我明白为什么会出现这个问题——我认为这是因为运行 go mod tidy 实际上并没有修改 go.sum 文件,因为在一个全新的克隆中,它应该是正确的。(从技术上讲,现在这并不是真的,因为 go.mod 文件必须对 1.16 和 1.17 都是整洁的。)我不确定如何解决这个问题,但也许我们需要一个快速修复选项,以便用户操作重新运行工作区加载?

7vhp5slm

7vhp5slm4#

与其添加一个特殊的重新加载工作区快速修复,我们应该改进错误信息,使其明确表明加载失败是因为缺少互联网(下载失败)。

wfveoks0

wfveoks05#

https://go.dev/cl/419500提到了这个问题:internal/lsp/cache: allow network whenever reloading the workspace

qncylg1j

qncylg1j6#

FWIW,这个问题至少部分由 https://go.dev/cl/419500 解决。现在执行 go mod tidy 或者仅执行 touch go.mod 就可以解决这些错误。
尽管如此,我们仍然可以对错误信息做得更好。

相关问题