This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-18
Channels
- # aleph (12)
- # beginners (31)
- # boot (67)
- # cider (17)
- # cljs-dev (14)
- # clojure (111)
- # clojure-dev (1)
- # clojure-france (4)
- # clojure-gamedev (1)
- # clojure-italy (49)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (18)
- # clojure-spec (15)
- # clojure-uk (68)
- # clojurescript (33)
- # core-typed (1)
- # datomic (15)
- # emacs (3)
- # graphql (4)
- # hoplon (36)
- # leiningen (3)
- # lumo (44)
- # mount (2)
- # off-topic (46)
- # om (21)
- # onyx (47)
- # parinfer (22)
- # pedestal (21)
- # protorepl (4)
- # quil (4)
- # re-frame (15)
- # reagent (4)
- # ring-swagger (9)
- # rum (27)
- # spacemacs (11)
- # vim (7)
- # yada (8)
actually, I just got "in emacs, run a command, have output [hiccup] displayed to browser in websocket" working
it would be rather rude of me to not; it's spread over a few files, let me see how I can best share it
I can't copy/paste since it ties into an 'object system' our code has, but the server side looks like:
(def *ws-clients (atom #{}))
(defn blast! [data]
#?(:clj (doseq [c @*ws-clients]
(when (not (org.httpkit.server/send! c (str data)))
(reset! *ws-clients disj c)))
))
then inside a emacs + clojure repl, to display something, you do (blast! [:h1 "hello world"]) C-x C-e
I'm using Clojure with Java interop. The following line excutes as expeccted (.get x gurobi.GRB$DoubleAttr/X)
but cider doesn't autocomplete anything. I wanted typing gurobi.GRB$Dou...
to autocomplete to gurobi.GRB$DoubleAttr
not sure why but cider master seems to keep dying trying to parse spec errors when there’s large gen’d data. Oddly the spec errors are thrown on another thread (web server)… perhaps they’re being parsed from stdout?!
whatever it is it’s a little annoying as it locks emacs up, I’m guessing trying to parse/font-lock the data… Is this a known issue, and if its intended is there a way to disable this behaviour?