Flutter-intellij: The "Show widget rebuild information" is grayed out.

Created on 5 Dec 2018  Â·  16Comments  Â·  Source: flutter/flutter-intellij

Steps to Reproduce

Run flutter_gallery in debug mode from IntelliJ. The "Show widget rebuild information" is grayed out.

Version info

liyuqian@liyuqian:~/flutter/flutter$ flutter doctor -v
[✓] Flutter (Channel master, v0.10.1-pre.484, on Linux, locale en_US.UTF-8)
• Flutter version 0.10.1-pre.484 at /usr/local/google/home/liyuqian/flutter/flutter
• Framework revision 9d878ca493 (8 days ago), 2018-11-27 22:31:49 -0800
• Engine revision be973ea196
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /usr/local/google/home/liyuqian/android/Sdk/
• Android NDK at /usr/local/google/home/liyuqian/android/Sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /usr/local/google/home/liyuqian/android/Sdk/
• Java binary at: /opt/android-studio-with-blaze-3.2/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[!] Android Studio (version 3.0)
• Android Studio at /opt/android-studio-with-blaze-3.0
• Flutter plugin version 23.2.1
• Dart plugin version 171.4424
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.

[✓] Android Studio (version 3.2)
• Android Studio at /opt/android-studio-with-blaze-3.2
• Flutter plugin version 23.2.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at /opt/intellij-ce-2017.3
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700

[✓] IntelliJ IDEA Community Edition (version 2018.1)
• IntelliJ at /opt/intellij-ce-2018.1
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656

[✓] Connected device (1 available)
• Moto G 4 • ZY223ZXCJV • android-arm • Android 7.0 (API 24)

! Doctor found issues in 1 category.

performance platform-idea

Most helpful comment

Android Studio 3.4.2
Flutter version: 1.7.8
Flutter Plugin: 38.1.1

Run in profile mode, "Show widget rebuild information" checkbox is grey out.

All 16 comments

CC @InMatrix @jacob314

@liyuqian Can you clarify which IntelliJ were you using? You had two versions of IntelliJ and two versions of Android Studio installed. Thanks.

IntelliJ 2018.1.6

Do you still see the issue with Flutter 1.0? I see you are on v0.10.1-pre.484. For versions of the plugin before the rebuild information feature was enabled you should see it greyed out.

I upgraded to the tip of tree master branch and it's still grayed out:

liyuqian@liyuqian:~/flutter/flutter$ flutter doctor -v
[✓] Flutter (Channel master, v1.0.1-pre.2, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.1-pre.2 at /usr/local/google/home/liyuqian/flutter/flutter
    • Framework revision 27c8ffa06c (21 hours ago), 2018-12-05 14:50:59 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /usr/local/google/home/liyuqian/android/Sdk/
    • Android NDK at /usr/local/google/home/liyuqian/android/Sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /usr/local/google/home/liyuqian/android/Sdk/
    • Java binary at: /opt/android-studio-with-blaze-3.2/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[!] Android Studio (version 3.0)
    • Android Studio at /opt/android-studio-with-blaze-3.0
    • Flutter plugin version 23.2.1
    • Dart plugin version 171.4424
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 3.2)
    • Android Studio at /opt/android-studio-with-blaze-3.2
    • Flutter plugin version 23.2.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.3)
    • IntelliJ at /opt/intellij-ce-2017.3
    • Flutter plugin version 25.0.1
    • Dart plugin version 173.4700

[✓] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at /opt/intellij-ce-2018.1
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.5656

[✓] Connected device (1 available)
    • Moto G 4 • ZY223ZXCJV • android-arm • Android 7.0 (API 24)

Strange. Are you attaching to a flutter app or launching from IntelliJ? There was a bug that only occurred on attach/.

I was launching directly from IntelliJ without flutter attach

On Thu, Dec 6, 2018, 12:22 PM Jacob Richman <[email protected] wrote:

Strange. Are you attaching to a flutter app or launching from IntelliJ?
There was a bug that only occurred on attach/.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter-intellij/issues/2917#issuecomment-445016612,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV7DMCJ5cehIEOWz66jYjqRhlCeX2EWUks5u2XyNgaJpZM4ZE-Sf
.

@liyuqian Could you download another copy of Flutter using the normal installation process instead of contribution process? I couldn't reproduce your issue on my computer, so I was suspecting something in your fork might be related.

I suspect this might be a race condition in the IntelliJ plugin. I will have a custom build of the plugin in a bit that might fix the issue.

https://drive.google.com/drive/folders/1cyR8iXnIYDAL_LQSnd7Ywzdc3mvraxU_?usp=sharing
This drive folder has an updated Flutter IntelliJ plugin that might fix your issue. Please let me know so we know whether to issue a hot fix release now or not.

@jacob314 : Your updated plugin fixes the issue! :smile:

Should I close the issue as it's fixed?

Closing as the fix is checked in. I expect we will release a new plugin this month that makes the fix public.

The fix is public now. You should be able to use the rebuild indicators with just the public flutter intellij release

Android Studio 3.4.2
Flutter version: 1.7.8
Flutter Plugin: 38.1.1

Run in profile mode, "Show widget rebuild information" checkbox is grey out.

@KingWu I had the same problem as you. Try running the app in debug mode. As per the documentation, "Show widget rebuild information" is available in debug mode.
https://flutter.dev/docs/development/tools/android-studio#show-performance-data

Was this page helpful?
0 / 5 - 0 ratings