You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a module with major version in its module path, namely github.com/caddyserver/caddy/v2. The module declares the interface:
type Module interface {
CaddyModule() ModuleInfo
}
In a different package within the module, I have a file with the following:
type Something struct{}
var _ caddy.Module = (*Something)(nil)
As expected, vscode-go tells me it that Something does not implement the interface, and suggests to implement caddy.Module. Click on the suggestion to implement (generate stub for) caddy.Module interface.
This is because the package name at the root of the module is caddy, not v2.
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
mohammed90
added
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
labels
Jan 8, 2024
gopls version
v0.14.2
go env
What did you do?
There's a module with major version in its module path, namely
github.com/caddyserver/caddy/v2
. The module declares the interface:In a different package within the module, I have a file with the following:
As expected, vscode-go tells me it that Something does not implement the interface, and suggests to implement caddy.Module. Click on the suggestion to implement (generate stub for)
caddy.Module
interface.What did you see happen?
The generated stub implementation was:
What did you expect to see?
This is because the package name at the root of the module is
caddy
, notv2
.Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: