This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-16
Channels
- # announcements (33)
- # asami (37)
- # autochrome-github (1)
- # aws (5)
- # babashka (26)
- # babashka-sci-dev (18)
- # beginners (63)
- # biff (1)
- # calva (66)
- # cider (15)
- # clj-kondo (24)
- # cljs-dev (2)
- # cljsrn (14)
- # clojure (62)
- # clojure-doc (1)
- # clojure-europe (15)
- # clojure-nl (11)
- # clojure-spec (12)
- # clojure-uk (4)
- # clojurescript (45)
- # community-development (2)
- # cursive (34)
- # datahike (7)
- # datomic (7)
- # events (1)
- # figwheel-main (5)
- # fulcro (19)
- # gratitude (7)
- # holy-lambda (85)
- # hyperfiddle (4)
- # jobs (7)
- # jobs-discuss (25)
- # kaocha (4)
- # lsp (11)
- # off-topic (1)
- # polylith (20)
- # portal (14)
- # practicalli (6)
- # proletarian (5)
- # rdf (52)
- # re-frame (13)
- # reagent (48)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (7)
- # tools-deps (17)
Doing the pod work on spire and there's an interesting little difference that I'm not sure of how best to tackle. When the script is run under sci, inside spire, I naughtily deref sci.impl.vars/current-file
to get a string representation of the present file being processed by sci.
On the pod side (that is the clojure code I send to the pod with the describe step to be evaluated by bb) I rewrite this function to use *file*
the difference is sci.impl.vars/current-file
gives me a relative path. And *file*
gives me a full path (like clojure does). Is there a sneaky way to get a relative path of the currently executing bb file?
You naughty boy! :). I think a less naughty way of doing this would be to use sci.core/file
if the behavior is different than JVM Clojure, then I consider that a bug. please report using a repro it so we can fix it
@retrogradeorbit but thinking more about it, I don't think SCI binds the value of file itself, this is always done by the environment using SCI, so you should probably take care of this yourself?
ah thats interesting. That would explain why its relative. I would be binding to that. It's been a while I looked in these guts...