flutter / flutter-intellij

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

Flutter Inspector does not show source code #6894

Closed a-v-ebrahimi closed 7 months ago

a-v-ebrahimi commented 9 months ago

In Flutter inspector, when I click on widget tree, it does not sync and show respective source code, this was working properly previously.


DevTools version: 2.25.0 Connected Device: CPU / OS: ia32 (32 bit) android Dart Version: 3.1.0 Flutter Version: 3.13.2 / stable Framework / Engine: ff5b5b5fa6 / b20183e040 Connected app type: Flutter native (debug build)

kenzieschmoll commented 9 months ago

What IDE are you using?

ielnitskiy commented 9 months ago

I also have this problem! IntelliJ IDEA 2023.2.1 (Community Edition) Build #IC-232.9559.62, built on August 23, 2023

a-v-ebrahimi commented 9 months ago

What IDE are you using?

Android Studio Giraffe | 2022.3.1 Patch 1 Build #AI-223.8836.35.2231.10671973, built on August 17, 2023 Runtime version: 17.0.6+0-b2043.56-10027231 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 24 Registry: external.system.auto.import.disabled=true debugger.watches.in.variables=false ide.text.editor.with.preview.show.floating.toolbar=false ide.instant.shutdown=false

Non-Bundled Plugins: com.github.copilot (1.2.21.2995) com.bloc.intellij_generator_plugin (3.4.0) String Manipulation (9.11.3) Dart (223.8950) com.intellij.plugin.adernov.powershell (2.0.10) com.herbert.george.flutter-snippets (2.0.0-stable-1) com.wakatime.intellij.plugin (14.2.1) io.flutter (75.1.2) de.mariushoefler.flutter_enhancement_suite (1.6.1)

Likhachev17 commented 8 months ago

faced the same. Please fix it! :( Any beta IntelliJ plugins have it now?

sleem2012 commented 8 months ago

faced same problem and it happen for all of my friends in android studio only I've thoroughly tested this on multiple devices, including 2 Macs and 2 Windows machines, and the problem persists across all of them. However, I want to emphasize that the same DevTool functionality works flawlessly when using Visual Studio Code (VSCode). i posted it on google issue tracker but they told me to reopen this issue here I've thoroughly tested this on multiple devices, including 2 Macs and 2 Windows machines, and the problem persists across all of them. However, I want to emphasize that the same DevTool functionality works flawlessly when using Visual Studio Code (VSCode).

https://issuetracker.google.com/issues/299314637

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.2, on macOS 13.5.1 22G90 darwin-arm64, locale en-EG) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.81.1) [✓] Connected device (2 available) [✓] Network resources

• No issues found!

majidempire commented 8 months ago

Same issue here and I have done many things but no success, is there anyway to downgrade?

Android Studio Giraffe | 2022.3.1 Patch 1 Build #AI-223.8836.35.2231.10671973, built on August 17, 2023 Runtime version: 17.0.6+0-17.0.6b829.9-10027231 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 13.5 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8

Non-Bundled Plugins: Dart (223.8950) com.localizely.flutter-intl (1.18.4-2022.2) io.flutter (75.1.2)

helin24 commented 8 months ago

I can offer a couple options for fixing this until we make our next plugin release (hopefully soon).

Easier options:

Or keep an updated flutter SDK and try a dev release of the IntelliJ plugin:

  1. Download the appropriate plugin for your version of IJ: https://plugins.jetbrains.com/plugin/9212-flutter/versions/dev
  2. Go to plugins > Settings button > Install plugin from disk > choose the downloaded file
  3. Go to Settings > Languages and frameworks > Flutter > Check "use JCEF browser to show embedded DevTools"
majidempire commented 8 months ago

I can offer a couple options for fixing this until we make our next plugin release (hopefully soon).

Easier: downgrade your flutter SDK version to 3.7.0 or earlier (another user mentioned 3.10 works, but I was not able to verify myself).

Or keep an updated flutter SDK and try a dev release of the IntelliJ plugin:

1. Download the appropriate plugin for your version of IJ: https://plugins.jetbrains.com/plugin/9212-flutter/versions/dev

2. Go to plugins > Settings button > Install plugin from disk > choose the downloaded file

3. Go to Settings > Languages and frameworks > Flutter > Check "use JCEF browser to show embedded DevTools"

I tried the second option and it worked for me, thanks

Likhachev17 commented 8 months ago

I can offer a couple options for fixing this until we make our next plugin release (hopefully soon). Easier: downgrade your flutter SDK version to 3.7.0 or earlier (another user mentioned 3.10 works, but I was not able to verify myself). Or keep an updated flutter SDK and try a dev release of the IntelliJ plugin:

