This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-10
Channels
- # ai (2)
- # beginners (3)
- # boot (113)
- # bristol-clojurians (2)
- # cider (77)
- # clara (43)
- # cljs-dev (48)
- # cljsrn (9)
- # clojure (319)
- # clojure-austin (2)
- # clojure-czech (4)
- # clojure-denmark (4)
- # clojure-france (4)
- # clojure-italy (4)
- # clojure-russia (2)
- # clojure-serbia (10)
- # clojure-spec (79)
- # clojure-uk (64)
- # clojurescript (109)
- # clr (3)
- # conf-proposals (21)
- # core-async (19)
- # cursive (26)
- # datascript (11)
- # datomic (19)
- # devcards (1)
- # emacs (25)
- # figwheel (9)
- # hoplon (31)
- # jobs (7)
- # jobs-discuss (14)
- # leiningen (10)
- # lumo (11)
- # off-topic (37)
- # om (40)
- # onyx (4)
- # perun (8)
- # planck (3)
- # rdf (4)
- # re-frame (40)
- # ring (11)
- # ring-swagger (2)
- # rum (21)
- # spacemacs (2)
- # specter (50)
- # untangled (93)
- # yada (13)
Hi, I get an exception when trying to run clojure.core.async/pub
in a repl. Wondering if anyone else has seen this:
user> (clojure-version)
"1.9.0-alpha14"
user> (require '[clojure.core.async :as a])
nil
user> (a/pub (a/chan) :my-topic?)
IllegalArgumentException No implementation of method: :exec of protocol: #'clojure.core.async.impl.protocols/Executor found for class: clojure.core.async.impl.exec.threadpool$thread_pool_executor$reify__3338 clojure.core/-cache-protocol-fn (core_deftype.clj:583)
or if I’m doing something wrong - if someone can point me in the right direction
my guess is you have the output of aot compilation somewhere on the classpath, which is being loaded in some way as to break things
In this case it’s an n-repl launched from within the app
let me try simply lein repl
@hiredman - using lein repl
works. Thanks. Hadn’t occurred to me that it was because how I was creating the repl
Only in the uberjar
profile, but in this case the app is run via lein run -m
and then the app kicks off an nrepl when it starts up.
so.. I don’t think there is any aot in this case
but if you want still want to give me the “stop aot compiling” rant, I’ll be happy to hear it 🙂
(actually it’s lein trampoline run -m …
— not sure if that makes a difference.)
the question is if there are classfiles sitting on disk in target/ left there by uberjar
yeah, don't aot compile, it is a source of annoying issues that end to manifest far from when/where they are casued
the most common reason people aot compile is because they don't know how else to start their app
thanks @hiredman — If I figure out the reason behind the exceptions more specifically, i’ll let you know