repeats / Repeat

Cross-platform mouse/keyboard record/replay and automation hotkeys/macros creation, and more advanced automation features.
Apache License 2.0
1.03k stars 76 forks source link

Code too long to compile #47

Open beefchalupa opened 5 months ago

beefchalupa commented 5 months ago

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.

hptruong93 commented 5 months ago

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