FastAsyncWorldEdit icon indicating copy to clipboard operation
FastAsyncWorldEdit copied to clipboard

my //cut randomly stopped working

Open KingTurtle1000 opened this issue 1 year ago • 2 comments

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

whenever i do //cut or //set on any amount of blocks it says Please report this error: [see console] java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap com.google.cmmon.collect.immutableMap$Buider.buildOrThrow()'

To Reproduce

//cut //set

Expected behaviour

cut the blocks of the selected area set the blocks to a block in the selected area

Screenshots / Videos

Screen Shot 2024-02-22 at 8 35 43 AM Screen Shot 2024-02-22 at 8 35 49 AM

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/62760e2ea1f442989df20ebc10509f77

Fawe Version

FastAsyncWorldEdit version 2.9.1-SNAPSHOT-660;f94b96d

Checklist

  • [X] I have included a Fawe debugpaste.
  • [X] I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.

Anything else?

PLS HELP I NEED IT FOR MY SERVER

KingTurtle1000 avatar Feb 22 '24 14:02 KingTurtle1000

Ive tested other commands none of the FAWE commands work anymore

KingTurtle1000 avatar Feb 22 '24 15:02 KingTurtle1000

Saw this issue, for any devs looking through, this problem is with piston. Piston uses guava version 21.0 (because that's what works with minecraft according to comments in code) but attempts to use ImmutableMap.Builder.buildOrThrow which was implemented in version 31.0, so it attempts to call a method that doesn't exist in that version. Never worked in mods before but code hunting brought me to this, hope it helps!

Also, here's the error logs he forgot to include https://pastebin.com/ifEiYufJ

Tldr; Command handler (piston) broken, update guava or don't use buildOrThrow (in piston)

Update: AutoValue_CommandParamatersImpl line 162 "this.values = this.valuesBuilder$.buildOrThrow();" I do not understand how autovalue works in the slightest but this is what's there

Update 2: Downgrading AutoValue back to 1.7.4 in piston may fix this, since buildOrThrow is the default in the new version of AutoValue that is used in piston

Cryodev1 avatar Feb 22 '24 15:02 Cryodev1

@Cryodev1 would you be willing to make a fork of FAWE that has this patched so I can use a working version on my server

Atticuss26 avatar Mar 15 '24 19:03 Atticuss26

1.17.1 is no longer supported, I recommend updating your server to a maintained version, such as 1.20.4.

NotMyFault avatar Mar 17 '24 13:03 NotMyFault