ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
Was writing down some helpers using reflect.Type, had hit autocomplete on a (wrong) copilot suggestion for the line
for _, field := range paramType.NumField() { where paramType is of reflect.Type type
gopls version: v0.16.1/go1.22.5 gopls flags: update flags: proxy extension version: 0.41.4 environment: Visual Studio Code darwin initialization error: undefined issue timestamp: Wed, 10 Jul 2024 12:55:04 GMT restart history: Tue, 09 Jul 2024 21:23:17 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
Was writing down some helpers using reflect.Type, had hit autocomplete on a (wrong) copilot suggestion for the line
for _, field := range paramType.NumField() {
where paramType is ofreflect.Type
typegopls stats -anon
{ "DirStats": { "Files": 13733, "TestdataFiles": 0, "GoFiles": 1619, "ModFiles": 2, "Dirs": 1694 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.5", "GoplsVersion": "v0.16.1", "InitialWorkspaceLoadDuration": "1.627212417s", "MemStats": { "HeapAlloc": 106721368, "HeapInUse": 191602688, "TotalAlloc": 1306128816 }, "WorkspaceStats": { "Files": { "Total": 5224, "Largest": 1047179, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.5", "AllPackages": { "Packages": 1344, "LargestPackage": 155, "CompiledGoFiles": 5223, "Modules": 158 }, "WorkspacePackages": { "Packages": 453, "LargestPackage": 21, "CompiledGoFiles": 1095, "Modules": 1 }, "Diagnostics": 10 } ] } }OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.
NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE. DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.