Skip to content

Wrong broken import hint #2988

@ForTheFinder

Description

@ForTheFinder

vscode version 1.82.2
go version 1.19
vscode go extension version 0.39.1
gopls 0.13.2
windows amd64

when I run 'go env':
GO111MODULE=auto
GOROOT=C:\Program Files\Go
GOPATH=C:\Users\W\go
GOENV=C:\Users\W\AppData\Roaming\go\env

Describe the bug

image
this is my project, and the whole thing is under gopath,like this "C:\Users\W\go\src\study"

the hello.go like this
image
and the go.mod like this
image
and the go.mod in greetings is the most simple form like
--------start--------
module example.com/greetings

go 1.19
--------end--------
the hello project run just fine , I got what I want like this (Hi, Gladys. Welcome!) when I use command 'go run .' in 'src\study\hello'

problem

the problem is this hint
image
it can't read the right module when the code run well

Metadata

Metadata

Assignees

No one assigned

    Labels

    WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions