DevTools extensions not discovered when app entrypoint is under custom directory
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
Bắt đầu với logic phát hiện root của packageRootFromFileUriString trong DevTools và theo dõi cách nó tìm package_config.json cho một entrypoint nằm dưới patrol_test/. So sánh hành vi đó với các thư mục được nhận diện như integration_test/ và test/. Hoàn thành khi DevTools có thể phát hiện các extension khi entrypoint của app nằm dưới một thư mục test tùy chỉnh, đồng thời giữ nguyên việc phát hiện root hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Sumary
DevTools extension discovery fails if the main isolate root library is under a custom test directory (patrol_test/ in our case) that is not recognized by DevTools’ package root heuristic. Extensions appear when tests are moved to integration_test/ which is a recognized root.
Context
I'm working on Patrol which has it's own devtools extension. We recently changed the default directory where all the tests are stored from integration_test to patrol_test. After doing so, we then found out that our devtools extension is not found when running tests.
Notes
DevTools root detection uses packageRootFromFileUriString, which only recognizes lib, bin, integration_test, test, benchmark, example as valid top‑level dirs. Custom test dirs like patrol_test/ are not recognized, so the root resolves incorrectly and package_config.json lookup fails.
Would it be possible to make it more configurable so that we could point to patrol_test directory in our case?
- Ngôn ngữ chính
- Dart
- Star
- 1.7k
- Fork
- 420
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flutter/devtools
-
Check for modern web libraries to determine if an app is a web appCó thể đã có người làm @hkarmoush đã nhận 36 ngày trước. Đang mởP1 type-code-health
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
flutter/devtools#9973 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`dcm analyze` false positivesĐang mởP2 type-code-health
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
flutter/devtools#9942 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Inspector V2] Widget properties tab highlight extends past its rounded edgeCó thể làm lại được @theprantadutta đã nhận 195 ngày trước và không có pull request nào đang mở. Đang mởcontributions welcome cross-screen inspector-2.0-polish P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
flutter/devtools#8936 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support removing storage keysĐang mởcross-screen P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
flutter/devtools#8293 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của flutter/devtools
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
hiddify/hiddify-app#2668 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
toyota-connected/emb_cli#358 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: import beta cluster: callers box improvements severity: minor status: confirmed type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ibanner56/CallersCompendium#2366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ccch1mneyyy/dsh-Go#1777 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: mobile documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
CommandLineCoding/Elephant#383 ·
Maintainer thường phản hồi trong vòng 1 ngày