This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-01
Channels
- # atom-editor (11)
- # babashka (25)
- # beginners (142)
- # boot (9)
- # calva (3)
- # cider (19)
- # clara (15)
- # clj-kondo (6)
- # cljs-dev (20)
- # clojars (11)
- # clojure (164)
- # clojure-dev (9)
- # clojure-europe (6)
- # clojure-italy (17)
- # clojure-nl (3)
- # clojure-spec (19)
- # clojure-sweden (10)
- # clojure-uk (23)
- # clojurescript (34)
- # code-reviews (31)
- # conjure (20)
- # cursive (14)
- # datomic (54)
- # emacs (1)
- # fulcro (51)
- # graalvm (24)
- # graphql (6)
- # helix (3)
- # jobs (3)
- # kaocha (1)
- # malli (2)
- # meander (15)
- # off-topic (81)
- # pathom (2)
- # re-frame (43)
- # reagent (26)
- # reitit (1)
- # releases (1)
- # sci (12)
- # shadow-cljs (29)
- # sql (22)
- # timbre (3)
- # tools-deps (15)
has anyone had luck building pod-babashka-parcera?
script/compile
ends with the following for me:
Compiling pod.babashka.parcera
Syntax error macroexpanding at (java.clj:1:1).
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
parcera.antlr.ClojureParser
Full report at:
/tmp/clojure-4547899370418611432.edn
Compilation failed: Subprocess failed
Uberjar aborting because jar failed: Compilation failed: Subprocess failed
Error encountered performing task 'do' with profile(s): 'base,system,user,provided,dev,uberjar'
Uberjar aborting because jar failed: Compilation failed: Subprocess failed
i've tried building parcera itself and notice (via its .travis.yml ) that there's some initial generation of java code that's necessary to get parcera.antlr.ClojureParser (and friends?) to exist
@sogaiu I do see .class files in my dep here:
$ ls_jar.clj carocad/parcera 0.11.1
META-INF/MANIFEST.MF
....
parcera/antlr/ClojureParser$DerefContext.class
parcera/antlr/ClojureParser$FnContext.class
parcera/antlr/ClojureParser$Var_quoteContext.class
parcera/antlr/ClojureParser$BacktickContext.class
parcera/antlr/ClojureParser$MetadataContext.class
parcera/antlr/ClojureParser$Conditional_splicingContext.class
parcera/antlr/ClojureParser$KeywordContext.class
i kept a copy of the old stuff to compare ok, looks like the .class files are there now -- in the newly fetched .jar. so odd...
ah, ok i think i see what happened. i didn't know that one had to generate the java source from the .g4 file with antlr initially. i think i may have done an install to the local repository without first having created the class files. when i fetched a different jar for parcera from clojars, i fetched an older version, and that one doesn't have .class files either, but iirc parcera didn't always use antlr.
parcera pod is very interesting to make some scripts to analyze or rewrite Clojure code. rewrite-clj is cool, but the pure EDN approach of parcera makes it well suited for pod
i'm evaluating it for something involving rewriting where i want to preserve whitespace and comments 🙂
I like the simplicity of parcera, I’ll refer to it as an interesting alternative in rewrite-cljc docs.
I just pushed a docker image for babashka-test-action. So you can test your babashka codes in your local machine easily ☺️ https://github.com/liquidz/babashka-test-action#local-usage