vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

variable view won't expand this nested map ...

Open breathe opened this issue 2 years ago • 2 comments

What version of Go, VS Code & VS Code Go extension are you using?

Version Information
  • Run go version to get version of Go from the VS Code integrated terminal.
    • go version go1.18.3 darwin/arm64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
    • Build info

golang.org/x/tools/gopls v0.9.1 golang.org/x/tools/[email protected] h1:SigsTL4Hpv3a6b/a7oPCLRv5QUeSM6PZNdta1oKY4B0= github.com/BurntSushi/[email protected] h1:dtDWrepsVPfW9H/4y7dDgFc2MBUSeJhlaDtK13CxFlU= github.com/google/[email protected] h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= golang.org/x/exp/[email protected] h1:qyrTQ++p1afMkO4DPEeLGq/3oTsdlvdH4vqZUBWzUKM= golang.org/x/[email protected] h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= golang.org/x/[email protected] h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/[email protected] h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c= golang.org/x/[email protected] h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/[email protected] h1:Ljlba2fVWOA1049JjsKii44g8nZN2GjpxMlzVc8AnQM= golang.org/x/[email protected] h1:r5bbIROBQtRRgoutV8Q3sFY58VzHW6jMBYl48ANSyS4= honnef.co/go/[email protected] h1:ytYb4rOqyp1TSa2EPvNVwtPQJctSELKaMyLfqNP4+34= mvdan.cc/[email protected] h1:kTojdZo9AcEYbQYhGuLf/zszYthRdhDNDUi2JKTxas4= mvdan.cc/xurls/[email protected] h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc= go: go1.18.3

  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.

    • 1.69.2 3b889b090b5ad5793f524b5d1d39fda662b96a2a arm64
  • Check your installed extensions to get the version of the VS Code Go extension

    • v0.35.1
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.

    • Checking configured tools.... GOBIN: undefined toolsGopath: gopath: /Users/ncohen/go GOROOT: /usr/local/go PATH: /Users/ncohen/fauna/google-cloud-sdk/bin:/Users/ncohen/fauna/ops/util/cache/dependencies/hashicorp/bin:/Users/ncohen/fauna/ops/bin:/Users/ncohen/miniconda3/bin:/Users/ncohen/miniconda3/condabin:/Users/ncohen/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/Users/ncohen/fauna/backup-restore-functions/node_modules/.bin:/Users/ncohen/go/bin:/Users/ncohen/bin:/Users/ncohen/.deno/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/go/bin

    go: /usr/local/go/bin/go: go version go1.18.3 darwin/arm64

    gotests: /Users/ncohen/go/bin/gotests (version: v1.6.0 built with go: go1.18) gomodifytags: /Users/ncohen/go/bin/gomodifytags (version: v1.16.0 built with go: go1.18) impl: /Users/ncohen/go/bin/impl (version: v1.1.0 built with go: go1.18) goplay: /Users/ncohen/go/bin/goplay (version: v1.0.0 built with go: go1.18) dlv: /Users/ncohen/go/bin/dlv (version: v1.9.0 built with go: go1.18.3) staticcheck: /Users/ncohen/go/bin/staticcheck (version: v0.2.2 built with go: go1.18) gopls: /Users/ncohen/go/bin/gopls (version: v0.9.1 built with go: go1.18.3)

go env Workspace Folder (ops/): /Users/ncohen/fauna/ops

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file. Share all the settings with the go. or ["go"] or gopls prefixes.

  "go.toolsManagement.autoUpdate": true,
  "[go]": {
    "editor.defaultFormatter": "golang.go"
  },

Describe the bug

I can't get the debugger view to expand certain values ... The nested map shown below shows length 2 but I can't see the other key/value ...

image

Steps to reproduce the behavior:

  1. Try to debug a deeply nested response from the faunadb driver

breathe avatar Aug 04 '22 21:08 breathe

Hmm, as you said this only applies to certain values; I wasn't able to naively reproduce: image

CC @suzmue, who might know why this happens.

findleyr avatar Aug 08 '22 14:08 findleyr

I think this is a duplicate of #2351. To verify, could you try to install delve at tip and see if that fixes the issue? Thanks.

https://github.com/go-delve/delve/tree/master/Documentation/installation

suzmue avatar Aug 08 '22 14:08 suzmue

Since this is a dupe, let's close. @breathe please reopen if this isn't fixed for you in the next delve release.

findleyr avatar Aug 11 '22 16:08 findleyr

Sorry I wasn't able to test when I saw the first message and then forgot to circle back.

I just tested with delve at tip of master branch and it definitely seems to work for my case! Thanks a ton!!!! ❤️ ❤️

image

breathe avatar Aug 11 '22 17:08 breathe