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 suggestion for block body not working for all parameters #48310

Closed
rebaz94 opened this issue Feb 4, 2022 · 2 comments
Closed

Autocomplete suggestion for block body not working for all parameters #48310

rebaz94 opened this issue Feb 4, 2022 · 2 comments
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 Feb 4, 2022

Hi
The autocomplete for function block is not working for all parameter in constructor and only work for first parameter.

here is the video only work for first parameter.

a.mov

version

Flutter (Channel beta, 2.10.0-0.1.pre, on Mac OS X 10.15.4 19E287 darwin-x64, locale en)
    • Flutter version 2.10.0-0.1.pre at /Users/rebo/fvm/versions/beta
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 628f0e3f3a (3 weeks ago), 2022-01-11 19:50:05 -0600
    • Engine revision 63ca99584a
    • Dart version 2.16.0 (build 2.16.0-134.1.beta)
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/rebo/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 211.7727

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • Mac OS X 10.15.4 19E287 darwin-x64
    • Chrome (web)    • chrome • web-javascript • unknown

[✓] HTTP Host Availability
    • All required HTTP hosts are available


@kevmoo kevmoo added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-completion Issues with the analysis server's code completion feature analyzer-server labels Feb 4, 2022
@scheglov
Copy link
Contributor

scheglov commented Feb 9, 2022

I can reproduce this.

void f({void Function()? a, void Function()? b}) {}

void g() {
  f(
    a: () {},
    b: ^,
  );
}

@srawlins srawlins added the P3 A lower priority bug or feature request label Feb 28, 2022
@ebelevics
Copy link

ebelevics commented Apr 14, 2022

It was working fine before 2.10, but after updating to 2.10 Android Studio on Mac doesn't suggest me "(a,b,c) =>" parameters

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

5 participants