This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-09
Channels
- # announcements (7)
- # beginners (84)
- # calva (3)
- # cljs-dev (19)
- # cljsrn (1)
- # clojure (64)
- # clojure-dev (31)
- # clojure-italy (13)
- # clojure-nl (6)
- # clojure-spec (4)
- # clojure-uk (35)
- # clojurescript (4)
- # clojurex (86)
- # datomic (4)
- # fulcro (11)
- # graalvm (93)
- # joker (5)
- # nrepl (32)
- # off-topic (45)
- # pedestal (4)
- # reagent (3)
- # rewrite-clj (12)
- # sql (17)
- # tools-deps (4)
- # vim (28)
So I'm trying to create a joker.markup
namespace for generating XML/HTML markup using Hiccup syntax. My new markup.joke includes a require of joker.html and that's failing:
16:17:09 ~/workspaces/golang/src/github.com/candid82/joker > ./run.sh --version && go install
<joker.markup>:5:5: Exception: No namespace: joker.html
Stacktrace:
global <joker.markup>:1:1
core/require <joker.core>:3483:3
core/apply <joker.core>:527:4
core/apply__ <joker.core>:3400:9
core/apply <joker.core>:527:4
core/apply__ <joker.core>:3353:5
core/with-bindings* <joker.core>:1406:7
core/apply <joker.core>:525:4
core/apply__ <joker.core>:3380:9
core/apply <joker.core>:527:4
core/apply__ <joker.core>:2400:40
core/ex-info <joker.core>:190:35
panic: <file>:0:0: Eval error: <joker.markup>:5:5: Exception: No namespace: joker.html
Stacktrace:
global <joker.markup>:1:1
core/require <joker.core>:3483:3
core/apply <joker.core>:527:4
core/apply__ <joker.core>:3400:9
core/apply <joker.core>:527:4
core/apply__ <joker.core>:3353:5
core/with-bindings* <joker.core>:1406:7
core/apply <joker.core>:525:4
core/apply__ <joker.core>:3380:9
core/apply <joker.core>:527:4
core/apply__ <joker.core>:2400:40
core/ex-info <joker.core>:190:35
goroutine 1 [running]:
, 0xc00091b040)
/Users/hlship/workspaces/golang/src/github.com/candid82/joker/core/eval.go:440 +0x6a
main.main()
/Users/hlship/workspaces/golang/src/github.com/candid82/joker/core/gen_data/gen_data.go:96 +0x61d
exit status 2
core/object.go:1: running "go": exit status 1
Is there a way around this? My guess is that since std/html.joke
is a built-in namespace there's an issue with having a dependency to it during generate stage?html package is not imported in gen_data. You'd have to add _ "
here https://github.com/candid82/joker/blob/master/core/gen_data/gen_data.go#L10 to make it work
Hope this is helpful going forward: https://github.com/candid82/joker/pull/292