Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Delve shows difference between nil and zero-len/zero-cap slice, Go-extension does not #2813

Description

Even though delve is showing the difference between nil slices, and zero-len/zero-cap slices, the VSCode interface to the debugger is not doing so, and I appear to have the recent 0.11.7 release.
I also only have a single dlv.exe on my system of ver 1.2.0

Delve showning nil vs zero-len/zero-cap slice
image

VScode Go extension not showing the difference
image

Test code:

package main


import "fmt"

func main() {
	var x []string
	y:=[]string{}
	fmt.Println(x,y)

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions