Repeat icon indicating copy to clipboard operation
Repeat copied to clipboard

Code too long to compile

Open beefchalupa opened this issue 1 year ago • 1 comments

When recording a longer mouse recording, it won't let me compile to java. Is there a way to bypass this or import a task manually compiled myself?

Here's the error:

[06/03/2024 4:19:47] core.languageHandler.compiler.JavaNativeCompiler WARNING: Error on line 26 in file:///home/user/core/CC_1709716786525.java. [06/03/2024 4:19:47] core.languageHandler.compiler.JavaNativeCompiler WARNING: code too large [06/03/2024 4:19:47] core.languageHandler.compiler.JavaNativeCompiler WARNING: Cannot compile class CustomAction [06/03/2024 4:19:47] core.webui.server.handlers.internals.taskcreation.ActionCompileTaskHandler WARNING: Unable to compile source code.

beefchalupa avatar Mar 06 '24 09:03 beefchalupa

This is because Java method has a limit https://stackoverflow.com/a/107911 "a method does have a limit of 65535 bytes of bytecode per method"

To overcome this, have you considered not recording mouse movements? See the "Record mouse click only" option in the Settings menu image

hptruong93 avatar Mar 06 '24 18:03 hptruong93