Skip to content

DTD workspace roots not getting set #7616

Open
@kenzieschmoll

Description

@kenzieschmoll

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.

Activity

added this to the M82 milestone on Aug 21, 2024
helin24

helin24 commented on Aug 21, 2024

@helin24
Member

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?

modified the milestones: M82, M83 on Oct 9, 2024
self-assigned this
on Nov 26, 2024
modified the milestones: M83, M84 on Nov 26, 2024
modified the milestones: M84, M85 on Feb 10, 2025
modified the milestones: M85, M86 on Apr 9, 2025
removed their assignment
on Apr 28, 2025
self-assigned this
on May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1devtools-integrationRelated to the integration with Dart DevTools

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @jwren@helin24@kenzieschmoll

      Issue actions

        DTD workspace roots not getting set · Issue #7616 · flutter/flutter-intellij