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
xieyuschen opened this issue
May 18, 2025
· 2 comments
Labels
BugReportIssues describing a possible bug in the Go implementation.goplsIssues related to the Go language server, gopls.ToolsThis label describes issues relating to any tools in the x/tools repository.
right client at Preorder, and then select Find All Reference.
What did you see happen?
$tools/gopls/internal/analysis/modernize/minmax.go has use this method inside for curIfStmt := range curFile.Preorder((*ast.IfStmt)(nil)) {. But gopls doesn't report this usage.
What did you expect to see?
I expected gopls reports its usage. I suspect it's the issue that the gopls isn't the same module of tools.
So the question might be: is it better to report references for submodules as well, if current project contains a root module and multiple modules? And is it possible to do so?
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
xieyuschen
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
May 18, 2025
BugReportIssues describing a possible bug in the Go implementation.goplsIssues related to the Go language server, gopls.ToolsThis label describes issues relating to any tools in the x/tools repository.
gopls version
v0.18.1
go env
What did you do?
Click
Preorder
offunc (c Cursor) Preorder(types ...ast.Node) iter.Seq[Cursor]
inside file$tools/go/ast/inspector/cursor.go
.right client at
Preorder
, and then selectFind All Reference
.What did you see happen?
$tools/gopls/internal/analysis/modernize/minmax.go
has use this method insidefor curIfStmt := range curFile.Preorder((*ast.IfStmt)(nil)) {
. But gopls doesn't report this usage.What did you expect to see?
I expected gopls reports its usage. I suspect it's the issue that the gopls isn't the same module of tools.
So the question might be: is it better to report references for submodules as well, if current project contains a root module and multiple modules? And is it possible to do so?
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: