Fork me on GitHub
#cider
<
2020-09-17
>
shem10:09:04

I was debugging some functions with cider-debug-defun-at-point and one of them produced a "Method code too large!" error. It is a largish function, 48 lines. Is there anything to be done except split the function?

jumar06:09:53

That doesn't sound like a big function. Is that a java exception? Maybe the function itself uses some complicated macro that produces a lot of code under the hood?

shem09:09:18

I suppose it is a java exception

shem10:09:03

There's nothing exotic going on, except a call to postal/send-message, which uses java interop

jumar12:09:09

What happens if you "macroexpand-all" it? Does removing a specific piece of the implementation help?

shem09:09:36

yeah, i got it working by commenting the call to postal/send-message