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 tree Empty in Devtools #5891

Open
muhammadrashadomar opened this issue Jun 8, 2023 · 6 comments
Open

Widget tree Empty in Devtools #5891

muhammadrashadomar opened this issue Jun 8, 2023 · 6 comments
Labels
P2 important to work on, but not at the top of the work list. screen: inspector

Comments

@muhammadrashadomar
Copy link

<-- Please describe your problem here. Be sure to include repro steps. -->


DevTools version: 2.23.1
Connected Device:
CPU / OS: arm64 (64 bit) android
Dart Version: 3.0.2
Flutter Version: 3.10.2 / stable
Framework / Engine: 9cd3d0d9ff / 90fa3ae28f
Connected app type: Flutter native (debug build)

@kenzieschmoll
Copy link
Member

kenzieschmoll commented Jun 9, 2023

Thanks for the report. Can you answer a few questions that will help us get to the bottom of this?

  1. Was the tree completely blank, or did it have a single widget [root]?
  2. Were you running the inspector embedded in your IDE or in a standalone browser?
  3. How did you launch your app - from command line or from your IDE?
  4. Which IDE are you using?

CC @CoderDake

@chakbun
Copy link

chakbun commented Jul 17, 2023

Thanks for the report. Can you answer a few questions that will help us get to the bottom of this?

  1. Was the tree completely blank, or did it have a single widget [root]?
  2. Were you running the inspector embedded in your IDE or in a standalone browser?
  3. How did you launch your app - from command line or from your IDE?
  4. Which IDE are you using?

CC @CoderDake

Hi, I encountered the same issue when opening the widget inspector in VS Code. The built-in widget inspector in VS Code appears to be empty. However, I found that it works fine when selecting the external option (in the Chrome browser).

Snipaste_2023-07-17_15-33-29

Was the tree completely blank, or did it have a single widget [root]?

completely blank (see the photo above)

Were you running the inspector embedded in your IDE or in a standalone browser?

in visual studio code

How did you launch your app - from command line or from your IDE?

IDE

Which IDE are you using?

visual studio code (Version: 1.80.1)

@CoderDake CoderDake added the P2 important to work on, but not at the top of the work list. label Jul 17, 2023
@CoderDake
Copy link
Contributor

@chakbun could you please try changing the port number in VSCode?
This sounds familiar to a caching issue, so I'd like to rule that out :)

@chakbun
Copy link

chakbun commented Jul 20, 2023

@chakbun could you please try changing the port number in VSCode? This sounds familiar to a caching issue, so I'd like to rule that out :)

After changing the port number, the built-in widget inspector started working. Thank you!

@mikebosland
Copy link

I believe I have the same symptom. All of the devtool pages show blank. However I can still interact with the page. For example I can "Select Widget Mode" because it is in the upper left corner of the widget inspector. So the functionality is there, but everything is black (or white when using a light theme). The workaround is to open devtools in a browser.

Changing the port number and restarting had no effect for me.

@LukePizon2104
Copy link

I had similiar symptom on vscode with project running fvm -v 3.7.9

just now by accident
after opening web debug and enabling Enable VM developer mode it started working
It loaded widget tree on web browser and in vscode
image

I had no issue with project running fvm -v 3.22.1, it starts in vscode correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 important to work on, but not at the top of the work list. screen: inspector
Projects
None yet
Development

No branches or pull requests

6 participants