You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, it looks like very large protobuf definitions can cause scalac to generate classes that exceed the JVM's class bytecode limit. I've inlined an example protobuf below. It's possible that this is due to with with/add/clear methods being generated; perhaps removing them would allow this file to build?
This is on Scala 2.12.5.
Here's the error message:
error: Could not write class com/foo/bar/bar/MyProto because it exceeds JVM code size limits. Class file too large!
one error found
one error found
java.lang.RuntimeException: Build failed
at io.bazel.rulesscala.scalac.ScalacProcessor.compileScalaSources(ScalacProcessor.java:242)
at io.bazel.rulesscala.scalac.ScalacProcessor.processRequest(ScalacProcessor.java:67)
at io.bazel.rulesscala.worker.GenericWorker.runPersistentWorker(GenericWorker.java:45)
at io.bazel.rulesscala.worker.GenericWorker.run(GenericWorker.java:111)
at io.bazel.rulesscala.scalac.ScalaCInvoker.main(ScalaCInvoker.java:41)
I'm closing this because it may just be correlated to pre-scala 2.12.8, and this feature is really to enable builds, not because I don't want those nice functions.
Hello, it looks like very large protobuf definitions can cause scalac to generate classes that exceed the JVM's class bytecode limit. I've inlined an example protobuf below. It's possible that this is due to with
with
/add
/clear
methods being generated; perhaps removing them would allow this file to build?This is on Scala 2.12.5.
Here's the error message:
The text was updated successfully, but these errors were encountered: