Fork me on GitHub

Made documentation collapsible now with quickdoc per namespace and var:


how does it work in bb to load java code? 1) all the classes need to be defined upfront? 2) let's say I take a random clj lib, what are the hurdles until I can run it with bb? 3) In particular this lib would help me


bb doesnt load java code as it doesnt have the JVM anymore post native image compilation. to be able to support arbritary java code/bytecodes you need to compile bb with those classes.

👍 1

Indeed. For a library such as the above, you may be better off using an http client directly or use a Node.js lib with #nbb - or use Clojure on the JVM of course

✔️ 1
Jeffrey Bay13:05:02

I'm having a problem with clojure.test and babashka (i'm using babashka, but it might not be relevant? I'm running my tests and the trace when throwing an exception doesn't have my code in it.

(load-file (str file))
        (let [filename (babashka.fs/file-name (babashka.fs/strip-ext file))
              namespace-name (clojure.string/replace filename "_" "-")
              namespace (find-ns (symbol namespace-name))]
          (clojure.test/run-tests namespace))))))
I'm running the tests through this load-file and then clojure.test/run-tests call - is that why? is there a workaround for running the tests dynamically and still getting a useful stack trace? the trace I am getting is all sci.impl, babashka.impl.clojure, clojure.lang


@U03A0EGF82E Could you post an issue? Needs a deeper look

Jeffrey Bay14:05:30

done - i thinned it down to a reasonably small reproducing test case, as well. hope it helps.


Babashka 0.8.2 • Convey *print-length* to pprint and allow set!babashka.nrepl: support pprint length • SCI: support invoking field, without dash • Add compatibility with clojure numeric tower • Update deps.clj to tools jar • Compatibility with fipp and puget • Fix don't print error to stdout in prepl • Update process with :pre-start-fn option • Update fs with cwd and Windows glob improvements • Expose edamame, fixes and (#1259) • Support BABASBHKA_PODS_DIR environment variable

catjam 3
👍 2