yml_decode() error in core on decoding Date datatypes
まだ誰も着手していません。
評価
調査の方向性
DataTransformations.java:256 から開始し、スタックトレースに示されているように、yml_decode のパスを Construct.GetConstruct までたどってください。提供されている yml_decode 呼び出しで問題を再現し、デコードされた Date 値がどのように処理されるかを調べてください。この入力で ClassCastException が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
yml_decode('test: 2022-07-01T18:30:00+02:00')
results in
Uh oh! You've found an error in Core.
This happened while running your code, so you may be able to find a workaround, but is ultimately an issue in Core.
The following code caused the error:
yml_decode('test: 2022-07-01T18:30:00+02:00')
on or around Interpreter:1.
Please report this to the developers, and be sure to include the version numbers:
Server version: SHELL;
MethodScript version: 3.3.5;
Loaded extensions and versions:
Core (3.3.5)
CHFile (0.0.7)
Here's the stacktrace:
java.lang.ClassCastException: java.util.Date cannot be cast to a Construct type
at com.laytonsmith.core.constructs.Construct.GetConstruct(Construct.java:382)
at com.laytonsmith.core.constructs.Construct.GetConstruct(Construct.java:370)
at com.laytonsmith.core.constructs.Construct.GetConstruct(Construct.java:337)
at com.laytonsmith.core.functions.DataTransformations$yml_decode.exec(DataTransformations.java:256)
at com.laytonsmith.core.Script.eval(Script.java:449)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:3030)
at com.laytonsmith.tools.Interpreter$4.run(Interpreter.java:832)
at java.base/java.lang.Thread.run(Thread.java:833)
- 主要言語
- Java
- スター
- 128
- フォーク
- 70
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EngineHub/CommandHelper のほかの issue
-
discussion wanted documentation
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1403 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1370 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
EngineHub/CommandHelper#1354 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
EngineHub/CommandHelper#1349 · コメント 3 件 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
EngineHub/CommandHelper#1341 · コメント 2 件 ·
EngineHub/CommandHelper の issue をすべて見る
似ている issue
-
certification
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's オープンbug ecr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Needs: Triage Type: Feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2760 ·