Skip to content
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

Widget inspector doest jump to source code #6875

Closed
YaserH25 opened this issue Aug 18, 2023 · 36 comments · Fixed by #6881
Closed

Widget inspector doest jump to source code #6875

YaserH25 opened this issue Aug 18, 2023 · 36 comments · Fixed by #6881

Comments

@YaserH25
Copy link

Hello
After i upgraded to Flutter 3.13, widget inspector stopped jumping to source code, i tried a new projects and still having the same issue


DevTools version: 2.25.0
Connected Device:
CPU / OS: arm64 (64 bit) android
Dart Version: 3.1.0
Flutter Version: 3.13.0 / stable
Framework / Engine: efbf63d9c6 / 1ac611c64e
Connected app type: Flutter native (debug build)

@kenzieschmoll
Copy link
Member

kenzieschmoll commented Aug 18, 2023

FYI @CoderDake @DanTup

@YaserH25 are you using VS Code? If so, what version of the Dart Code extension are you using?

@YaserH25
Copy link
Author

Im using Android Studio

@YaserH25
Copy link
Author

FYI @CoderDake @DanTup

@YaserH25 are you using VS Code? If so, what version of the Dart Code extension are you using?

it does work on VS code

@kenzieschmoll
Copy link
Member

@helin24 jump to source broken in Android Studio. I'm going to transfer this issue to the flutter-intellij repo.

@kenzieschmoll kenzieschmoll transferred this issue from flutter/devtools Aug 18, 2023
@xkeyC
Copy link

xkeyC commented Aug 21, 2023

+1
Flutter (Channel stable, 3.13.0, on macOS 13.5 22G74 darwin-arm64, locale zh-Hans-CN)

Android Studio Giraffe | 2022.3.1
Build #AI-223.8836.35.2231.10406996, built on June 29, 2023

Flutter intellij 75.1.2 Aug 04, 2023

But It work in Flutter (Channel stable, 3.10.6 )

@CoderDake
Copy link

@redfieldchristabel and @satishs22 have also reported this behaviour back in the DevTools repo: flutter/devtools#6222

@itsJoKr
Copy link

itsJoKr commented Aug 30, 2023

This was working before. I had an update yesterday to Inspector ("What's new" was shown) and since then it doesn't work. (using IntelliJ idea).

@redfieldchristabel
Copy link

@CoderDake hi there, i upgrade to flutter latest version again today. the problem still presist .

@helin24
Copy link
Member

helin24 commented Sep 1, 2023

An upcoming change to the plugin will fix this, but in the current plugin, you will need to revert to an older Flutter SDK version (works for me on 3.7.0). Sorry about the inconvenience!

helin24 added a commit that referenced this issue Sep 1, 2023
Fixes #6875

Some things I'm not sure about:
- I'm currently using the custom VM service stream 'ToolEvent' directly.
VS Code is using the DAP forwarding of events from this stream; is this
a point where it would make sense to use DAP from DDS?
- This skips large portions of previous architecture to listen for
changes in selections, e.g. classes like `InspectorObjectGroupManager` -
is that okay?
@Maslan34
Copy link

Maslan34 commented Sep 5, 2023

ı had same issue. Downgrading flutter to 3.10.5 version also worked for me.

@Pisey-Nguon
Copy link

I had the same issue on Flutter version 3.13.6

@muhsinzyne
Copy link

is there any fixes for this ??

@muhsinzyne
Copy link

I am also facing the same issue. when i revert back to flutter version 3.10.2 it's working but during the time i am having error while i run debug mode in ios physical devise

Could not run build/ios/iphoneos/myapp.app on 00008101-XXXXXXX.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace

Error launching application on xxxx's iPhone.

@redfieldchristabel
Copy link

An upcoming change to the plugin will fix this, but in the current plugin, you will need to revert to an older Flutter SDK version (works for me on 3.7.0). Sorry about the inconvenience!

its been a month, dart tool also fail on android studio, sometimes i need to rerun with vscode just to use this feature. please fix it it really needed feature and with this feature i can flex with other stack developer at my office but now i cant hahaha.

@kenzieschmoll
Copy link
Member

An upcoming change to the plugin will fix this, but in the current plugin, you will need to revert to an older Flutter SDK version (works for me on 3.7.0). Sorry about the inconvenience!

@helin24 @jwren has the new plugin version with the fix been released?

@xkeyC
Copy link

xkeyC commented Oct 13, 2023

There is still no new version to fix this problem:https://plugins.jetbrains.com/plugin/9212-flutter/versions

It's been almost two months since the issue was reported, and it's hard not to wonder if flutter-intellij has been forgotten.

Before releasing a new version, we may need to manually compile and install: https://github.com/flutter/flutter-intellij/tree/master/tool/plugin

@kenzieschmoll
Copy link
Member

