Open jlambrecht opened 10 years ago
I get something very similar to this with a project that isn't using lamina. Not sure of the reason.
@devn You wouldn't happen to be able to produce a minimal case? @jlambrecht Did you ever figure out what's going on here?
This is http://dev.clojure.org/jira/browse/CLJ-1206 - there is a function object somewhere in the evaled code (rather than the 'code for the function'). It seems that either things are getting evalled twice somewhere, or channel*
internally expands into a function object rather than code.
I can't seem to load lamina using lein-try
, so I can't really say what this macroexpands to. I suggest running this through (wrap #'nop 0 '(channel*))
with debug set on, and inspecting the macroexpansion step by step. Before it crashes it should print out the form it's trying to eval, which should have some weirdness inside (I expect a function object).
@lvh no, I never did get to the bottom of this.
@JacekLach Thanks for the hint, helped me fix a similar problem to #164 !
Here is a minimal reproduction:
Running
lein cloverage
results in:The project.clj is:
Notice that I have
[riddley "0.1.6"]
in:dependencies
. This is because of the workaround identified in issue #47. If the riddley dependency is removed the exception is: