lein-bikeshed icon indicating copy to clipboard operation
lein-bikeshed copied to clipboard

Method code too large

Open gfredericks opened this issue 9 years ago • 1 comments

When I tried to use this for the first time, I got the error:

Method code too large!, compiling:(/tmp/form-init8994061610506342078.clj:1:982)

and glancing around the code I noticed that the entire project map is injected into the code to be evaluated in the project. My speculation is that some other plugin is causing the project map to be prohibitively large.

Would it be reasonable to pull out the relevant parts (maybe just :source-paths and :test-paths?) of the project map before injecting it into the form to eval?

gfredericks avatar Sep 07 '16 18:09 gfredericks

Would it be reasonable to pull out the relevant parts (maybe just :source-paths and :test-paths?) of the project map before injecting it into the form to eval?

I think that would be reasonable. I haven't encountered this issue before so I didn't do anything to extract only parts of the project map

dakrone avatar Sep 07 '16 20:09 dakrone