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

StackOverflow when parsing certain maven project #48

Open
YukkuriC opened this issue Jan 5, 2025 · 2 comments
Open

StackOverflow when parsing certain maven project #48

YukkuriC opened this issue Jan 5, 2025 · 2 comments

Comments

@YukkuriC
Copy link

YukkuriC commented Jan 5, 2025

I was using architectury loom in gradle, and added "mekanism:Mekanism:1.20.1-10.4.0.14:api" from maven maven { url 'https://modmaven.dev/' }
After an eternity of remapping, it gave me pages of red text:

Cause: java.lang.StackOverflowError
	at org.cadixdev.mercury.shadow.org.eclipse.jdt.internal.compiler.lookup.Binding.isValidBinding(Binding.java:176)
	at org.cadixdev.mercury.shadow.org.eclipse.jdt.core.dom.DefaultBindingResolver.internalGetTypeBinding(DefaultBindingResolver.java:387)
	at org.cadixdev.mercury.shadow.org.eclipse.jdt.core.dom.DefaultBindingResolver.getTypeBinding(DefaultBindingResolver.java:380)
	at org.cadixdev.mercury.shadow.org.eclipse.jdt.core.dom.TypeBinding.getSuperclass(TypeBinding.java:870)
// repeat start
	at org.cadixdev.mercury.analysis.MercuryInheritanceProvider$BindingClassInfo.provideParents(MercuryInheritanceProvider.java:130)
	at org.cadixdev.bombe.analysis.InheritanceProvider$ClassInfo.provideParents(InheritanceProvider.java:168)
	at org.cadixdev.bombe.analysis.LazyInheritanceClassInfo.provideParents(LazyInheritanceClassInfo.java:112)
	at org.cadixdev.bombe.analysis.LazyInheritanceClassInfo.provideParents(LazyInheritanceClassInfo.java:119)
	at org.cadixdev.mercury.analysis.MercuryInheritanceProvider$BindingClassInfo.provideParent(MercuryInheritanceProvider.java:123)
// repeat end
......
YukkuriC added a commit to YukkuriC/HexOverpowered that referenced this issue Jan 5, 2025
@jamierocks
Copy link
Member

For future reference: the sources jar is available at https://modmaven.dev/mekanism/Mekanism/1.20.1-10.4.0.14/Mekanism-1.20.1-10.4.0.14-api.jar

I'm not familiar with architectury loom, do you know what mappings were being applied to mechanism?

@YukkuriC
Copy link
Author

YukkuriC commented Jan 6, 2025

For future reference: the sources jar is available at https://modmaven.dev/mekanism/Mekanism/1.20.1-10.4.0.14/Mekanism-1.20.1-10.4.0.14-api.jar

I'm not familiar with architectury loom, do you know what mappings were being applied to mechanism?

It's loom.officialMojangMappings() in gradle, and I guess it comes from...
https://github.com/architectury/architectury-loom/blob/dev/1.7/src/main/java/net/fabricmc/loom/configuration/providers/mappings/mojmap/MojangMappingLayer.java
this? sorry I'm not familiar with inside gradle either, and can't dig further :(

and here might be where they call Mercury
https://github.com/architectury/architectury-loom/blob/dev/1.7/src/main/java/net/fabricmc/loom/task/service/SourceRemapperService.java
https://github.com/architectury/architectury-loom/blob/dev/1.7/src/main/java/net/fabricmc/loom/util/SourceRemapper.java

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

2 participants