After upgrading to 1.6.0, every call to future (repl and swank) throws a RejectedExecutionException on my system (Ubuntu 64 bit) - this happens with all clojure versions I tried (1.2.0, 1.2.1, 1.3.0-beta1).
This should be fixed in git; if not please reopen. It will be released in the next day or so. (repl is fixed in leiningen git, swank is fixed in swank-clojure git).
I'm using lein and swank-clojure from git; it doesn't seem to be fixed with regards to `lein swank'. bstruber confirmed the same on IRC.
I just tried it on a fresh project and confirmed it works for me. Are you sure you don't have an old copy of swank-clojure interfering somewhere? Either in project.clj or in ~/.lein/plugins?
Yes, I'm pretty sure everything was clean. I also tried manually copying a fresh swank build to .lein/plugins, and both 1.6.1 and 1.6.1-SNAPSHOT still fail on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM
Err... there are no 1.4.1 or 1.4.1-SNAPSHOT versions. The version with the fix is 1.4.0-SNAPSHOT; is that what you meant?
Sorry for the typo :)
OK, well if you can think of anything else I could try to attempt to repro I can try again.
Did you test it with clojure-1.3, technomancy? I'm still seeing this.
I'll try Clojure 1.3. It seems that this is pretty widespread.
I think this is a swank-clojure 1.3 problem (I had it).
Can someone who still has the problem confirm they don't have any swank-clojure < 1.4 in ~/.lein/plugins or lib/ or lib/dev?
There's no old swank-clojure in ~/.lein/plugins or lib/ or lib/dev here.
I think my deploy of swank-clojure 1.4.0-SNAPSHOT with the fix may have been interrupted; folks who were having trouble with the version previously on clojars had it work fine with 1.3.2 (which I just released with the fix). So I redeployed 1.4.0-SNAPSHOT to Clojars. Please let me know if you can repro with that.
Odd. It works if I install using lein; I'm testing in a fresh project created with `lein new':
$ lein plugin install swank-clojure 1.4.0-SNAPSHOT
$ lein swank
..and futures work now. However, if I use the swank-clojure repo I've checked out from git:
$ git pull
$ lein jar
$ rm ~/.lein/plugins/swank-clojure-1.4.0-SNAPSHOT.jar
$ ln -s /home/lnostdal/clojure/src/swank-clojure/swank-clojure-1.4.0-SNAPSHOT.jar /home/lnostdal/.lein/plugins/
$ lein swank
..it fails again:
Task java.util.concurrent.FutureTask@5062e9b rejected from java.util.concurrent.ThreadPoolExecutor@53f546b[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
[Thrown class java.util.concurrent.RejectedExecutionException]
Yes, the master branch doesn't seem to include the fix yet - but clojars
1.3.2 and 1.4.0-SNAPSHOT now work for me, too.
Herp derp--just pushed master in git.