-
Notifications
You must be signed in to change notification settings - Fork 645
gorename: can't find package containing... when using modules #2074
Comments
I'm having the same issue, unfortunately it appears that the More info: #1954 (comment) |
I thought @ramya-rao-a had already forked |
|
Using with If you still curious, You can track current status about |
Slight update in the Go Modules in 2019 blog post today. It looks like the new golang.org/x/tools/go/packages package will be the place where this, and other IDE integrations will implemented with support for modules. |
@ramya-rao-a go module in vscode now supported, please review this issue |
gopls has supported go rename(golang/go#27571 (comment)), and vscode-go has supported it too. Please update your gopls codes and only use this settings:
|
Thanks for the update @douglarek and @shaodahong @douglarek The value for the setting The only 2 things to ensure are
|
ok, found need update |
Steps to Reproduce:
main.go
, select themain
identifier, and 'Rename symbol' to anything.GOPATH
is not set and there is a validgo.mod
file in the module root.The text was updated successfully, but these errors were encountered: