Skip to content

Flutter Inspector no longer navigates to source code after Flutter plugin update to 85.0.4 in Android Studio / IntelliJ #8041

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

Closed
zonanapo opened this issue Apr 10, 2025 · 15 comments · Fixed by #8058
Assignees
Milestone

Comments

@zonanapo
Copy link

zonanapo commented Apr 10, 2025

After updating the Flutter plugin to version 85.0.4 in both Android Studio and IntelliJ IDEA, the Flutter Inspector no longer navigates to the source code in the editor when selecting a widget from the app interface.

Behavior before the update:

  • Selecting a widget using "Select Widget Mode" would highlight it in the widget tree ✅
  • It would also automatically open the source file in the editor and highlight the relevant code ✅

Behavior after the update:

  • Selecting a widget still highlights it in the widget tree ✅
  • But it does not open the source code in Android Studio anymore

This appears to be a regression introduced in Flutter plugin version 85.0.4.

Steps to Reproduce

  1. Update Flutter plugin in Android Studio or IntelliJ to version 85.0.4
  2. Run a Flutter app in debug mode
  3. Open Flutter DevTools via the IDE
  4. Go to Inspector, enable "Select Widget Mode"
  5. Click on any widget in the running app
  6. Observe:
    • Widget is selected and highlighted in the widget tree ✅
    • No source code navigation happens in the IDE

Expected Behavior

Selecting a widget via the Inspector should:

  • Highlight it in the widget tree ✅
  • Automatically navigate to the corresponding widget code in the source file ✅

Actual Behavior

  • Widget is selected in the tree ✅
  • But source code navigation no longer works ❌

Environment

  • Flutter SDK version: 3.29.2
  • Flutter plugin version: 85.0.4
  • Android Studio: Narwhal 2025.1.1 Canary 5
  • IntelliJ IDEA Ultimate: 2025.1 Release Candidate
  • Operating System: Windows 11
  • DevTools launch method: From within IDE
  • Run mode: Debug mode

Please confirm if this is a known regression in 85.0.4, and if there's any workaround available. I'm available to help test further or provide logs if needed.

@kenzieschmoll kenzieschmoll transferred this issue from flutter/devtools Apr 10, 2025
@kenzieschmoll
Copy link
Member

@jwren Can we get a fix + hotfix release for this? This is a pretty disruptive bug for Flutter development, so would be good to prioritize if we can.

@jwren
Copy link
Member

jwren commented Apr 10, 2025

@kenzieschmoll -- Yes.

@lecaro
Copy link

lecaro commented Apr 12, 2025

Not to be annoying... but I'm glad to see others are having the same issue. I spent almost 24 hours non-stop trying to fix this. I thought it was an isolated case... now I see it's not, and I have more hope that it'll be fixed soon...

For anyone it might help, I can just say that VS Code works fine... but I still prefer Android Studio.

@Hactieuho
Copy link

Hactieuho commented Apr 14, 2025

Not to be annoying... but I'm glad to see others are having the same issue. I spent almost 24 hours non-stop trying to fix this. I thought it was an isolated case... now I see it's not, and I have more hope that it'll be fixed soon...

For anyone it might help, I can just say that VS Code works fine... but I still prefer Android Studio.

Refer to #6875 (comment)

Try the older Flutter Plugin Version (Please don't update the Flutter Plugin Version if not necessary!!!):
https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable/423006

Image

@debuggerx01
Copy link

Not to be annoying... but I'm glad to see others are having the same issue. I spent almost 24 hours non-stop trying to fix this. I thought it was an isolated case... now I see it's not, and I have more hope that it'll be fixed soon...
For anyone it might help, I can just say that VS Code works fine... but I still prefer Android Studio.

Refer to #6875 (comment)

Try the older Flutter Plugin Version (Please don't update the Flutter Plugin Version if not necessary!!!): https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable/423006

Image

This version is too old, 83.0.4 works well.

@daehan-lim
Copy link

Not to be annoying... but I'm glad to see others are having the same issue. I spent almost 24 hours non-stop trying to fix this. I thought it was an isolated case... now I see it's not, and I have more hope that it'll be fixed soon...
For anyone it might help, I can just say that VS Code works fine... but I still prefer Android Studio.

Refer to #6875 (comment)
Try the older Flutter Plugin Version (Please don't update the Flutter Plugin Version if not necessary!!!): https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable/423006
Image

This version is too old, 83.0.4 works well.

It didn't work for me. What Android Studio and Flutter SDK version are you using?

@pq
Copy link
Contributor

pq commented Apr 14, 2025

Fix in flight in w/ #8058:

Image

@lecaro
Copy link

lecaro commented Apr 15, 2025

Fix in flight in w/ #8058:

I imagine I'm doing something wrong, but I can't get it to work... :-(

@zonanapo
Copy link
Author

I imagine I'm doing something wrong, but I can't get it to work... :-(

As you can see, that commit hasn't been merged yet, so I think we should wait.

@lecaro
Copy link

lecaro commented Apr 15, 2025

As you can see, that commit hasn't been merged yet, so I think we should wait.

My bad... I didn’t check, since I saw there was an update yesterday (April 14), I assumed the fix was already included here

@pq
Copy link
Contributor

pq commented Apr 15, 2025

Hey @lecaro, @zonanapo is right. Sorry for any confusion... We do still need to do a bit of testing but are aiming to have a fresh release with this fix out soon!

@jwren jwren modified the milestones: M85.1, M85.2 Apr 15, 2025
@jwren
Copy link
Member

jwren commented Apr 15, 2025

I just finished validating that the fix here, #8058 (review), works.

@pq pq closed this as completed in #8058 Apr 15, 2025
@pq pq closed this as completed in 2e70e33 Apr 15, 2025
@AlexThunder2000
Copy link

I just finished validating that the fix here, #8058 (review), works.

Thanks a lot <3

@TabooSun
Copy link

Is this fixed? I can still reproduce this issue with 85.2.4 version.

fvm flutter doctor -v                                                                                                                                                                                                                                                                                                                                                                                               
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.4.1 24E263 darwin-arm64, locale zh-Hans-MY) [268ms]
    • Flutter version 3.29.3 on channel stable at /Users/taboosun/fvm/versions/3.29.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (13 days ago), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [846ms]
    • Android SDK at /Users/taboosun/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/taboosun/Library/Android/sdk
    • Java binary at: /Users/taboosun/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [518ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) [71ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.3) [70ms]
    • Android Studio at /Users/taboosun/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 21.0.6+-13355223-b631.42)

[✓] IntelliJ IDEA Ultimate Edition (version 2025.1) [69ms]
    • IntelliJ at /Users/taboosun/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 85.2.4
    • Dart plugin version 251.25267.1

@AlexV525
Copy link
Member

Using 85.2.3 can still reproduce this with Flutter 3.24.5.

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

Successfully merging a pull request may close this issue.