oωo (owo-lib)

oωo (owo-lib)

17M Downloads

@Config generating .class files but not .java files

ThatBlockyPenguin opened this issue · 7 comments

commented

Hi.

I'm trying out owo-lib for the first time, so please excuse me if I've made a dumb mistake, but I have followed this guide up until the part where you have to actually reference the generated config class. I have built the mod, as the guide said to do, but the generated class only exists in the built jars output by gradle, not in my source code. As such, I cannot reference it, causing a compilation error.

I am using owo version 0.10.6+1.19.4.

commented

PR created wisp-forest/docs#6 :)

commented

Are you using IntelliJ to build your mod? If so, it is quite possible you need to run the game once before Idea will recognize the generated sources - it can be quite fiddly sometimes.

To do this, you'll of course have to temporarily remove all potential references to your config class before running - after running it should show up.

Let me know if this helps
Cheers

commented

Thanks for the quick reply!
I'm using Eclipse 2023-03

commented

Hmmm, in that case I'm sorry to say that a good Googling session may be your best option. Neither me or anyone else on our team has ever used Eclipse for building mods.

If you like, I can also recommend joining our Discord server where we can more easily provide support

commented

Hmm alright, well thanks for trying!
If Google doesn't find me the answer, expect to see me in the Discord server soon :)
When I find the solution, would you like me to drop a pull request on the docs repository for other Eclipse users to follow?

commented

If that's something you're open to do, we'd certainly welcome the contribution!

Hope you get your problem solved
Cheers

commented

Of course! Happy to help :)
I think I've figured it out now, although Eclipse doesn't make it easy.