This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-12
Channels
- # bangalore-clj (4)
- # beginners (77)
- # boot (71)
- # cider (10)
- # clara (1)
- # cljs-dev (52)
- # cljsjs (28)
- # cljsrn (1)
- # clojure (390)
- # clojure-dev (5)
- # clojure-india (1)
- # clojure-italy (5)
- # clojure-nl (24)
- # clojure-poland (4)
- # clojure-russia (123)
- # clojure-spec (71)
- # clojure-taiwan (2)
- # clojure-uk (8)
- # clojurescript (236)
- # core-matrix (6)
- # cursive (19)
- # datomic (16)
- # defnpodcast (2)
- # editors (1)
- # emacs (36)
- # garden (2)
- # hoplon (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (47)
- # luminus (4)
- # lumo (6)
- # off-topic (207)
- # om (1)
- # onyx (20)
- # pedestal (40)
- # perun (2)
- # re-frame (8)
- # reagent (48)
- # ring (2)
- # ring-swagger (2)
- # specter (13)
- # unrepl (89)
- # vim (6)
@qqq http://stackoverflow.com/questions/34926360/how-can-i-start-a-socket-repl-in-clojure-1-8-from-leiningen-or-boot/34932745
@richiardiandrea was unaware of socket-server
task, thanks!
that's not been merged iirc, but there is another way above to start it with boot
Is there a way to tell boot to reload (without restarting a jvm) whenever build.boot changes ?
@qqq @richiardiandrea https://github.com/boot-clj/boot/pull/549 (not sure if that’s in a release yet though)
Not yet merged yeah
can one of you here (1) merge it, (2) push an official release, and (3) push it to clojars in the next 15 mins? 🙂
How can
(defn poll [task]
(let [f (java.io.File. "build.boot")]
(loop [mtime (.lastModified f)]
(let [new-mtime (.lastModified f)]
(when (> new-mtime mtime)
(load-file "build.boot")
(boot (task)))
(Thread/sleep 1000)
(recur new-mtime)))))
work with watch ?if the (task) involves a (watch), won't the (boot (task)) never return ... this negating the whole auto reloader ?
Hi, how can i fix the CompilerException im getting from using the js tag in .cljc files. java.lang.RuntimeException: No reader function for tag js, compiling:
Ye but that didnt seem the be an issue when using leiningen
@miikka om.next adds a reader for #js
Except that it does not work for some reason in boot
I guess because Boot-cljs runs Cljs compiler in a pod and Boot doesn't correctly load data_readers for pods
Perhaps Boot-cljs should call clojure.core/load-data-readers when the pod is initialized
https://github.com/boot-clj/boot/blob/ac835cea8c18e926bb843e01579b86e3f30458d2/doc/boot.core.md#load-data-readers <- perhaps it's time to use this
@timovanderkamp Do you have example cljc code which causes this problem?
I assume this issue might be still relevant: https://github.com/boot-clj/boot/issues/47
Yes second
@miikka I think that issue was about repl session, that and was fixed
(dom/div #js {:class "list-items"} )
this fails, and (dom/div #?(:cljs #js {:class "list-items"} :clj {:class "list-items"}))
works fine
And what om dependency should I use?
This also requires loading the cljc namespace as macro namespace
[org.omcljs/om "1.0.0-alpha47" :exclusions [org.javassist/javassist]]
else Cljs compiler won't evaluate the namespace as Clj
Hmm or something... I still can't reproduce this
(dom/div #js {:class "list-items"} )
works in the clojure repl for me
Which boot version are you trying it on @juhoteperi
2.7.1
@timovanderkamp Which Boot and Boot-cljs versions do you have?
boot: 2.6.0
Try upgrading to 2.7.1
trying it out now
Nope, didnt work out
I wonder what difference I have in my test project
My Boot-cljs version is "1.7.228-2"
https://github.com/Deraen/saapas/compare/om-next-data-readers?expand=1 any ideas if I am missing something to reproduce this?
It works
@timovanderkamp Can you provide full stack trace for this error?
Your changes seem to match my project
`Error reloading: atlas-crm.shared.issue-panel clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No reader function for tag js, compiling:(atlas_crm/shared/issue_panel.cljc:69:44)Adding :require adzerk.boot-reload.init50021 to main.cljs.edn... Adding :require adzerk.boot-cljs-repl to main.cljs.edn... Compiling {less}... 14 changed files. Compiling ClojureScript... • public/js/main.js` This is all im getting when adding the js tag
Hmm where is that "Error reloading: " message coming from
I don't think boot-cljs such message
maybe it is danielsz/system
hi can someone help me figure out the right way to declare the :add-jar task options in my build.boot file? i get the following error:
option :add-jar must be of type {sym regex}
@raywillig you'd do like (sift :add-jar {org.clojure/clojure #".*"})
that will add the entries from the jar associated with the org.clojure./clojure
dependency to the fileset
the {k v}
notation indicates a map whose keys are of type k
and whose values are of type v