Closed dehubbed closed 9 years ago
The above only happens in nrepl (via Eclipse). Seems nrepl is somehow getting in the way. Strange. Someone had a similar problem: https://groups.google.com/forum/#!topic/quasar-pulsar-user/TkgWpuIiI80
However can't just blame it on nrepl, it all works with "future-call" instead of spawn-fiber.
Yes, I just tried with a lein run
(with a main method) and lein repl
and they work ok. Not an expert of nrepl w/ Eclipse, is the Quasar agent running ok? If everything seems regular, could you please try 0.6.3-SNAPSHOT as well?
sure give me 1 hr
0.6.3-SNAPSHOT is not on clojars, is it? should I clone the repo and build it?
ok I cloned & compiled, same issue. I or anyone can make do without the Eclipse nrepl for sure, however it is a bit worrying that there should be subtle interactions like that.
using clojure.tools.logging (via slf4j and log4j) and doing (debug "test") instead of (println "test") works. even though debug uses println somewhere down in its guts. ah well.
I just installed Eclipse Luna for Java + CCW and I'm trying hard to reproduce it but I'm not able to, maybe I'm doing something wrong.
I'm on JDK 1.8.0_25, Mac OS X Yosemite, I tried creating a Leiningen project with Quasar/Pulsar setup, then I right-clicked it and "Leiningen/Launch Headless REPL for the project", finally in the REPL I pasted your snippet but I get "nil" as a return value and "test" in stdout without any exceptions.
Should I do something else?
I'm on Ubuntu JDK 1.7. I don't have a Mac here but I can try JDK 1.8 later today.
Just tried JDK 8, same thing. No idea how to reproduce this any other way. I think you can close this issue. I could reopen it should I come across further clues.
Are the steps I'm following to reproduce it right? Are you doing the same things?
Yes, the step are right and you are doing the same thing, other than my OS being Ubuntu which should hardly matter. Counterclockwise version is 0.31.1?
Can I send you a tgz file somehow with my bare bones Eclipse project in it that you can run unzip and run?
There is an Eclipse launch configuration in that package, that's what I use to launch it.
Thanks, I'll have a look ASAP.
Yes, CCW is 0.31.1.STABLE001
.
Tried with your project and launch config (I adjusted just the path to Quasar's agent to use my home), connected to it with lein repl :connect
, copied and pasted your borked.clj
test content and still I get no exception.
Have you got a chance to try on some other machine / setup?
Will do.
Yes I tried a different machine and everything works completely fine. Up to me now to figure out what the crucial difference is! =8-O I'll keep you posted.
btw related to this? https://github.com/puniverse/pulsar/issues/29
I won't rule it out completely but I think it's unlikely as that issue was reproducible everywhere, every time and you're trying (or have tried already) with pulsar 0.6.3 which contains a fix for it.
I'll close it for now, if more info will be available about reproducing it we can always reopen it.
Just starting out with pulsar (0.6.2), maybe I'm doing something wrong, but
results in