CraftBook 5 cannot reload with WorldEdit 7.4.7-SNAPSHOT because the command parser changed

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
api, backend

調査の方向性

craftbook-core/src/main/java/org/enginehub/craftbook/PlatformCommandManager.java の111~113行目にあるコマンドのディスパッチ呼び出しから始め、次に issue にリンクされた WorldEdit パーサーの変更を読んで、新しいエントリーポイントを特定します。呼び出しを WorldEdit 7.4.7-SNAPSHOT に合わせて更新し、craftbook reload がリロードハンドラーに到達してその結果を報告することを確認します。

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

説明

status:pending type:bug
CraftBook Version

5.0.0-SNAPSHOT+49338eb38 (five branch)

Platform Version

Paper 26.3 (build 248 when the command failed; build 257 API in the isolated compatibility check)

Confirmations
  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using a version of CraftBook compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description

Running craftbook reload from the console fails before CraftBook reaches its reload handler. The console reports this error with WorldEdit 7.4.7-SNAPSHOT:

java.lang.NoSuchMethodError: 'com.sk89q.worldedit.internal.command.CommandArgParser com.sk89q.worldedit.internal.command.CommandArgParser.forArgString(java.lang.String)'
Expected Behavior

CraftBook should parse the command, reload its configuration, and report the result to the console.

Reproduction Steps
  1. Start Paper 26.3 with CraftBook 5.0.0-SNAPSHOT+49338eb38 and EngineHub WorldEdit 7.4.7-SNAPSHOT. The command failure was observed with WorldEdit revision 2ddf41e36.
  2. Run craftbook reload in the server console.
  3. The console reports NoSuchMethodError before the configuration reload starts.
Anything Else?

CraftBook’s command dispatcher still calls CommandArgParser.forArgString(String). WorldEdit’s parser change replaced that entry point. An isolated Java check against WorldEdit 7.4.7-SNAPSHOT+349ea5155 produced the same NoSuchMethodError for that call.

主要言語
Java
スター
323
フォーク
164
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

EngineHub/CraftBook のほかの issue

EngineHub/CraftBook の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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