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

Aperta Adatta ai principianti
#1,388 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
api, backend

Direzione di ricerca

Inizia in craftbook-core/src/main/java/org/enginehub/craftbook/PlatformCommandManager.java, alla chiamata di dispatch del comando alle righe 111–113, poi leggi la modifica al parser di WorldEdit collegata nell’issue per identificare il nuovo punto di ingresso. Aggiorna la chiamata per adattarla a WorldEdit 7.4.7-SNAPSHOT e verifica che craftbook reload raggiunga il gestore del reload e ne riporti il risultato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
323
Fork
164
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di EngineHub/CraftBook

Tutte le issue di EngineHub/CraftBook

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.