-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/gopls/internal/analysis/unusedvariable: reports invalid SuggestedFixes #71812
Labels
BugReport
Issues describing a possible bug in the Go implementation.
gopls/telemetry-wins
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Comments
Change https://go.dev/cl/650395 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Feb 18, 2025
…1812 This CL adds assertions to refine the bug reported in golang/go#71812, in which the analyzer reports an invalid SuggestedFix. Updates golang/go#71812 Change-Id: Ie4a9aac9ba3d16974320d7cd4b48bc4cc76fc3c4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/650395 Commit-Queue: Alan Donovan <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
github-actions bot
added a commit
to satorunooshie/go-tools
that referenced
this issue
Feb 18, 2025
776604a9e gopls/internal/analysis/modernize: sortslice: fix crash df7baa073 gopls/internal/analysis/simplifyrange: more precise fix ad5dd9875 gopls: fix a few bugs related to the new modcache imports source 4b3fdfd83 go/analysis/passes/printf: suppress diagnostic for Println("...%XX...") fe883a85d gopls/internal/analysis/unusedvariable: refine bug.Report golang/go#71812 d115b345e gopls/internal/analysis: simplify type-error analyzers with Cursor c18bffa1b all: delete redundant //go:debug gotypesalias=1 directives [generated] 94db71079 all: upgrade go directive to at least 1.23.0 [generated] git-subtree-dir: golang.org/x/tools git-subtree-split: 776604a9ed881ee1274724fb3a5f058f3ebdf0eb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BugReport
Issues describing a possible bug in the Go implementation.
gopls/telemetry-wins
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Issue created by stacks.
This stack
JfZhUw
was reported by telemetry:gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35
golang.org/x/tools/gopls/internal/util/bug.Reportf:+1
golang.org/x/tools/gopls/internal/cache.(*action).exec.func3:+3
golang.org/x/tools/gopls/internal/analysis/unusedvariable.runForError:+37
golang.org/x/tools/gopls/internal/analysis/unusedvariable.run:+9
golang.org/x/tools/gopls/internal/cache.(*action).exec.func7:+31
golang.org/x/tools/gopls/internal/cache.(*action).exec:+282
golang.org/x/tools/gopls/internal/cache.execActions.func1.1:+2
sync.(*Once).doSlow:+5
sync.(*Once).Do:=67
golang.org/x/tools/gopls/internal/cache.execActions.func1:+2
runtime.goexit:+0
Dups: k4vfuQ
The text was updated successfully, but these errors were encountered: