[BUILDTOOLS-657] Error patching net\minecraft\resources\ResourceKey.java Created: 06/May/23 Updated: 25/Dec/24 |
|
Status: | Open |
Project: | BuildTools |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Janmm14 | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | ResourceKey, difflib, error, patcher | ||
Environment: |
Win10, Java 19, git 2.40.1.windows.1, inside git bash |
Attachments: |
![]() ![]() ![]() |
Version: | git-BuildTools-15f42f5-156 |
Guidelines Read: | Yes |
Description |
/C/java/jdk19/bin/java -jar BuildTools.jar --rev 1.19.3 --remapped
Exception in thread "main" java.lang.RuntimeException: Error patching net\minecraft\resources\ResourceKey.java
at org.spigotmc.builder.Builder.lambda$main$2(Builder.java:669)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at org.spigotmc.builder.Builder.main(Builder.java:620)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)
Caused by: difflib.PatchFailedException: Incorrect Chunk: the chunk content doesn't match the target
at difflib.Chunk.verify(Chunk.java:86)
at difflib.ChangeDelta.verify(ChangeDelta.java:78)
at difflib.ChangeDelta.applyTo(ChangeDelta.java:44)
at difflib.Patch.applyTo(Patch.java:43)
at difflib.DiffUtils.patch(DiffUtils.java:70)
at org.spigotmc.builder.Builder.lambda$main$2(Builder.java:657)
... 13 more
|
Comments |
Comment by Janmm14 [ 06/May/23 ] |
Using another buildtools folder which i remembered where i last built 1.19.2 it worked. Also forgot to update the buildtools version in there, log of that success attached anyway. |
Comment by Janmm14 [ 06/May/23 ] |
Not sure what exact shenanigans are happening here anymore. I get same error with 1.19.4 in that folder, however using another folder the build process went past craftbukkit patching and it did not even mention ResourceKey.java file at all (not a single match searching for Patching net\minecraft\resources in the log of the other folder). You mean you want the file H:\C\Users\Jan\testserver\BuildTools\work\decompile-c69e3af0\net\minecraft\resources\ResourceKey.java? I'll attach it too. |
Comment by md_5 [ 06/May/23 ] |
I mean ResourceKey.java |
Comment by Janmm14 [ 06/May/23 ] |
done, however that log is now using standard windows cmd (not git bash) cuz i forgot to back up the original one |
Comment by md_5 [ 06/May/23 ] |
Please provide a copy of that file |