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

Flutter Inspector not available in Android Studio #7430

Open
kenzieschmoll opened this issue May 15, 2024 · 10 comments
Open

Flutter Inspector not available in Android Studio #7430

kenzieschmoll opened this issue May 15, 2024 · 10 comments
Assignees
Labels
devtools-integration Related to the integration with Dart DevTools
Milestone

Comments

@kenzieschmoll
Copy link
Member

I can only access the Flutter Deep Links tool window, but not any of the other expected tool windows. This is with the new UI. The latest IntelliJ with the new UI and latest plugins is WAI, so this may be AS only.

Screenshot 2024-05-15 at 9 30 19 AM

Android Studio Jellyfish | 2023.3.1
Build #AI-233.14808.21.2331.11709847, built on April 12, 2024
Runtime version: 17.0.10+0-17.0.10b1087.21-11572160 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
Non-Bundled Plugins:
  Dart (233.15123)
  io.flutter (79.0.2)
@kenzieschmoll kenzieschmoll added the devtools-integration Related to the integration with Dart DevTools label May 15, 2024
@helin24
Copy link
Member

helin24 commented May 15, 2024

Are you able to run your app when this happens? I wonder if the project isn't being recognized as a Dart/Flutter project for some reason.

@martipello
Copy link

i have the same issue, this happens everytime i update android studio, before i found and removed multiple android studio folders here
/Users/userName/Library/Application Support/Google
i applied the fix described here
#5853
but after the jellyfish update this didnt work anymore 🤷

@helin24
Copy link
Member

helin24 commented May 16, 2024

@martipello you've been using the steps here? #5853 (comment)

I'm not sure I see how this is related, as some of the windows here don't you JX browser at all. So for you, before you fix the location of JX browser, this removes the inspector, performance, and outline windows from your tools menu. After you fix the JX browser file, the tool windows are available?

@kenzieschmoll
Copy link
Member Author

Are you able to run your app when this happens? I wonder if the project isn't being recognized as a Dart/Flutter project for some reason.

Yes, and the Inspector and Outline are still not available when I run an app. Lmk if there are any logs you want me to collect to help debug.

@helin24
Copy link
Member

helin24 commented May 16, 2024

Kenzie let me know that this can be reproduced by opening devtools/packages, which is a directory with multiple flutter projects within it. I've looked at our code a little more, and this issue is related to how we detect Flutter modules within an open project. I feel like there was a larger discussion about monorepos and projects that have multiple directories with their own pubspec files. @jwren are you familiar with this topic?

In the meantime if you need a workaround, opening a project with a pubspec within it should show all of the Flutter windows again.

@martipello
Copy link

Kenzie let me know that this can be reproduced by opening devtools/packages, which is a directory with multiple flutter projects within it. I've looked at our code a little more, and this issue is related to how we detect Flutter modules within an open project. I feel like there was a larger discussion about monorepos and projects that have multiple directories with their own pubspec files. @jwren are you familiar with this topic?

In the meantime if you need a workaround, opening a project with a pubspec within it should show all of the Flutter windows again.

That's right I think you can create a near empty one also, my project is multi module

@helin24
Copy link
Member

helin24 commented May 16, 2024

Okay, makes sense. I'm still confounded by why the JX browser steps would have fixed this issue for you though @martipello 🤷

@martipello
Copy link

I thought it fixed it for me the first time it happened I tried it again today as the latest update broke it and this time it didn't fix it

@vasilich6107
Copy link

Hi @helin24
The workaround does not seem to work

I have a monorepo with pubspec.yaml at the root.
No luck.

Any updates on this issue?

image

@jwren
Copy link
Member

jwren commented Dec 23, 2024

No update, prioritizing to take a closer look soon.

See #7875. I current guess is that this is race condition hit by some users. Perhaps as a consequence of having to download the JxBrowser perhaps.

@jwren jwren self-assigned this Dec 23, 2024
@jwren jwren added this to the M84 milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools-integration Related to the integration with Dart DevTools
Projects
None yet
Development

No branches or pull requests

5 participants