Mixin icon indicating copy to clipboard operation
Mixin copied to clipboard

Dev environment and mixin tweaker + mod in one jar doesn't work in yet another case

Open Barteks2x opened this issue 5 years ago • 5 comments

Issue looks similar to #207.

This time, when a mod that has a mixin, coremod and a normal forge mod in one jar is added as a standard compile or runtime dependency, mod mod won't get loaded. The same jar file is loaded when added as deobfCompile dependency, but what I want is a runtime dependency, not compile.

MANIFEST.MF contains:

Manifest-Version: 1.0
TweakOrder: 0
FMLCorePluginContainsFMLMod: true
FMLAT: cubicchunks_at.cfg
TweakClass: org.spongepowered.asm.launch.MixinTweaker
ForceLoadAsMod: true
FMLCorePlugin: io.github.opencubicchunks.cubicchunks.core.asm.coremod.
 CubicChunksCoreMod

Barteks2x avatar Apr 21 '19 14:04 Barteks2x

Most likely a fault in the convoluted injection logic of FML agent again, too hacky for its own good. I'll look into it when I have a moment.

Mumfrey avatar Apr 24 '19 10:04 Mumfrey

I too ran into this problem, but you can use deobfProvided as quick workaround. if you do that, you'll lose comments when browsing through your code, and it messes with the variable names.

But at runtime: it works like a charm.

TerminatorNL avatar Apr 26 '19 16:04 TerminatorNL

deobfProvided is the exact opposite of what I need. Provided dependencies are used at compile time but not added to class path at runtime. I want something is on the classpath at runtime but that I don't have access to when compiling. It's way too easy to accidentally use some implementation detail from the implementation jar.

Barteks2x avatar Apr 26 '19 19:04 Barteks2x

If you don't need it in your IDE... Can't you just add the jars to the mods/library folder? I might be missing your point here though.

TerminatorNL avatar Apr 26 '19 19:04 TerminatorNL

The point is that it should just work without messing around in IDE settings every single time I refresh gradle project. ForgeGradle also has runClient and runServer tasks that won't really work without adding a runtime dependency there.

Barteks2x avatar Apr 26 '19 20:04 Barteks2x