flutter / flutter-intellij

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

Show same output like in devtools in AndroidStudio Run window #4765

Open crtl opened 4 years ago

crtl commented 4 years ago

The flutter dev tools in the browser automatically filter out verbose log messages and only show app related messages. This was the case for the Run window in AndroidStudio in past plugin versions too but has been removed somehow. Now the Run tab just shows every log message and when you start using 3rd party packages it starts to get out of hand (for example with video_player) and there are no options to filter them. Using flutter web dev tools is not an option for me either because the I am not able to natively scroll or can select text.

Steps to Reproduce

Create a demo app with a video_player. The log will be bombarded with verbose output.

Version info

[√] Flutter (Channel master, 1.21.0-7.0.pre, on Microsoft Windows [Version 10.0.18363.1016], locale en-DE)
    • Flutter version 1.21.0-7.0.pre at D:\dev\flutter\sdk
    • Framework revision 7ec2d360bc (3 weeks ago), 2020-07-29 23:25:38 -0700
    • Engine revision a9910e409c
    • Dart version 2.10.0 (build 2.10.0-1.0.dev 24c7666def)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\Marvin\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    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.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
jacob314 commented 4 years ago

We could give the option of displaying the console from DevTools inline from IntelliJ. The largest blocker is the text selection in the DevTools console won't feel consistent with the rest of IntelliJ but aside from that it should be a good experience for advanced filtering cases.

crtl commented 4 years ago

@jacob314 The text selection is one of the reasons I want to use the AndroidStudio tab in the first place.

The kind of logging I requested was the default in previous versions but I dont know exactly what version. But doesnt this show that this is possible?