devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Inspector does not show widget tree when started in IDE, with multiple pub root folders.

Open polina-c opened this issue 3 years ago • 3 comments

  1. Open DevTools's folder packages in Android Studio
  2. Click button 'Debug' on top for macos device and configuration 'DevTools'
  3. Click DevTools button in Android Studio to open second DevTools
  4. Find that devtools Inspector screen toes not show the tree
  5. Click the button 'hot reload' in the second DevTools and find the tree appeared and disappeared.
Flutter 3.1.0-0.0.pre.2255 • channel master • https://github.com/flutter/flutter.git
Framework • revision a85902aa32 (2 hours ago) • 2022-08-12 14:28:55 -0400
Engine • revision c354e0e04c
Tools • Dart 2.19.0 (build 2.19.0-93.0.dev) • DevTools 2.16.0

https://user-images.githubusercontent.com/12115586/184468306-9df99a29-a682-4fd2-ab63-8a261777aa7f.mov

polina-c avatar Aug 13 '22 04:08 polina-c

Sounds like this may be an issue with opening a mono-repo (where there is more than one package in the IJ project) @stevemessick @helin24.

@DanTup does VS code handle this case well?

@CoderDake here is an example of a failure case we want to track with analytics (when the tree loads with a single node [root]

kenzieschmoll avatar Aug 15 '22 20:08 kenzieschmoll

The Flutter plugin recently added support for monorepos: https://groups.google.com/g/flutter-announce/c/on6eKqmhD3A

stevemessick avatar Aug 15 '22 20:08 stevemessick

@DanTup does VS code handle this case well?

I believe so. It looks like the issue described in https://github.com/Dart-Code/Dart-Code/issues/3210 which was fixed by ensuring we pass all projects to the call to setPubRootDirectories (as arg0, arg1 ... argN).

DanTup avatar Aug 22 '22 17:08 DanTup

@CoderDake is this still relevant with the work you did on ensuring pub root directories are properly set?

kenzieschmoll avatar May 30 '23 23:05 kenzieschmoll