This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-07
Channels
- # babashka (17)
- # beginners (33)
- # calva (9)
- # cider (2)
- # clj-kondo (17)
- # cljs-dev (2)
- # cljsrn (2)
- # clojars (3)
- # clojure (60)
- # clojure-australia (2)
- # clojure-europe (8)
- # clojure-gamedev (5)
- # clojurescript (27)
- # cursive (2)
- # emacs (9)
- # fulcro (8)
- # gratitude (5)
- # lsp (41)
- # malli (3)
- # meander (18)
- # pathom (5)
- # polylith (25)
- # re-frame (17)
- # reagent (1)
- # rewrite-clj (6)
- # shadow-cljs (11)
- # uncomplicate (5)
- # vim (6)
- # web-security (5)
When you execute babashka from a powershell prompt, can you send commands to powershell itself or only bash? I wasn't sure how to immediately do that.
When shelling in bb and Java you never implicitly invoke bash or powershell. You only invoke the program that you specify. If you want to invoke powershell you should write that explicitly.
I invoke Powershell from Babashka to invoke things installed by Scoop: (sh "powershell" "plantuml" "-tsvg" "foo.puml")
I don’t understand this error:
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: dir already refers to #'dir in namespace user
Phase: analysis
the code runs fine in the REPL and I can evaluate all the forms one by oneNeed more info, e.g. the contents of http://script.bb
and probably something that would be pointed out by clj-kondo if I had taken the time to set that up yet 😉
I know what the issue is, but this shouldn't be happening. When doing -e
then bb automatically refers clojure.repl [dir]
in the user
namespace so you can do (dir ...)
to see public vars of a namespace. But this shouldn't happen in a script.
Some exciting work going on over here: https://github.com/borkdude/tools-deps-native-experiment/pull/6
tools-deps-native
pod + some enhancements in bb (see tools-build
branch). Build a jar for a Clojure project in 200ms :).
Example script: https://clojurians.slack.com/archives/CLX41ASCS/p1636283927230600?thread_ts=1636166363.213700&cid=CLX41ASCS
$ rm -rf target
$ time bb
bb 0.09s user 0.06s system 69% cpu 0.217 total
$ jar -tf target/lib1-1.2.55.jar
META-INF/MANIFEST.MF
borkdude/
borkdude/tdn/
borkdude/tdn/pod.clj
borkdude/tdn/main.clj
borkdude/tdn/cli.clj
Writing a #clojure highlighter from scratch: https://blog.michielborkent.nl/writing-clojure-highlighter.html Using #babashka of course :)