This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-24
Channels
- # beginners (10)
- # boot (14)
- # cider (80)
- # clara (1)
- # cljs-dev (19)
- # cljsrn (7)
- # clojure (284)
- # clojure-france (4)
- # clojure-italy (57)
- # clojure-poland (8)
- # clojure-russia (10)
- # clojure-spec (65)
- # clojure-uk (155)
- # clojurescript (156)
- # code-reviews (6)
- # copenhagen-clojurians (16)
- # cursive (10)
- # datomic (10)
- # emacs (13)
- # euroclojure (1)
- # graphql (4)
- # jobs (2)
- # lein-figwheel (3)
- # luminus (4)
- # off-topic (2)
- # onyx (42)
- # parinfer (23)
- # pedestal (1)
- # protorepl (8)
- # re-frame (34)
- # reagent (17)
- # ring-swagger (5)
- # timbre (24)
- # vim (72)
- # yada (1)
@richiardiandrea would you consider pushing a new snapshot of boot-figreload?
Done!
Deploying boot-figreload-0.1.1-SNAPSHOT.jar...
Retrieving maven-metadata.xml from
Sending boot-figreload-0.1.1-20170725.111457-3.jar to (13k)
Sending boot-figreload-0.1.1-20170725.111457-3.pom to (2k)
Retrieving maven-metadata.xml from
Sending maven-metadata.xml to (1k)
Sending maven-metadata.xml to (1k)
Yes no problem, i am between flights so I need probably some little time but I will do it asap @kommen
@richiardiandrea thanks!
Hello everyone. Is it possible to run a clojure web server and to compile cljs in the same task ?
(deftask run
"Run the project."
[]
(comp (serve :dir "target" :port 3000 :handler 'rum-bug-class.server/handler :reload true)
(cljs :compiler-options {:main 'rum-bug-class.browser
:optimizations :none
:source-map true})
(target :dir #{"target"})
(wait)))
I keep having this error : "[...] Could not locate rum_bug_class/browser__init.class or rum_bug_class/browser.clj on classpath. [...]"
As if boot (or something) couldn't get my cljs namespace since boot is a clj file. No ?
@andrea.crotti - this worked for me. In an emacs buffer:
#!/usr/bin/env boot
(set-env! :dependencies '[[com.rpl/specter "1.0.2"]])
(require '[com.rpl.specter :as specter])
(defn -main [& args]
nil)
I had to M-x clojure-mode
in that buffer too.Then from a shell boot repl
, and then in emacs M-x cider-connect
with whatever port the boot repl started on. Finally, in the emacs buffer you can C-c C-k
to load the buffer into the repl, or equivalently (load-file "script-file")
In the repl you have boot commands and proving specter symbols are there too:
boot.user> (doc boot)
-------------------------
boot.core/boot
([& argv])
The REPL equivalent to the command line 'boot'. If all arguments are
strings then they are treated as if they were given on the command line.
Otherwise they are assumed to evaluate to task middleware.
nil
boot.user> (doc specter/collect)
-------------------------
com.rpl.specter/collect
Adds the result of running select with the given path on the
current value to the collected vals.
nil
boot.user>
ah I see great thanks @gonewest818
in the end I just created a project this time but I'll try that instead next time
Cool. I half heartedly tried to find a way to cider-jack-in for extra convenience but ran out of time.