Open ch1ll0ut1 opened 2 years ago
Workaround solution: Disable feature by unchecking "Go: Enable Code Lens" in VSCode settings. This still leaves a Run test button on the side and only removes the hovering buttons above the test function.
We've seen a similar problem related to parser error recovery, but that doesn't trigger on every keystroke. Can you confirm that this does indeed occur even when you type something that doesn't change the syntax (e.g. within a comment)? thanks.
We've seen a similar problem related to parser error recovery, but that doesn't trigger on every keystroke. Can you confirm that this does indeed occur even when you type something that doesn't change the syntax (e.g. within a comment)? thanks.
Oh yes you are right, not every keystroke. I think it might be only keystrokes that change the code compile success state. So like invalid syntax to valid syntax and the other way around.
I've also noticed that if a task is running with debugging, autocomplete and definition infos are missing randomly. As well as when there is a syntax error higher up in the code. All code intelligence infos are missing in code below that syntax error.
Its quite frustrating because it sometimes gives the feeling of its loading but actually the info never comes. (automcomplete entries & definition tooltip). Typescript doesn't seem to have any of this issues except that infos can take longer to load in bigger projects. But my current Go project is very small with around 10 files.
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_. - go1.18.4 darwin/amd64 * Run `gopls -v version` to get version of Gopls from _the VS Code integrated terminal_. - command not found: gopls * Run `code -v` or `code-insiders -v` to get version of VS Code or VS Code Insiders. - 1.70.2 e4503b30fc78200f846c62cf8091b76ff5547662 x64 * Check your installed extensions to get the version of the VS Code Go extension - v0.35.2 * Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > `Go: Locate Configured Go Tools` command. - GOBIN: undefined toolsGopath: gopath: /Users/.../go GOROOT: /usr/local/go PATH: /usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin PATH (vscode launched with): /usr/bin:/bin:/usr/sbin:/sbin go: /usr/local/go/bin/go: go version go1.18.4 darwin/amd64 gotests: /Users/.../go/bin/gotests (version: v1.6.0 built with go: go1.18.4) gomodifytags: /Users/.../go/bin/gomodifytags (version: v1.16.0 built with go: go1.18.4) impl: /Users/.../go/bin/impl (version: v1.1.0 built with go: go1.18.4) goplay: /Users/.../go/bin/goplay (version: v1.0.0 built with go: go1.18.4) dlv: /Users/.../go/bin/dlv (version: v1.9.0 built with go: go1.18.4) staticcheck: /Users/.../go/bin/staticcheck (version: v0.3.2 built with go: go1.18.4) gopls: /Users/.../go/bin/gopls (version: v0.9.4 built with go: go1.18.4) go env Workspace Folder (project): /Users/.../Projects/project
Share the Go related settings you have added/edited
Describe the bug
When editing a test file, 2 buttons are displayed above a test "run test | debug test".
These buttons will disappear and re-appear with every key stroke.
It might not technically be a bug but for DX it is because on every key stroke all the lines after the buttons will move up and down. It's very distracting.
Steps to reproduce the behavior:
Screenshots or recordings
https://user-images.githubusercontent.com/6835266/188111680-6e6b6133-069c-45b2-a75f-04cede2dd851.mov