1. Download the appropriate plugin for your version of IJ: https://plugins.jetbrains.com/plugin/9212-flutter/versions/dev

2. Go to plugins > Settings button > Install plugin from disk > choose the downloaded file

3. Go to Settings > Languages and frameworks > Flutter > Check "use JCEF browser to show embedded DevTools"

I tried the second option and it worked for me, thanks

I tried second option too but it didn't help. Flutter inspector with beta plugin doesn't event launch. Any advices? IntelliJ IDEA 2023.2.1 (Community Edition) Flutter Channel stable, 3.13.3, on macOS 13.3.1

duymanhit commented 8 months ago

I switch to dev channel and it work well.

sleem2012 commented 8 months ago

i tried second option and it help me for showing code when i open dev tool from browser but android studio dev tool don't open and stuck on installing dev tool

Screenshot 2023-09-12 at 1 45 06 PM
majidempire commented 8 months ago

I ha

i tried second option and it help me for showing code when i open dev tool from browser but android studio dev tool don't open and stuck on installing dev tool Screenshot 2023-09-12 at 1 45 06 PM

use File / Invalidate caches / Invalidate and restart Then restart your OS also

I did it and fixed to open devTools in embeded browser in Android Studio

Good Luck

sleem2012 commented 8 months ago

I ha

i tried second option and it help me for showing code when i open dev tool from browser but android studio dev tool don't open and stuck on installing dev tool Screenshot 2023-09-12 at 1 45 06 PM

use File / Invalidate caches / Invalidate and restart Then restart your OS also

I did it and fixed to open devTools in embeded browser in Android Studio

Good Luck

dosent work also

helin24 commented 8 months ago

@sleem2012 and @Likhachev17 assuming you both checked the "Enable JCEF" option in settings, can you tell me what OS you are using? It may be that JCEF is not supported for your OS, in which case you could use DevTools in a separate browser instead.

sleem2012 commented 8 months ago

@sleem2012 and @Likhachev17 assuming you both checked the "Enable JCEF" option in settings, can you tell me what OS you are using? It may be that JCEF is not supported for your OS, in which case you could use DevTools in a separate browser instead.

Iam using macbook air m1 ventura os It works well in sperated browser but don't work in android studio

helin24 commented 8 months ago

@sleem2012 do you want to send me your logs from using it in Android Studio? Help > Show log in finder > idea.log is hte file to send. You can post here or send to helinx@google.com.

majidempire commented 8 months ago

@sleem2012 do you want to send me your logs from using it in Android Studio? Help > Show log in finder > idea.log is hte file to send. You can post here or send to helinx@google.com.

java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
    at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:250)
    at com.intellij.ui.jcef.JBCefBrowserBase.lambda$new$3(JBCefBrowserBase.java:152)
    at com.intellij.util.ObjectUtils.notNull(ObjectUtils.java:124)
    at com.intellij.ui.jcef.JBCefBrowserBase.<init>(JBCefBrowserBase.java:152)
    at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:190)
    at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:150)
    at io.flutter.view.EmbeddedJcefBrowserTab.<init>(EmbeddedJcefBrowser.java:30)
    at io.flutter.view.EmbeddedJcefBrowser.openEmbeddedTab(EmbeddedJcefBrowser.java:68)
    at io.flutter.view.EmbeddedBrowser.openBrowserTabFor(EmbeddedBrowser.java:126)
    at io.flutter.view.EmbeddedBrowser.openPanel(EmbeddedBrowser.java:73)
    at io.flutter.view.FlutterView.lambda$addBrowserInspectorViewContent$3(FlutterView.java:294)
    at java.base/java.util.Optional.ifPresent(Unknown Source)
    at io.flutter.view.FlutterView.lambda$addBrowserInspectorViewContent$4(FlutterView.java:294)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:74)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:114)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:36)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:909)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:756)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

here is an error log of mine

sleem2012 commented 8 months ago

idea.log

@helin24

kazbeksultanov commented 8 months ago

@helin24
I have the same error with DevTools in Android studio on MacBook Pro m1 pro chip

Device:

Screenshot 2023-09-14 at 16 12 16
Android Studio Giraffe | 2022.3.1 Patch 1

Build #AI-223.8836.35.2231.10671973, built on August 17, 2023
Runtime version: 17.0.6+0-17.0.6b829.9-10027231 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Flutter Doctor

[✓] Flutter (Channel stable, 3.13.3, on macOS 13.5.1 22G90 darwin-arm64, locale en-KZ)
    • Flutter version 3.13.3 on channel stable at /Users/kazbek/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2524052335 (8 days ago), 2023-09-06 14:32:31 -0700
    • Engine revision b8d35810e9
    • Dart version 3.1.1
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/kazbek/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_SDK_ROOT = /Users/kazbek/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /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 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.80.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 14 (API 34) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 13.5.1 22G90 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 116.0.5845.187

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

