Fork me on GitHub
#babashka
<
2021-08-07
>
royalaid15:08:20

Hey @borkdude, trying out the new version of bb on Windows via scoop and I can't seem to get bb print-deps to work

royalaid15:08:48

PS > bb print-deps
Exception in thread "main" java.lang.IllegalArgumentException: Cannot open <nil> as a Reader.
        at $fn__11546.invokeStatic(io.clj:288)
        at $fn__11546.invoke(io.clj:288)
        at $fn__11448$G__11424__11455.invoke(io.clj:69)
        at $reader.invokeStatic(io.clj:102)
        at $reader.doInvoke(io.clj:86)
        at clojure.lang.RestFn.invoke(RestFn.java:410)
        at clojure.lang.AFn.applyToHelper(AFn.java:154)
        at clojure.lang.RestFn.applyTo(RestFn.java:132)
        at clojure.core$apply.invokeStatic(core.clj:669)
        at clojure.core$slurp.invokeStatic(core.clj:6967)
        at clojure.core$slurp.doInvoke(core.clj:6967)
        at clojure.lang.RestFn.invoke(RestFn.java:410)
        at babashka.impl.print_deps$print_deps.invokeStatic(print_deps.clj:12)
        at babashka.main$exec.invokeStatic(main.clj:787)
        at babashka.main$main.invokeStatic(main.clj:866)
        at babashka.main$main.doInvoke(main.clj:853)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply.invokeStatic(core.clj:667)
        at babashka.main$_main.invokeStatic(main.clj:900)
        at babashka.main$_main.doInvoke(main.clj:892)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at babashka.main.main(Unknown Source)

royalaid15:08:10

I tried adding a bb.edn and didn't have any luck there either

borkdude15:08:46

@royalaid yes, sorry, forgot to add the deps.edn for Windows into the binary

borkdude15:08:57

if you go to appveyor and download the newest master build from there, it should work

royalaid16:08:42

Just tested and it works

royalaid16:08:47

for those googling in the future I grabbed this build https://ci.appveyor.com/project/borkdude/babashka/builds/40288941/artifacts and then just pasted it over the bb version @ C:\Users\<REPLACE_ME>\scoop\apps\babashka\0.5.1

Michaël Salihi20:08:15

I just discovered htmx https://htmx.org/ from a clojureverse post. Since I play a bit with it and I redone the classic SPA todo app with Babashka. An SPA without writing one line of JS and less than 10kb gzipped directly from Babashka! Here the repo for who is interested: https://github.com/prestancedesign/babashka-htmx-todoapp

👍 6
👏 9
5
borkdude20:08:48

Very interesting!

👍 2