Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime exception in TransformerRuntime.removeDuplicates #50

Open
SammyForReal opened this issue Oct 3, 2024 · 3 comments
Open

runtime exception in TransformerRuntime.removeDuplicates #50

SammyForReal opened this issue Oct 3, 2024 · 3 comments

Comments

@SammyForReal
Copy link

SammyForReal commented Oct 3, 2024

Description

Whenever I start my forge client in dev env, The following exception gets thrown:

java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 54
	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4606)
	at java.base/java.lang.String.substring(String.java:2709)
	at dev.architectury.transformer.TransformerRuntime.lambda$null$8(TransformerRuntime.java:250)
	at dev.architectury.transformer.input.BaseFileAccess.handle(BaseFileAccess.java:56)
	at dev.architectury.transformer.input.ForwardingFileView.handle(ForwardingFileView.java:42)
	at dev.architectury.transformer.TransformerRuntime.lambda$removeDuplicates$9(TransformerRuntime.java:246)
	at java.base/java.util.ArrayList.removeIf(ArrayList.java:1672)
	at java.base/java.util.ArrayList.removeIf(ArrayList.java:1660)
	at dev.architectury.transformer.TransformerRuntime.removeDuplicates(TransformerRuntime.java:240)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:214)

Context

It seems to be trying some String manipulation using the variable relative, which in my case contained the following string: "dev\kleinbox\cccbridge\forge\InitializationForge.class"

Version

Architectury-Plugin: 3.4-SNAPSHOT
Forge: 1.20.1-47.2.6

@xp2-882030kgz010602
Copy link

I'm getting this issue too with this mod that uses Architectury as a dependency.
https://github.com/BlueStaggo/moderner-beta/tree/1.20.4

@forkiesassds
Copy link

Just forget about having lexforge 1.20.4 work in a dev env. I’ve tried, it just never works. Best might be to drop 1.20.4 and/or lexforge as nobody uses lexforge beyond 1.20.1

@xp2-882030kgz010602
Copy link

Re: 1.20.4: I should have made it clear that this isn't my mod. Additionally, I get the same error with the 1.21 version of that mod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants