#AccessWidenerFormatException - please help

7 messages · Page 1 of 1 (latest)

winter storm
#

Hi - I've been tearing my hair out on this. I've created a simple mod for tin ore, that works fine and adds the expecting blocks and items and recipies. Now I want to create another mod that uses the tin mod. eg: references blocks/items. I've added the relevant things to settings.gradle and build.gradle. Everything compiles correctly, but when I try to do datagen, I get an access widener issue.

Caused by: net.fabricmc.loader.impl.lib.accesswidener.AccessWidenerFormatException: Namespace (intermediary) does not match current runtime namespace (named)

I've no idea where to make this change or why it is needed. The code being accessed as far as I can tell is all public.

Note: I also get an error when running the genSources task, based on an implicit dependency, but I don't think that is causing the problem, but just incase...

Thanks you in advance for any advice.

winter storm
#

AccessWidenerFormatException - please help

clear nexus
#

is there any need for an accesswidener file?

winter storm
#

Possibly, but I don't know anything about that. I do know that the classes/items I'm referring to are declared as public.

winter storm
#

FYI - I've worked around the issue, instead of including the tin project, I'm just depending on the jar and this seems to work fine, but it does mean I need to manually update the jar when tin changes.

dapper owl
#

For most cases an Accessor/Invoker works fine