This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
hi, does anyone know the cljs equivalent to "fze0200002000{:14X}.dat".format(some_number)
? it basically prints out some_number
as a 14 digit hex
seems like clojure.core/format
isn't in cljs, and I can't find the syntax for goog.string/format
has anyone tried this? https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-with-Emacs-Inferior-Clojure-Interaction-Mode
@roberto I don't do it that way, but I think that script/repl.clj would go in the project directory
@locks I don't think goog.string/format supports hex: https://github.com/google/closure-library/blob/master/closure/goog/string/stringformat.js
Having some trouble with Boot and code reload. I'm using re-frame with reagent and Boot's reloader doesn't seem to be reloading my handlers namespace. Initial load works, then when I change some code in my main namespace that dispatches an event, re-frame complains that there are no handlers registered for that event.
Reload websocket connected.
repl.cljs:63Opened Websocket REPL connection
reload.cljs:57 Reload
utils.cljs:18 re-frame: no event handler registered for: ":init!". Ignoring.(anonymous function) @ function) @ app.cljs:128
figwheel not compatible with boot
boot has a reloader built in
@escherize: DM'd you source.
Hm, looks like I had to add my handlers namespace to app.cljs.edn under resources.
Hm, rather than edit the app.cljs.edn, why not add your handlers namespace to the :require under your .app namespace?
What is app.cljs.edn's require for?
@sooheon, it was already there. But it did not seem to be reloaded until I added it so app.cljs.edn too.
How do I get figwheel to compile clojurescript macros defined in .clj files?
nm figured it out
:cljs/quit %load macros% (cljs-repl)
@locks: take a look at https://clojuredocs.org/clojure.pprint/cl-format