This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-29
Channels
- # aws (1)
- # aws-lambda (2)
- # bangalore-clj (3)
- # beginners (26)
- # boot (25)
- # braveandtrue (1)
- # cider (5)
- # cljsrn (7)
- # clojure (144)
- # clojure-android (2)
- # clojure-czech (1)
- # clojure-greece (3)
- # clojure-italy (17)
- # clojure-poland (5)
- # clojure-russia (25)
- # clojure-spec (9)
- # clojure-uk (100)
- # clojurescript (85)
- # core-async (42)
- # cursive (11)
- # datascript (2)
- # datomic (25)
- # duct (3)
- # emacs (5)
- # figwheel (2)
- # fulcro (49)
- # graphql (16)
- # hoplon (8)
- # klipse (10)
- # leiningen (10)
- # lumo (9)
- # off-topic (12)
- # om (14)
- # onyx (25)
- # planck (34)
- # portkey (6)
- # re-frame (43)
- # reagent (4)
- # remote-jobs (2)
- # ring (36)
- # ring-swagger (1)
- # rum (1)
- # shadow-cljs (187)
- # specter (25)
- # sql (5)
- # unrepl (75)
@seancorfield i can relate to the weirdness around the stdlib -- it took me a while of tinkering with the compiler options to get it working. i ended up with this:
(into-array String (->> ["-cp" (System/getProperty "fake.class.path")
"-d" ~out-path
"-no-stdlib"
"-nowarn"
"-Xskip-runtime-version-check"
~kotlin-files-paths]))
i ended up going with -no-stdlib
, which ends up being OK because the pod it's running in already has the kotlin dependencies on its classpath
it seems to work pretty well -- i haven't had any issues with using the kotlin standard library, anyway
i think what i'll do for now is take stock of what your library has that mine doesn't, and track those as github issues that i (or anyone feeling industrious!) can hack on when i have time
it would be cool to merge the work we've both been doing into a single, badass boot kotlin task
@dave there's a fake.class.path in get-env
btw. If you're in a pod, it might be better.
Depending on if you deferred that code or not, you could end up with a value you didn't expect.
oh, interesting. i saw some code in sean's boot-kotlinc where he has a loop, waiting for the classpath to change after merging the dependencies. my code doesn't have anything like that, so it probably is susceptible to a race condition
The fake class path -- both in the environment and as a system property -- are set asynchronously in a thread. So whenever you modify dependencies, there is a potential delay before the fake class path updates. Took me a while to debug why kotlin.test
sometimes didn't appear on the fake class path!
dave thanks! yea the hardware jiggler discovery is what started me on the path 😃
(software jiggle.boot: https://gist.github.com/alandipert/ebf65762a3f62076ac7b35569567bb37)
I once knew a guy who found a game site which paid out when you won. One game was a "find words in this jumble", so he wrote a program which took screenshots, did image recognition, and then did a dictionary search on it for that. Then clicked on the tiles to win. This code reminded me of that for some reason.
Bonjour, I’ve got a boot task dev
including something like this: (sift :add-jar {'foo/bar #"somefiles"})
My :dependencies
key contains [foo/bar "0.0.1-SNAPSHOT"]
that represents a local dependency installed from another project bar
with the task (install)
Issue:
boot dev
works fine in this setup but if I add a :checkouts
for foo/bar
(as per https://github.com/boot-clj/boot/wiki/Checkout-Dependencies) then the boot dev
fails:
java.lang.IllegalArgumentException: Provided artifact is missing a version: [nil]
clojure.lang.ExceptionInfo: Provided artifact is missing a version: [nil]
What could be the reason for that?The fake class path -- both in the environment and as a system property -- are set asynchronously in a thread. So whenever you modify dependencies, there is a potential delay before the fake class path updates. Took me a while to debug why kotlin.test
sometimes didn't appear on the fake class path!
dominicm haha, a friend and i did something like that in VB on AOL. we won prizes but they never sent to us :-(