name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: ''


Please direct general questions to:

Please review the documentation before filing an issue. Helpful pages include:

Please answer these questions before submitting your issue. Thanks!

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

  • Run go version to get version of Go
  • Run gopls -v version to get version of Gopls if you are using the language server.
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders
  • Check your installed extensions to get the version of the VS Code Go extension
  • Run go env to get the go development environment details

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.

Describe the bug

A clear and concise description of what the bug. A clear and concise description of what you expected to happen.

Steps to reproduce the behavior:

  1. Go to ‘...’
  2. Click on ‘....’
  3. See error

Screenshots or recordings

If applicable, add screenshots or recordings to help explain your problem.