flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Analyzing… never finishes; analysis-based features not working; reinstalling plugins required

Open gisborne opened this issue 1 year ago • 2 comments

Steps to Reproduce

Look at "Analyzing…"

image

Notice that it never finishes.

Try to do anything requiring the language server or analyzer (eg "Go To Definition"). Notice that it doesn't work.

Try this in multiple projects. Same thing.

Restart IntelliJ. The Flutter plugin has always required me to restart every hour or so to fix this problem in the past (for years now!). But this time, restarting doesn't help either.

Try to help! In the Dart Analysis tab, click the cog menu thing, choose "View Analyzer Diagnostics". Notice that this also does nothing.

Try the "Problems" tab. All blank.

Uninstall all Flutter/Dart plugins. Restart. Install Dart + Flutter plugins. Restart.

Apparently working now. Looking forward to restarting every hour as usual.

Version info

% flutter doctor -v [✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-AU) • Flutter version 3.22.2 on channel stable at /Users/gisborne/dev/bin/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (3 weeks ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2) • Android SDK at /Users/gisborne/Library/Android/sdk • Platform android-33, build-tools 33.0.2 • ANDROID_HOME = /Users/gisborne/Library/Android/sdk ✗ Android SDK file not found: /Users/gisborne/Library/Android/sdk/platforms/android-33/android.jar. • Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2

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

[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.3) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 80.0.2 • Dart plugin version 241.17890.8

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

[✓] Connected device (6 available) • Iris (mobile) • 00008030-001879541480802E • ios • iOS 17.5.1 21F90 • Athena (mobile) • 00008103-0008716C216B001E • ios • iOS 17.5.1 21F90 • iPhone SE (3rd generation) (mobile) • 3492AACC-3C82-4924-B5B9-81656EE116A0 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.61

[✓] Network resources • All expected network resources are available.

! Doctor found issues in 2 categories.

General observation: this plugin has never worked properly. I strongly prefer IntelliJ to VSCode, but I may have to switch.

Please, either support this thing or stop pretending.

gisborne avatar Jun 30 '24 00:06 gisborne

Same issue here in Android Studio. The Analyzing never ends. Code highlight not working too.

Captura de pantalla 2024-07-24 a las 14 38 55

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale es-ES) • Flutter version 3.22.2 on channel stable at /Users/*/Developer/Flutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (7 weeks ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users//Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users//Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2024.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 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.4) • IntelliJ at /Applications/IntelliJ IDEA.app • 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

[✓] VS Code (version 1.91.1) • 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 (4 available) • iPad (10th generation) (mobile) • 4CDA7E82-DAD4-4339-9AE3-915A3D573FDB • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.183

[✓] Network resources • All expected network resources are available.

• No issues found!

CarlosVallsCiscar avatar Jul 24 '24 12:07 CarlosVallsCiscar

Same here

OliverRhyme avatar Sep 02 '24 11:09 OliverRhyme

Still the same issue in 2025, any news ? I have to restart IntellJ two or three times a days

AlexBolot avatar Jul 09 '25 06:07 AlexBolot

@AlexBolot: could you provide any details that will help us reproduce what you're seeing? Could you provide your flutter doctor -v output?

pq avatar Jul 30 '25 15:07 pq

Hi, thank you for your reply. I haven't had the issue in the last two weeks, if it happens again I'll take a screen recording and send you the flutter doctor output 😄

AlexBolot avatar Jul 30 '25 16:07 AlexBolot

Awesome. Thank you!

pq avatar Jul 30 '25 16:07 pq