Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

yml_decode() error in core on decoding Date datatypes

オープン
#1,321 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
backend

調査の方向性

DataTransformations.java:256 から開始し、スタックトレースに示されているように、yml_decode のパスを Construct.GetConstruct までたどってください。提供されている yml_decode 呼び出しで問題を再現し、デコードされた Date 値がどのように処理されるかを調べてください。この入力で ClassCastException が発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EngineHub/CommandHelper のほかの issue

EngineHub/CommandHelper の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。