[6.0] Index 0 out of bounds for length 0 in reobfJar
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Reproduce the failure with the linked MultiLoader template by running the Forge module's build and inspecting the reobfJar task. Start with net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace.java and the srgutils loading calls shown in the stack trace. Done means the template build completes without the IndexOutOfBoundsException.
Written by the indexing model from the issue text.
Description
When using this multiloader template, ForgeGradle is running into an odd exception in reobfJar during build. I've tried experimenting with removing certain parts of the template, but couldn't pinpoint what exactly is causing the issue.
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':forge:reobfJar'.
...
Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
...
at net.minecraftforge.srgutils.InternalUtils.loadNamed(InternalUtils.java:39)
at net.minecraftforge.srgutils.InternalUtils.load(InternalUtils.java:28)
at net.minecraftforge.srgutils.IMappingFile.load(IMappingFile.java:27)
at net.minecraftforge.srgutils.IMappingFile.load(IMappingFile.java:22)
at net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace.apply(RenameJarInPlace.java:66)
- Dominant language
- Java
- Stars
- 574
- Forks
- 450
- Avg merge
- 16h 20m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MinecraftForge/ForgeGradle
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
MinecraftForge/ForgeGradle#1088 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
MinecraftForge/ForgeGradle#1087 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
MinecraftForge/ForgeGradle#1078 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
MinecraftForge/ForgeGradle#1076 ·
-
MinecraftForge/ForgeGradle#1058 · 12 comments · 1 assignee ·
All issues in MinecraftForge/ForgeGradle
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100