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] Missing/incorrect completion for analysis_options (in some cases) #57077

Open
incendial opened this issue Nov 13, 2024 · 2 comments
Open
Labels
analyzer-completion Issues with the analysis server's code completion feature 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

incendial commented Nov 13, 2024

Hi, this is probably related to yaml parser, but still.

  1. When invoking the completion suggestions manually (in my case, option + esc), top level entries are suggested even when they are already in the config:
Screenshot 2024-11-13 at 14 15 16

To reproduce:

analyzer:
  // <-- call the completion here
  exclude:
  1. Typing anything under the first entry (when there are other entries below it) does not trigger the completion at all
analyzer:
  // <-- start typing here
  exclude:
Screenshot 2024-11-13 at 14 17 03

Expected suggestions:
Screenshot 2024-11-13 at 14 17 20

@incendial
Copy link
Contributor Author

@DanTup fyi

@dart-github-bot
Copy link
Collaborator

Summary: The Dart analyzer's code completion for analysis_options.yaml is inconsistent. It suggests top-level entries even when they exist, and fails to trigger completion when typing under existing entries.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-completion Issues with the analysis server's code completion feature 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

4 participants