• No issues found!

In setting when 'use JCEF' is disabled, there is no error. Just showing:

Screenshot 2023-09-14 at 16 10 49

When 'use JCEF' is enabled, there is dropping error

java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
    at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:250)
    at com.intellij.ui.jcef.JBCefBrowserBase.lambda$new$3(JBCefBrowserBase.java:152)
    at com.intellij.util.ObjectUtils.notNull(ObjectUtils.java:124)
    at com.intellij.ui.jcef.JBCefBrowserBase.<init>(JBCefBrowserBase.java:152)
    at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:190)
    at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:150)
    at io.flutter.view.EmbeddedJcefBrowserTab.<init>(EmbeddedJcefBrowser.java:30)
    at io.flutter.view.EmbeddedJcefBrowser.openEmbeddedTab(EmbeddedJcefBrowser.java:68)
    at io.flutter.view.EmbeddedBrowser.openBrowserTabFor(EmbeddedBrowser.java:126)
    at io.flutter.view.EmbeddedBrowser.openPanel(EmbeddedBrowser.java:73)
    at io.flutter.view.FlutterView.lambda$addBrowserInspectorViewContent$3(FlutterView.java:294)
    at java.base/java.util.Optional.ifPresent(Unknown Source)
    at io.flutter.view.FlutterView.lambda$addBrowserInspectorViewContent$4(FlutterView.java:294)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:74)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:114)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:36)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:909)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:756)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

I don't know what to do.

I did not want to switch to VS Code, but seem like there is no problem with this.

Note: Before new version of android studio, DevTools worked fine without JCEF enabling.

kazbeksultanov commented 8 months ago

