This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-07
Channels
- # 100-days-of-code (13)
- # beginners (12)
- # business (6)
- # cider (6)
- # cljdoc (9)
- # cljs-dev (1)
- # cljsrn (4)
- # clojars (4)
- # clojure (31)
- # clojure-dev (12)
- # clojure-uk (11)
- # clojurescript (16)
- # cursive (1)
- # datascript (4)
- # datomic (10)
- # editors (1)
- # figwheel-main (3)
- # graphql (10)
- # lein-figwheel (29)
- # off-topic (1)
- # pedestal (1)
- # re-frame (31)
- # reitit (3)
- # shadow-cljs (27)
- # slack-help (5)
- # spacemacs (1)
- # yada (5)
@bhauman The :ring-handler option works great! Just one (minor) issue for me: for some reason when I try to compile server-side stuff (.clj), the cljs compiler gets triggered (and complains), even though I have put only [src/cljc, src/cljs] inside cljs build-paths. The server-side clj compiler still works and the changes get applied, but I wonder why cljs gets triggered? Thank you for any comment.. (ns ... (:require ... [org.httpkit.client :as http])) .... <COMPILE ERROR> 2. Unhandled clojure.lang.ExceptionInfo failed compiling file:/Users/me/my-app/src/clj/my_app/handler.clj … core.clj: 4739 clojure.core/ex-info core.clj: 4739 clojure.core/ex-info compiler.cljc: 1562 … closure.clj: 573 cljs.closure/compile-file closure.clj: 564 cljs.closure/compile-file … repl.cljc: 586 cljs.repl$load_file$fn__6378/invoke piggieback.clj: 170 cider.piggieback/do-eval … piggieback.clj: 217 cider.piggieback/load-file … 1. Caused by clojure.lang.ExceptionInfo No such namespace: org.httpkit.client, could not locate org/httpkit/client.cljs, org/httpkit/client.cljc, or JavaScript source providing “org.httpkit.client” in file /Users/me/my-app/src/clj/my_app/handler.clj {:tag :cljs/analysis-error} … core.clj: 652 clojure.core/apply repl.cljc: 724 cljs.repl$wrap_self$g__6408/invoke piggieback.clj: 170 cider.piggieback/do-eval piggieback.clj: 155 cider.piggieback/do-eval … piggieback.clj: 224 cider.piggieback/wrap-cljs-repl/fn/fn/fn
@bhauman No, only when I try to compile the handler.clj - saving doesn’t do anything..
“No such namespace: org.httpkit.client, could not locate org/httpkit/client.cljs, org/httpkit/client.cljc, or JavaScript source providing “org.httpkit.client” in file /Users/me/my-app/src/clj/my_app/handler.clj”
@bhauman I should add that other external libs (ring, compojure) don’t cause that issue, only when I added http-kit, and used that clause…
@bhauman sorry, I take that back! The cljs repl complains whenever I try to compile <any> of my own src .clj files
It’s not a big deal - I can still do work, but it is an annoyance perhaps others have experienced? Thanks again for a great tool.
@bhauman When I compile a src .clj file from within the source itself within Cider (C-c C-k)
No, when I start clj and cljs repls at once, everything works fine since the file was compiled (albeith with cljs errors) during the last repl session