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

Dart Analyzer does not properly autocomplete or show type #55703

Open
rebaz94 opened this issue May 13, 2024 · 1 comment
Open

Dart Analyzer does not properly autocomplete or show type #55703

rebaz94 opened this issue May 13, 2024 · 1 comment
Labels
analyzer-completion Issues with the analysis server's code completion feature analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request

Comments

@rebaz94
Copy link

rebaz94 commented May 13, 2024

The Dart analyzer is currently experiencing issues with records, especially when using them in pattern matching or destructuring.

  1. does not display the record type.
Screenshot 2024-05-13 at 3 19 23 PM
  1. Usually, when you destruct the value, the variable isn't visible in the scope.
Screenshot 2024-05-13 at 3 38 05 PM
  1. When you're debugging a map, it shows a bunch of stuff about map implementation. It would be better if it worked like Go, where it just shows the key and value.
Screenshot 2024-05-13 at 3 30 30 PM

IDE:

Build #AI-232.10300.40.2321.11668458, built on April 4, 2024

Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
@rebaz94 rebaz94 changed the title Analyzer does not show type Dart Analyzer does properly autocomplete or show type May 13, 2024
@lrhn lrhn added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label May 13, 2024
@scheglov scheglov added analyzer-completion Issues with the analysis server's code completion feature P3 A lower priority bug or feature request analyzer-server labels May 13, 2024
@rebaz94 rebaz94 changed the title Dart Analyzer does properly autocomplete or show type Dart Analyzer does not properly autocomplete or show type May 13, 2024
@rebaz94
Copy link
Author

rebaz94 commented May 13, 2024

I'm unsure if this is the expected behavior, but also the switch expression allows duplicate cases for a constant class.

var type = SType.integer64;
final _ = switch (type) {
  SType.integer64 => true,
  SType.integer64 => true, // It should trigger a warning
  _ => false,
};

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 analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

3 participants