Asset attributes no longer supported
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- devtools
Hướng nghiên cứu
The bug is that JSDoc @type {Asset} and @type {Entity} are rejected by the attribute parser, with the error listing only Curve, Vec2, Vec3, Vec4, Color, number, string and boolean. Search the TypeScript source for that error text and for the list of accepted attribute types, then check the 2.22.6 history to see how these types were handled before. Run the minimal script from the issue to reproduce. Done means that Asset and Entity attributes parse again, with a test covering them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Asset attributes worked in 2.22.6 but no longer work in 2.23.2+.
Minimal script:
import { Script, Asset, Entity } from 'playcanvas';
export class AssetAttr extends Script {
static scriptName = 'assetAttr';
/**
* @attribute
* @type {Asset}
*/
myAsset = null;
/**
* @attribute
* @type {Entity}
*/
myEntity = null;
}
Editor shows an error:
broken-attribute.mjs:8:14 - (myAsset) "{Asset}" is not a valid attribute type. An attribute should be one of the following: Curve, Vec2, Vec3, Vec4, Color, number, string, boolean
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 playcanvas/attribute-parser
-
Parser throws on tuple `@type` tags and `= {}` initializers, and silently drops unresolvable typesĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
Tất cả issue của playcanvas/attribute-parser
Issue tương tự
-
area: repo priority: P2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
appandflow/stim#4107 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 60/100
lingdojo/kana-dojo#32859 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/gh-aw-firewall#10364 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Merge the duplicate kaffir_corn record into sorghumCó thể đã có người làm @Crypto-Shroom đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Crypto-Shroom/Bird-Feed-Calculator#322 ·
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 75/100
drizzle-team/drizzle-orm#6552 ·
Maintainer thường phản hồi trong vòng 2 ngày