flutter / flutter/devtools

Latest stager is incompatible with latest Dart SDK

Đang mở
#9,497 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
P2 testing
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

A roll of the Dart SDK into Flutter has revealed that devtools_app is incompatible with the latest Dart SDK.

devtools_app depends on [stager](https://github.com/bryanoltman/stager); the latest release of stager depends on a specific range of source_gen and of the analyzer package, both of which prohibit analyzer 8.x.y or 9.x.y.

The latest Dart SDK on the main channel includes dot-shorthand syntax in `dart:developer` sources. Any version of the analyzer package predating 8.4.1 cannot parse this code.

What to do?

* Bump stager - In June, I was able to land a PR in the stager GitHub repo that [widens the constraint on source_gen](https://github.com/bryanoltman/stager/commit/16c8bdc023df1c92211980124fc2956323aee8df). This code has not been published on pub, and the repo has been idle since that PR. This PR was actually for a different issue, and bumping the constraint to include source_gen ^3.0.0, and also to require analyzer ^8.0.0 or ^9.0.0, would be new work.
* Drop stager - Can we drop stager? Can we drop it temporarily so that devtools can continue to be tested in the Flutter customer tests? It seems to be mostly used in some tests, as it is mostly referenced in `test/test_infra/scenes`.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra các tham chiếu đến stager trong test/test_infra/scenes và các ràng buộc dependency của devtools_app. So sánh các ràng buộc source-gen và analyzer hiện có của stager với Dart SDK mới nhất, sau đó xác định liệu việc cập nhật hoặc loại bỏ stager có khả thi hay không. Hoàn tất có nghĩa là project hỗ trợ analyzer hiện tại và các Flutter customer tests chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart
Lĩnh vực
devtools, testing
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.