blob: c32c317137fe0c3d2a690db0cb1dc89e02316de2 [file] [view] [edit]
---
title: "Gopls release v0.23.0 (expected July 2026)"
---
## Configuration changes
The `errorsastype` analyzer added in the previous release (which
detects shadowing mistakes using `errors.AsType`) was renamed to
`errorsastypeshadow` to avoid an unfortunate conflict with a
modernizer of the same name, which suggests fixes to replace calls to
`errors.As` by `AsType`.
The `gopls bug` subcommand has been removed, since no-one ever used it.
## Web-based features
## Editing features
## Analysis features
### `sqlrowserr` analyzer
<!-- golang/go#17747 -->
The `sqlrowserr` analyzer reports failure to call the `Err`
method after calling the `Next` method of `sql.Rows` in a loop.
## Code transformation features
### "Add test for func" uses `t.Context()`
<!-- golang/go#79647 -->
When the function or method under test takes `context.Context` as its
first parameter and the module is on Go 1.24 or later, the generated
test now passes `t.Context()` instead of `context.Background()`.
Modules on older Go versions continue to receive `context.Background()`.