Skip to content
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

[Spellcheck][Bug] - Immutability violation #2560

Open
matthew-carroll opened this issue Feb 1, 2025 · 0 comments
Open

[Spellcheck][Bug] - Immutability violation #2560

matthew-carroll opened this issue Feb 1, 2025 · 0 comments
Assignees
Labels

Comments

@matthew-carroll
Copy link
Contributor

We have some kind of mutability issue in the spellcheck styler.

For example, a client app had a crash within spelling_and_grammar.dart within _applyErrors() where we try to do the following:

viewModel.grammarErrors
  ..clear()
  ..addAll([
    //....
  ]);

Either we want this list to be immutable, in which case we should replace it instead of alter it.

Or, we want this list to be mutable, in which case we need to lookup where we're assigning an unmodifiable list to this variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants