flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.95k stars 315 forks source link

Analysis stays stale #6935

Open deakjahn opened 8 months ago

deakjahn commented 8 months ago

Steps to Reproduce

Not entirely sure if it's the Flutter plugin or the Dart one... Lately, very likely since the last upgrade of the Flutter plugin, the IDE doesn't pick up source code changes. When I rename a variable, a function or modify some syntax in one file, the analysis doesn't pick up the change and keeps showing the wrong warning, error or whatever that was valid before the change. Any of the following steps forces the analysis to work again, until the next same issue:

-- building, -- switching to another project and back, -- restarting the IDE, -- a Flutter pub upgrade (the analysis immediately runs as soon as the upgrade process starts, not just at the end).

Version info

E:\Android\flutter\bin\flutter.bat doctor --verbose [√] Flutter (Channel stable, 3.13.7, on Microsoft Windows [Version 10.0.22621.2428], locale en-US) • Flutter version 3.13.7 on channel stable at E:\Android\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 2f708eb839 (8 days ago), 2023-10-09 09:58:08 -0500 • Engine revision a794cf2681 • Dart version 3.1.3 • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

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

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.5) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.7.34202.233 • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2022.3) • Android Studio at C:\Program Files\Android\Android Studio • 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.6+0-b2043.56-10027231)

[√] Connected device (3 available) • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.2428] • Edge (web) • edge • web-javascript • Microsoft Edge 118.0.2088.46

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

! Doctor found issues in 2 categories. Process finished with exit code 0

gisborne commented 1 month ago

I have this issue, I think.

What happens is that the analysis stops being correct after a while. Restarting IntelliJ fixes it for a while, but I'm doing that about every 90 minutes.

gisborne commented 1 month ago

Worse with the latest release Dart 241.17502, Flutter 80.0.2.

This has to be easy to reproduce. It happens with any of a variety of projects I have.