This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-29
Channels
- # announcements (8)
- # babashka (41)
- # beginners (45)
- # calva (23)
- # cider (17)
- # cljdoc (2)
- # cljfx (9)
- # clojure (40)
- # clojure-bay-area (13)
- # clojure-czech (4)
- # clojure-europe (46)
- # clojure-germany (6)
- # clojure-nl (13)
- # clojure-serbia (3)
- # clojure-uk (9)
- # clojurescript (76)
- # conjure (7)
- # cursive (5)
- # data-science (6)
- # deps-new (7)
- # fulcro (41)
- # graalvm (2)
- # jobs (6)
- # lsp (10)
- # malli (1)
- # mid-cities-meetup (1)
- # off-topic (77)
- # polylith (40)
- # re-frame (18)
- # releases (1)
- # remote-jobs (9)
- # reveal (1)
- # rewrite-clj (1)
- # shadow-cljs (11)
- # tools-deps (3)
- # tree-sitter (3)
- # vim (8)
- # xtdb (45)
@thheller have you made any progress with :target :esm
and watch
? is there anything I could help with in that direction?
watch works fine but I assume you mean hot-reload? that is runtime dependent and not implemented for deno
basically what is need is an equivalent to this https://github.com/thheller/shadow-cljs/blob/f7a360d52dfae654ff17d7a5335943beabaf163c/src/main/shadow/cljs/devtools/client/node.cljs
if you want to work on that you can do so by setting :target :custom :devools {:client-ns the.ns-you-work-on}}
in your build config
its not documented much but happy to answer questions. it is fairly low level code but pretty straightforward.
Having some troubles with using clojure.data.csv in a macro. Been following the approach in this guide: https://code.thheller.com/blog/shadow-cljs/2019/10/12/clojurescript-macros.html
I have a load.clj
:
(ns load
(:require [clojure.data.csv :as csv]
[ :as io]))
(defmacro timeline
[]
(with-open [reader (io/reader (io/resource "timeline.csv"))]
(doall (csv/read-csv reader :separator \;))))
and a load.cljs
:
(ns load
(:require-macros [load]))
but when I try to require and then use it from my user.cljs
, e.g.,
(ns user
(:require [load :as load]))
(def timeline-data
(load/timeline))
I get an error which seems to be related to the amount of lines in the csv file (433)However, if I wrap replace the use of the macro with (macroexpand '(load/timeline))
then it works. I’m sure I’m just doing some n00b macro error here.
be mindful of what that macro is returning. right now it is returning a sequence ala ([1 2 3] [3 4 5])