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

[analyzer] Incorrect completion suggestion when the rule is already in the list #57076

Open
incendial opened this issue Nov 13, 2024 · 2 comments
Labels
analyzer-analysis-options area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@incendial
Copy link
Contributor

Hi,

When the rule is already in the configuration list, but is disabled (via : false), it's still added to the list of completion items:
Screenshot 2024-11-13 at 14 11 52

It should probably not be there.

@incendial
Copy link
Contributor Author

@DanTup fyi

@dart-github-bot
Copy link
Collaborator

Summary: The Dart analyzer incorrectly suggests adding a rule to the configuration list even when the rule is already present but disabled. This behavior should be corrected to prevent redundant suggestions.

@dart-github-bot dart-github-bot added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Nov 13, 2024
@bwilkerson bwilkerson added analyzer-completion Issues with the analysis server's code completion feature P3 A lower priority bug or feature request labels Nov 13, 2024
@devoncarew devoncarew removed the triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. label Nov 13, 2024
@keertip keertip added analyzer-analysis-options and removed analyzer-completion Issues with the analysis server's code completion feature labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-analysis-options area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

5 participants