Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Timothy Baldridge
Like normal clojure code, gos don't support a recur that jumps out through a try. However, the go macro should be patched to bring that to the attention of the user. Timothy On Tue, Jan 7, 2014 at 2:22 PM, Luc Prefontaine wrote: > Just got your email, I remember > vaguely about this issue mayb

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Luc Prefontaine
Just got your email, I remember vaguely about this issue maybe when Tim did is presentation at fhe Conj. Or maybe on the mailing list. You may try what I described in my previous email and make your mind about this. Luc P. > > I've changed all of the go blocks to thread and got an exception tha

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Luc Prefontaine
Maybe hidden in the go macro expanded code. I do not have access to it (iPhone). You may want to use macroexpand and grep on the expansion. Just take your go block and wrap it in (macroexpand '(your form)) Don't forget the quote. Maybe the expansion will shed some light. Do not panic on the l

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Gerrit Jansen van Vuuren
I've changed all of the go blocks to thread and got an exception that I cannot recur over a try catch. mm.. did not get this error in my go block. removing the recur's over try catch blocks makes the code work now with both go and thread. At least this is what I've changed now and the error has

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Gerrit Jansen van Vuuren
I do not have a single close! statement in my code anywhere. I've double checked with grep -lhr "close\!" . through my whole codebase and all the projects in it. On Tuesday, 7 January 2014 21:05:53 UTC+1, Luc wrote: > > You are trying to close a nil > channel. > > W/O the code it's all I can

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Luc Prefontaine
You are trying to close a nil channel. W/O the code it's all I can say :) Did you check to make sure you are not trying to handle nil as a channel ? Luc P. > Hi, > > I'm getting the following error over and over again in my code, I've tried > adding in some print statement and suddenly the