@helin24 I found the solution on this article, how to install JCEF on android studio, and it worked for me. (https://medium.com/tech-takeaways/how-to-fix-the-markdown-plugin-preview-in-android-studio-80e74a160ed4)

Steps are simple:

  1. Help -> Find Action (or double tap the SHIFT button and select Action tab)
  2. Select Choose Boot Java Runtime for the IDE...
Screenshot 2023-09-15 at 12 29 15
  1. I selected first

    Screenshot 2023-09-15 at 12 30 14 Screenshot 2023-09-15 at 12 30 47
  2. After make sure that in Flutter Plugin Settings you selected enable JCEF

And finally inspector is working!

Screenshot 2023-09-15 at 12 32 35

More issues are: Selected widget from widget tree do not show code in IDE.

sleem2012 commented 8 months ago

@helin24 I found the solution on this article, how to install JCEF on android studio, and it worked for me. (https://medium.com/tech-takeaways/how-to-fix-the-markdown-plugin-preview-in-android-studio-80e74a160ed4)

Steps are simple:

  1. Help -> Find Action (or double tap the SHIFT button and select Action tab)
  2. Select Choose Boot Java Runtime for the IDE...
Screenshot 2023-09-15 at 12 29 15
  1. I selected first

    Screenshot 2023-09-15 at 12 30 14 Screenshot 2023-09-15 at 12 30 47
  2. After make sure that in Flutter Plugin Settings you selected enable JCEF

And finally inspector is working!

Screenshot 2023-09-15 at 12 32 35

More issues are: Selected widget from widget tree do not show code in IDE.

This solution helps me ,thanks

AlHasanSony commented 8 months ago

Previously, when I ran the app and turned on the widget mode in the Flutter Inspector, if I clicked on any widget in the APP, it would immediately navigate to the code related to that widget element inside the Dart file. But now, when I click, it only selects the widget in the widget tree. However, it doesn't navigate to the related code in the Dart file anymore. What could be the possible solution for this?

My expectation is: If I click on any widget in the app, it will immediately navigate to the code related to that widget element inside the Dart file like previously

[It works fine in flutter version 3.10.6 and earlier, but in later versions, it doesn't work]

sleem2012 commented 8 months ago

Previously, when I ran the app and turned on the widget mode in the Flutter Inspector, if I clicked on any widget in the APP, it would immediately navigate to the code related to that widget element inside the Dart file. But now, when I click, it only selects the widget in the widget tree. However, it doesn't navigate to the related code in the Dart file anymore. What could be the possible solution for this?

My expectation is: If I click on any widget in the app, it will immediately navigate to the code related to that widget element inside the Dart file like previously

[It works fine in flutter version 3.10.6 and earlier, but in later versions, it doesn't work]

Check this solution https://youtu.be/oHcjiMGG4ic?si=QKAkuisWPZR6vvS_

Ankitkj1999 commented 8 months ago

I am facing the same issue macOs: 13.2 (22D49) Apple M1

Flutter version: 3.7.12

Android Studio Giraffe | 2022.3.1 Patch 1 Build #AI-223.8836.35.2231.10671973, built on August 17, 2023 Runtime version: 17.0.6+1-b653.34 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 13.2 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Metal Rendering is ON Registry: external.system.auto.import.disabled=true ide.text.editor.with.preview.show.floating.toolbar=false

Non-Bundled Plugins: com.tao.provider (1.5.3) com.github.copilot (1.2.22.3129) com.bloc.intellij_generator_plugin (3.4.0) Dart (223.8950) andrasferenczi.dart-data-plugin (0.2.0) com.mallowigi (85.1.0) io.flutter (75.1.2) nix-idea (0.4.0.10)

And the video solution provided above does not work for me!

waslost0 commented 8 months ago

@helin24 I found the solution on this article, how to install JCEF on android studio, and it worked for me. (https://medium.com/tech-takeaways/how-to-fix-the-markdown-plugin-preview-in-android-studio-80e74a160ed4)

Steps are simple:

  1. Help -> Find Action (or double tap the SHIFT button and select Action tab)
  2. Select Choose Boot Java Runtime for the IDE...
Screenshot 2023-09-15 at 12 29 15
  1. I selected first

Screenshot 2023-09-15 at 12 30 14 Screenshot 2023-09-15 at 12 30 47

  1. After make sure that in Flutter Plugin Settings you selected enable JCEF

And finally inspector is working! Screenshot 2023-09-15 at 12 32 35

More issues are: Selected widget from widget tree do not show code in IDE.

Android emulator not starting "The emulator process for AVD Pixel_XL_API_34 has terminated.". Only works on ios sim and real devices

a-v-ebrahimi commented 7 months ago

Previously, when I ran the app and turned on the widget mode in the Flutter Inspector, if I clicked on any widget in the APP, it would immediately navigate to the code related to that widget element inside the Dart file. But now, when I click, it only selects the widget in the widget tree. However, it doesn't navigate to the related code in the Dart file anymore. What could be the possible solution for this? My expectation is: If I click on any widget in the app, it will immediately navigate to the code related to that widget element inside the Dart file like previously [It works fine in flutter version 3.10.6 and earlier, but in later versions, it doesn't work]

Check this solution https://youtu.be/oHcjiMGG4ic?si=QKAkuisWPZR6vvS_

Worked, at last, thank you!

muhsinzyne commented 7 months ago

Previously, when I ran the app and turned on the widget mode in the Flutter Inspector, if I clicked on any widget in the APP, it would immediately navigate to the code related to that widget element inside the Dart file. But now, when I click, it only selects the widget in the widget tree. However, it doesn't navigate to the related code in the Dart file anymore. What could be the possible solution for this? My expectation is: If I click on any widget in the app, it will immediately navigate to the code related to that widget element inside the Dart file like previously [It works fine in flutter version 3.10.6 and earlier, but in later versions, it doesn't work]

Check this solution https://youtu.be/oHcjiMGG4ic?si=QKAkuisWPZR6vvS_

Worked, at last, thank you!

Please copy your flutter version, android studio version etc.. i am stuck at here

jishkln commented 7 months ago

i getting the same issue , it is not working

kenzieschmoll commented 7 months ago

This appears to be a duplicate of https://github.com/flutter/flutter-intellij/issues/6875. A new release of the Flutter plugin should be shipped next week with a fix for this issue. CC @jwren

MohammadAlieye commented 5 months ago

"Hey there! 🚀 Good news! Just update your Flutter to the latest version - Flutter 3.16.2 and Dart 3.2.2. The Flutter team has fixed the issue with the Flutter Inspector not showing source code. Get the latest update at https://github.com/flutter/flutter and you'll be good to go! Happy coding! 😎👩‍💻

jishkln commented 5 months ago

Awesome, thanks for the update!

On Thu, 14 Dec, 2023, 11:46 am Mohammad Ali, @.***> wrote:

"Hey there! 🚀 Good news! Just update your Flutter to the latest version - Flutter 3.16.2 and Dart 3.2.2. The Flutter team has fixed the issue with the Flutter Inspector not showing source code. Get the latest update at https://github.com/flutter/flutter and you'll be good to go! Happy coding! 😎👩‍💻

— Reply to this email directly, view it on GitHub https://github.com/flutter/flutter-intellij/issues/6894#issuecomment-1855206754, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHAQHSEO4GZH7UTYSITNIDYJKKTDAVCNFSM6AAAAAA4MM5SHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGIYDMNZVGQ . You are receiving this because you commented.Message ID: @.***>