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

Android Studio flutter inspection not displaying proper suggestion #6213

Closed
fuadreza opened this issue Jun 2, 2022 · 3 comments
Closed

Android Studio flutter inspection not displaying proper suggestion #6213

fuadreza opened this issue Jun 2, 2022 · 3 comments

Comments

@fuadreza
Copy link

fuadreza commented Jun 2, 2022

Flutter Plugins version: 68.0.2
Android Studio version:

Android Studio Chipmunk | 2021.2.1
Build #AI-212.5712.43.2112.8512546, built on April 28, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.vermouthx.idea (1.13.1), manjaro.ptpb (1.6), Dart (212.5744), GrepConsole (12.12.211.6693.0), org.jetbrains.kotlin (212-1.6.21-release-334-AS5457.46), com.developerphil.adbidea (1.6.6), io.flutter (68.0.2)

Steps to Reproduce

  1. Create some state less class

image

  1. Move cursor to Error word (example: Key)
  2. Open up suggestion by pressing (Option+return) on Mac

Expected results:

Expected to see suggestion to import package

image

Actual results:

image

But, somehow it will fix itself if I wait for some times. I have not encountered this before I updated the flutter plugins.

Thanks in advance.

@stevemessick
Copy link
Member

This may be an issue with the Dart analyzer. See dart-lang/sdk#49054.

However, I don't know which version of the Dart SDK you have. Please add the output from using the menu

Tools > Flutter > Flutter Doctor

Thanks.

@stevemessick stevemessick added the waiting for customer response Auto-close if no response label Jun 2, 2022
@fuadreza
Copy link
Author

fuadreza commented Jun 3, 2022

Here's the result of flutter doctor -v

[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3.1 21E258 darwin-arm, locale en-ID)
    • Flutter version 3.0.1 at /Users/fuadrezapahlevi/Documents/Development/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (2 weeks ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/fuadrezapahlevi/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2021.2)
    • 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.12+0-b1504.28-7817840)

[✓] VS Code (version 1.67.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.42.0

[✓] Connected device (2 available)

@github-actions github-actions bot removed the waiting for customer response Auto-close if no response label Jun 3, 2022
@stevemessick
Copy link
Member

Thanks for the info. I believe this is the same problem as I linked above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants