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

DTD workspace roots not getting set #7616

Open
kenzieschmoll opened this issue Aug 20, 2024 · 1 comment
Open

DTD workspace roots not getting set #7616

kenzieschmoll opened this issue Aug 20, 2024 · 1 comment
Labels
devtools-integration Related to the integration with Dart DevTools P1
Milestone

Comments

@kenzieschmoll
Copy link
Member

kenzieschmoll commented Aug 20, 2024

I noticed this because the extensions view was empty for an IntelliJ project that should have DevTools extensions (due to the dependencies on the provider and flame packages).
Screenshot 2024-08-20 at 9 26 32 AM

From DevTools verbose logging, we can see that the project roots are empty:

{"level":"FINE","message":"[from devtools_server] ExtensionsManager.serveAvailableExtensions adding extensions for DTD project roots: []","timestamp":"2024-08-20 16:27:09.684Z","loggerName":"devtools_server_client"}

I tried invalidating caches and restarting IntelliJ, but encountered the same problem. Let me know if there are any logs I can collect from IntelliJ that would be helpful.

@kenzieschmoll kenzieschmoll added P1 devtools-integration Related to the integration with Dart DevTools labels Aug 20, 2024
@helin24 helin24 added this to the M82 milestone Aug 21, 2024
@helin24
Copy link
Member

helin24 commented Aug 21, 2024

What's the timing for when you're opening DevTools? I suspect what's happening is there's a delay in the workspace roots being set from the Dart plugin, so opening an instance of DevTools app early on will show no roots available. I'm able to reproduce opening Android Studio, opening DevTools immediately and seeing no roots, then waiting a while and opening DevTools again and seeing roots.

This is still problematic for the DevTools tool windows since some will be loaded immediately, so being able to reload from the tool window will be useful (#7617). Alternatively, can DevTools detect if roots are set later on?

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 P1
Projects
None yet
Development

No branches or pull requests

2 participants