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

"Method too large" error during compilation of schema module #6229

Open
Tracked by #6076
GokhanArik opened this issue Oct 30, 2024 · 2 comments
Open
Tracked by #6076

"Method too large" error during compilation of schema module #6229

GokhanArik opened this issue Oct 30, 2024 · 2 comments

Comments

@GokhanArik
Copy link
Contributor

GokhanArik commented Oct 30, 2024

Version

4.0.2-2024.10.25

Summary

Hi team,

I'm getting this error when I run the codegen. We have over 10K types.

Error generating class file .../schema/__Schema.class (compiled from .../schema/__Schema.kt]): Method too large: .../schema/__Schema.<clinit> ()V

Steps to reproduce the behavior

No response

Logs

(Your logs here)
@martinbonnin
Copy link
Contributor

martinbonnin commented Oct 30, 2024

Thanks for raising this 🙏 . Just for clarifying, this is not a regression, right? I don't think we changed that part of codegen recently.

Also, but I'm guessing you know that already, you can disable __Schema generation with generateSchema.set(false) and generateDataBuilders.set(false) (Data builders use those types)

@GokhanArik
Copy link
Contributor Author

I didn't know to be honest, thanks! We wanted to try Data Builders and enabled generateDataBuilders which enables generateSchema. I guess we cannot try it until there is a fix for this.

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

No branches or pull requests

2 participants