@jwren and @helin24 are actively working on getting this plugin rolled out. We appreciate your patience. In the meantime, consider using VS Code to unblock your immediate Flutter Inspector needs.

@CoderDake
Copy link

CoderDake commented Oct 13, 2023

Just to close the loop, there are a couple of ways that one could get this working until a new release is made.

You could try any of the following based on your needs:

  1. Use VSCode (it is actively supported for Dart/Flutter Development)
  2. Keep Flutter SDK under 3.7.0 until an intellij plugin release can occur
  3. Do a Dev build of the intellij plugin so you can get the new fix. See the instructions in this comment

@muhsinzyne
Copy link

@jwren and @helin24 are actively working on getting this plugin rolled out. We appreciate your patience. In the meantime, consider using VS Code to unblock your immediate Flutter Inspector needs.

please when i can expect this to be available ?

@jwren
Copy link
Member

jwren commented Oct 19, 2023

@muhsinzyne I am currently manually testing a new roll of the Flutter plugin to be released as early as this upcoming Monday.

@muhsinzyne
Copy link

@muhsinzyne I am currently manually testing a new roll of the Flutter plugin to be released as early as this upcoming Monday.

happy to hear... waiting for the rollout....

@muhsinzyne
Copy link

is this issues fixed ???

@muhsinzyne
Copy link

@muhsinzyne I am currently manually testing a new roll of the Flutter plugin to be released as early as this upcoming Monday.

Hi @jwren could you please update me the status i was searching for a new plugin support to resolve this issue. but as i can see that no plugin updates till now.. if you are in the testphase, could you please provide me the beta version or any early access options. as i am really stuck due to this and it's very hard to switch my IDE...

@jwren
Copy link
Member

jwren commented Oct 23, 2023

@muhsinzyne I uploaded a new version before you posted this 5 hours ago. See https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable/423005. I am not sure why it isn't updating in the IDEs yet. (No downloads yet for the new versions.)

@DanTup
Copy link
Contributor

DanTup commented Oct 23, 2023

FWIW the new version shows for me in Android Studio on Windows

image

@jwren
Copy link
Member

jwren commented Oct 23, 2023

Thanks Danny.

all-- Do let me know if this issue is not resolved in this release.

@satishs22
Copy link

image
im getting this message, any idea how to solve this?

@sarope
Copy link

sarope commented Oct 24, 2023

@jwren also getting the same error as @satishs22 above. The link to open in the browser works as expected though

@Hactieuho
Copy link

Hactieuho commented Oct 25, 2023

@satishs22 @sarope

  • If you face the error The JxBrowser license could not be found, please open Android Studio's setting -> Language & Framework -> Flutter -> Scroll down and check Use JCEF browser to show embedded DevTools:
    image

  • And choose JCEF boot runtime:

  1. Select Help > Find Action from the Android Studio menu.
  2. Enter "Choose Boot Java Runtime for the IDE" and select it from the suggestion list.
  3. Select the runtime that comes with JCEF support as shown in the image below:
    image

https://stackoverflow.com/questions/69171807/markdown-editor-and-preview-not-working-in-android-studio

@satishs22
Copy link

@Hactieuho thanks, after following the steps mentioned, i'm able to use the flutter inspector now

@muhsinzyne
Copy link

hey still the fix does not did any value addition to the developer as instead of jumping the code to layout it' goes to the directory or library view files. it should be the screen as per my understanding and my previous experience. now the jump to souce code is working like overperfromed till the basic flutter layout libraries.

@muhsinzyne
Copy link

hey still the fix does not did any value addition to the developer as instead of jumping the code to layout it' goes to the directory or library view files. it should be the screen as per my understanding and my previous experience. now the jump to souce code is working like overperfromed till the basic flutter layout libraries.

i tried with both newest android studio version as well as Flamingo

@rayliverified
Copy link

Is there a way to disable this behavior? The "jump to source code" is not desired for me and makes DevTools almost unusable for my use case of inspecting the widget tree.

Feel free to mark as off topic.

@TheMaverickProgrammer
Copy link

Is there a way to disable this behavior? The "jump to source code" is not desired for me and makes DevTools almost unusable for my use case of inspecting the widget tree.

Feel free to mark as off topic.

Did you ever find a solution for this? We're having the same issue when we only have one monitor available at a time.

@rayliverified
Copy link

Unfortunately not, it's infuriating because you lose the widget your inspecting if you click somewhere else in your code.

@TheMaverickProgrammer
Copy link

Unfortunately not, it's infuriating because you lose the widget your inspecting if you click somewhere else in your code.

We completely agree. Often times we just want to look at the widget highlighting in our app next to the widget tree docked on the right side of the screen. When our editor jumps to the code, it dominates the layout and we can no longer read the widget tree.

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.