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

Autocomplete context unaware suggestions #48012

Closed
ramsayamarin opened this issue Dec 24, 2021 · 1 comment
Closed

Autocomplete context unaware suggestions #48012

ramsayamarin opened this issue Dec 24, 2021 · 1 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-enhancement A request for a change that isn't a bug

Comments

@ramsayamarin
Copy link

Setup: Win11, Flutter 2.8.1 • channel stable, Dart 2.15.1, Android Studio 2020.3.1, IntelliJ IDEA 2021.3 (Ultimate Edition)

Flutter/Dart autocomplete gives a suggestion list that is initially populated with completely unrelated entries that push any useful suggestions much further down. Here is an example from the default flutter project where the required argument for mainAxisAlignment is of type MainAxisAlignment:

image

The suggestions above are generated by ctrl+space, ctrl+alt+space gives no suggestions.

I spent hours searching for a solution and trying everything mentioned with no improvements so far. I get the same autocomplete results on both Android Studio & IntelliJ IDEA. Any idea how to fix the quality of autocompletion?

Flutter doctor results (the one reported issue is supposedly harmless):

[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[☠] IntelliJ IDEA Ultimate Edition (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    X FormatException: Unexpected extension byte (at offset 5)
[√] Connected device (3 available)

! Doctor found issues in 1 category.
@srawlins srawlins added 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-enhancement A request for a change that isn't a bug labels Dec 24, 2021
@srawlins
Copy link
Member

I think this is a duplicate request of #44273 and #43113.

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-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants