@richiardiandrea I was looking for an easy way to be able to select a buffer or an expression, evaluate it and have it run in another emacs window.
Can Schema be used in Lumo? It produces a whole bunch of warnings:
ᐅ lumo --dependencies=prismatic/schema:1.1.6
Lumo 1.6.0
ClojureScript 1.9.671
Node.js v8.1.3
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Exit: Control+D or :cljs/quit or exit
ljs.user=> (require 'schema.core)
⬆
WARNING: Use of undeclared Var schema.utils$macros/class at line 25 schema/utils.clj
⬆
WARNING: Use of undeclared Var schema.utils$macros/class at line 32 schema/utils.clj
⬆
WARNING: Use of undeclared Var schema.utils$macros/format at line 36 schema/utils.clj
⬆
...
And what is the current recommended way to provide Maven deps to Lumo scripts?@metametadata never tried schema with lumo
lumo -D prismatic/schema:1.1.6 myscript.cljs
?
I see
I hoped maybe there's already an easier way to specify deps (e.g. smt. akin to packages.json
)
there’s no story for downloading maven deps if that’s what you’re asking
right
well, I looked at Calvin and cljs/tool
you can totally have a build.boot
file
with your dependencies
and do boot show -c > cp.txt
right, or lein cp
then lumo -c $(cat cp.txt) ...
yeah
okay. And do you have any suspicions about why Schema would not work with Lumo?..
hm, I guess I don't quite understand how the compilation is different in Lumo vs. "traditional" lein-cljsbuild
-based one
uh
the problem is macros
in JVM ClojureScript macros are expanded in Clojure
in Lumo there’s no Java
macros are expanded in ClojureScript
@metametadata so as soon as you use some java library, you’re done
haha, alright, now I get it
so macros should be written in "self-hosted" style?
okay I'll google that. And have you tried core.spec
with Lumo?
I've tried it. Good news is that at least it doesn't barf on requiring the ns:
cljs.user=> (require '[clojure.spec.alpha :as s])
nil
yeah, spec should work great
we put a lot of effort making spec self-host compatible
that's awesome, then I'll probably use it instead of Schema. Thank you!
cool