This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-17
Channels
- # announcements (24)
- # babashka (22)
- # beginners (49)
- # cider (16)
- # clj-kondo (8)
- # cljsrn (4)
- # clojure (87)
- # clojure-australia (7)
- # clojure-europe (44)
- # clojure-nl (4)
- # clojure-sweden (7)
- # clojure-uk (24)
- # clojurescript (5)
- # core-async (7)
- # cryogen (8)
- # cursive (22)
- # data-oriented-programming (2)
- # datomic (1)
- # emacs (6)
- # events (4)
- # fulcro (11)
- # google-cloud (1)
- # introduce-yourself (1)
- # java (8)
- # jobs (3)
- # lsp (10)
- # observability (1)
- # off-topic (12)
- # polylith (12)
- # re-frame (6)
- # reitit (36)
- # remote-jobs (1)
- # ring (4)
- # ring-swagger (1)
- # rum (4)
- # schema (1)
- # shadow-cljs (18)
- # sql (56)
- # tools-deps (33)
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Could not resolve symbol: seq_1085
Phase: analysis
I'm trying to port an internal tool to babashka; but ran into this error. There's quite some code and no stacktrace. Where should I begin my search 😅.
I'm on babashka 0.7.3 🙂Also, I'm trying to use https://www.threeten.org/threeten-extra/ but a simple add-deps + import doesn't work :thinking_face:. Not sure where to start (probably it's incompatible with graal?)
Sorry for that error message, I don't know what happens there without having a repo I can reproduce with
Ah yes: > ThreeTen-Extra provides additional date-time classes that complement those in https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html.
yeah doesn't work
is quite vague I agree 😬. It can't import / find the java classes.
> in bb `java.time` is available
The thing with threeten is that it provides the 'missing' java.time classes (such as YearWeek) for which there's no real replacement 😅.
Is there a workaround, or is it just 'though luck' 😛 ?
#nbb is a different story, there we can use any library from npm, but in bb it's a closed world, no JVM available to run bytecode
> if this is a shared clj/bb library then you can use reader conditionals for bb Oeh! Actually it is a cljc project, so this is a very good option
Perhaps far-reaching, but can babashka interface with python libs/code? Some of the python libraries are too large to rewrite in clj.
@dennisa kind of :) you can build yourself a python pod to expose whatever to babashka: https://github.com/babashka/pods/blob/master/examples/pod-lispyclouds-sqlite/pod-lispyclouds-sqlite.py Another option is to use GraalVM CE to interface with Python from Clojure using the Polyglot API, or use libpython-clj. The latter options will use a full JVM, without the good startup of babashka.
hmm, currently not exposed. could do that.
$ bb -e '(assert nil "foo")'
----- Error --------------------------------------------------------------------
Type: java.lang.AssertionError
Message: Assert failed: foo
you could maybe file a bug about this and meanwhile work around this by using:
(intern 'clojure.core (with-meta '*assert* {:dynamic true}))