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

Offen Anfängerfreundlich
#1,388 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
75/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
java
Bereich
api, backend

Rechercherichtung

Beginne in craftbook-core/src/main/java/org/enginehub/craftbook/PlatformCommandManager.java beim Aufruf zur Befehlsverteilung in den Zeilen 111–113 und lies dann die im Issue verlinkte Änderung am WorldEdit-Parser, um den neuen Einstiegspunkt zu ermitteln. Passe den Aufruf an WorldEdit 7.4.7-SNAPSHOT an und überprüfe, dass craftbook reload den Reload-Handler erreicht und dessen Ergebnis meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Java
Sterne
323
Forks
164
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus EngineHub/CraftBook

Alle Issues in EngineHub/CraftBook

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.