flutter / flutter/devtools

"could not read file as String: devtools_extensions/..." if pointing to different version of package without extension present

Đang mở
#8,981 7 bình luận 4 reaction 0 người được giao Xem trên GitHub
bug devtools extensions P1 product-quality
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ả

This is splitting off a separate issue from #8912 from https://github.com/flutter/devtools/issues/8912#issuecomment-2672370477 based on discussion in comment https://github.com/flutter/devtools/issues/8912#issuecomment-2679871965.

If you point to a version of a package that has a devtool extension, then point to another version that does not have that extension present (i.e. built), you get an error about "could not read file".

> If you point to a version of rohd which has a devtools extension present (e.g. the artifacts branch), and get it loaded up successfully, it then adds to the devtools_options.yaml file:
>
> description: This file stores settings for Dart & Flutter DevTools.
> documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
> extensions:
> - rohd: true
> If you then point to a version of rohd which does not have the devtools extension (e.g. the main branch), then when you open devtools, the rohd tab is still present but you get an error
>
> could not read file as String: devtools_extensions/rohd_0.0.1/index.html
>
> ![Image](https://github.com/user-attachments/assets/6fffbdd5-3317-4509-ac31-0213c3a46de2)
>
> Is that the intended error message when an extension is not present?

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

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

Đánh giá

Issue này chưa được đánh giá.

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.