Asset attributes no longer supported
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- devtools
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
playcanvas/attribute-parser のほかの issue
-
Parser throws on tuple `@type` tags and `= {}` initializers, and silently drops unresolvable typesオープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
playcanvas/attribute-parser の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ccch1mneyyy/dsh-TUI#1631 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#507 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
Transient OAuth login failure persists in getLoginStatus and masks active account in dashboard再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンaccount-pool bug gui
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
lidge-jun/opencodex#7378 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信