Comments (20)
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.
from pulsar.
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?
from pulsar.
sure give me 1 hr
from pulsar.
0.6.3-SNAPSHOT is not on clojars, is it? should I clone the repo and build it?
from pulsar.
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.
from pulsar.
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.
from pulsar.
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?
from pulsar.
I'm on Ubuntu JDK 1.7. I don't have a Mac here but I can try JDK 1.8 later today.
from pulsar.
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.
from pulsar.
Are the steps I'm following to reproduce it right? Are you doing the same things?
from pulsar.
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?
from pulsar.
File here: https://mega.co.nz/#!us8gFLBB!1CQ7JOp8F1HEoyOVJI2dM4AsRMMSgRSjPtT9-zAfrU4
from pulsar.
There is an Eclipse launch configuration in that package, that's what I use to launch it.
from pulsar.
Thanks, I'll have a look ASAP.
from pulsar.
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?
from pulsar.
Will do.
from pulsar.
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.
from pulsar.
btw related to this? #29
from pulsar.
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.
from pulsar.
I'll close it for now, if more info will be available about reproducing it we can always reopen it.
from pulsar.
Related Issues (20)
- watch! fails when called from within a receive with an :else clause
- Selective receive breaks when spawning an actor on a redefined `defsfn` HOT 4
- (spawn-fiber #(rcv channel)) failing in the REPL
- `Deref clojure.core/promise` in fiber outputs stream of warnings HOT 3
- supervisor does not appear to handle gen-server crashing HOT 9
- Automatic instrumentation HOT 6
- Pulsar fibers vs. core.async `go` blocks HOT 2
- Watching actors from a gen-server HOT 2
- shutdown! doesn't take cause/reason as an argument.
- Passing a symbol bound in let to gen-server throws an exception.
- call-timed! doesn't return nil HOT 1
- fvvvrv v vfvf
- auto instrumentation throwing ClassFormatError HOT 1
- clustered ping/pong in example not working
- Blocking and bound mailboxes - not working as expected HOT 2
- register! creates an mbean, need to remove with quasar HOT 1
- Mechanism for detecting when sending to a closed channel
- Status of pulsar HOT 3
- Clojure 1.10
- Support virtualThreads?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulsar.