-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode always show bug BrokenImport
#2124
Comments
Create |
Can you try to restart the language server? |
I have tried the following ways but it doesn't work
|
Sorry for the trouble. |
I fixed my issue by being here
|
I'm having this same problem in VSCode, running on GitHub Codespaces. I have a Go module, with a single code file, and one additional package underneath the module. My VSCode editor is opened up to a parent directory, not the module directory itself, because the module is contained in a subfolder of my project.
|
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
All setting are default
Describe the bug
I created a project with only 1 file main.go and only printed the screen 123. Although when I type
go run main.go
from the terminal of vscode everything works normally, but vscode always show bellow errorI don't understand why and don't know how to fix this error ???
Screenshots or recordings
The text was updated successfully, but these errors were encountered: