Skip to content

Conversation

@justinmc
Copy link
Contributor

@justinmc justinmc commented Aug 7, 2024

The algorithm that adjusts spell check results for a new string had a bug in it where it would throw an error in certain cases where the new string was shorter than the old string, such as when the user is deleting text.

Fixes #152272

Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good to me! Thanks!

@justinmc justinmc merged commit ed47c4b into flutter:master Aug 9, 2024
@justinmc justinmc deleted the spell-check-range-error branch August 9, 2024 20:52
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 10, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Aug 10, 2024
Manual roll requested by [email protected]

flutter/flutter@76107bd...b12d861

2024-08-10 [email protected] Move windows mokey tests to prod (flutter/flutter#153203)
2024-08-10 [email protected] Roll Flutter Engine from 2f577d8e3fa2 to 3acd373923c9 (7 revisions) (flutter/flutter#153210)
2024-08-09 [email protected] Also run Linux_android_emu tests on API level 34 image (flutter/flutter#153175)
2024-08-09 [email protected] Expose affixes icon constraints in InputDecorationTheme (flutter/flutter#153089)
2024-08-09 [email protected] Spell check range error (flutter/flutter#153055)
2024-08-09 [email protected] Roll Flutter Engine from 4d5b1df96fc9 to 2f577d8e3fa2 (4 revisions) (flutter/flutter#153191)
2024-08-09 [email protected] Roll Flutter Engine from c9ec468c7592 to 4d5b1df96fc9 (6 revisions) (flutter/flutter#153182)
2024-08-09 [email protected] Roll Packages from bb797b9 to f7b1256 (5 revisions) (flutter/flutter#153180)
2024-08-09 [email protected] Move Cupertino focus constants to cupertino/constants.dart (flutter/flutter#153115)
2024-08-09 [email protected] Fix tests expectations regarding new lines. (flutter/flutter#153174)
2024-08-09 [email protected] Shift tests on moto g4 on Windows hosts to mokey in staging (flutter/flutter#153167)
2024-08-09 [email protected] Make ios_deploy_test.dart more robust (flutter/flutter#153147)
2024-08-09 [email protected] Roll Flutter Engine from e50fd307b6f7 to c9ec468c7592 (2 revisions) (flutter/flutter#153145)
2024-08-09 [email protected] Roll Flutter Engine from 05208896830a to e50fd307b6f7 (5 revisions) (flutter/flutter#153143)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
DBowen33 pushed a commit to DBowen33/flutter that referenced this pull request Aug 16, 2024
Fixed a bug in spell checkers, especially custom ones, where deleting characters rapidly threw an error.
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
Fixed a bug in spell checkers, especially custom ones, where deleting characters rapidly threw an error.
@dutsky
Copy link

dutsky commented Sep 5, 2024

Thank you for this fix! Sorry for asking, but could you please clarify if this fix will be applied to version 3.24.x?

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 11, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Returning null from SpellCheckService.fetchSpellCheckSuggestions can break spellcheck and put EditableText into bad state

3 participants