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
adonovan opened this issue
Jan 17, 2025
· 2 comments
Assignees
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.
case*ast.CallExpr:
// If cursor is an arg in a callExpr, we don't want control flow highlighting.ifi>0 {
for_, arg:=rangen.Args {
ifarg==path[i-1] {
return
}
}
}
Error is: S (type []ast.Expr) does not satisfy ~[]E.
For now, I think we need to check that the types in the match condition are identical.
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Jan 17, 2025
Related: we need a means of testing the welltypedness of the transformed code. I'll keep that in mind as I rework the apply-fix logic (which is currently forked between RunWithSuggestedFixes and analysis/checker, but I think deserves a common implementation).
There's a similar problem in the maps.Copy modernizer if the two maps don't have the same type:
func (fsFolderSettings) set(opts*runConfig) {
// Re-use the Settings type, for symmetry, but translate back into maps for// the editor config.folders:=make(map[string]map[string]any)
maps.Copy(folders, fs) /// oopsopts.editor.FolderSettings=folders
}
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.
[split out of https://github.com//issues/70815#issuecomment-2598663385]
@findleyr says:
I encountered a bug in the slices.Contains modernizer today.
Modernizing using slices.Contains here results in an error:
https://cs.opensource.google/go/x/tools/+/master:gopls/internal/golang/highlight.go;l=348;drc=344e48255740736de8c8277e9a286cf3231c7e13
Error is:
S (type []ast.Expr) does not satisfy ~[]E
.For now, I think we need to check that the types in the match condition are identical.
The text was updated successfully, but these errors were encountered: