flutter / flutter/flutter-intellij

Analysis stays stale

Open
#6,935 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.