This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I am using the saapas template, and just cloning it and adding [org.onyxplatform/onyx "0.7.11-SNAPSHOT"]
to the dependencies and I get and exception. Could someone confirm that they get the same result ?
@nha: what’s the exception?
clojure.lang.Compiler$CompilerException: java.lang.ExceptionInInitializerError, compiling:(cljs/repl.cljc:1:1)
java.lang.ExceptionInInitializerError:
java.io.FileNotFoundException: Could not locate clojure/tools/reader/impl/ExceptionInfo__init.class or clojure/tools/reader/impl/ExceptionInfo.clj on classpath.
...
Note : I renamed my profiles.clj and profile.boot just in case it did something. I don't think it is specific to boot though, but I can't pinpoint the problem.
Do you get the same exception ? (I just do git clone [email protected]:Deraen/saapas.git , add onyx dependency, boot dev to get that error)
Looks like transitive dependency to old clojure reader
onyx seems to depend on org.clojure/clojure and core.async, make sure that you have clojure 1.7 dependency on your own project so that bad transtive dep doesn't get used
works fine for me with non snapshot dep
hmm same for me using : [org.onyxplatform/onyx "0.7.10"]
. So there is something wrong with my setup...
This warning seem related : "Warning: version conflict detected: org.clojure/tools.reader version changes from 0.9.2 to 0.10.0-alpha3"
@nha: I just cloned master, added the dependency (non-snapshot) to build.boot and it just works fine. No warnings or anything.
@nha: what does boot -V
give you when ran in the saapas dir?
Hmh, doesn't work for me
Hm, exactly the same for me.
@juhoteperi: you getting an error?
Looks like onyx is somehow breaking cljs compile
yeah it looks like it is related to cljs, but I am not really aware of the mechanics of cljs compile to pinpoint what is causing trouble.
It's probably related to macro reloading
Or not...
could it be a dependency of onyx that uses an old version of clojure ? (I am asking because searching for "tools" in onyx doesn't seem to yield any suspect).
You can dependency tree with boot show -d
and no, doesn't seem to be caused by any dependencies
doing (require 'cljs.analyzer)
in repl will throw the same error
Very strange
Well yes it has been bugging me for quite some time, but I always assumed it was something with my setup. I'm happy to learn that I'm not crazy 😛
Eh, Onyx jar is AOT compiled
at it includes all clojure core and tools AOT compiled
So it includes old tools.reader AOT compiled
so even though no transitive dependency is added, old version is used as it's included in onyx jar
by opening the onyx jar file
(it's a zip file)
and checking their project.clj
Oh so aot'ing a namespace makes the whole clojure deps compiled too, right ? (I wasn't doing a lot of java before plunging into clojure sorry if it is obvious)
So any program used as a library should not use aot
, right ? is it different in their case as it seems to be for Java interrop ?
https://github.com/onyx-platform/onyx/issues/339 I opened issue there
Hmmh, I want to have Lein credentials.clj.gpg style settings for repositories
I guess I can make a task for that
@juhoteperi: can you have a look at danielsz's PR and tell me what you think?
I did quick test about using gpg
to read ceredentials for write repos: https://github.com/Deraen/boot-contrib-gpg
Should be trivial to use it for signing also, I got it mostly working already
Hmh, does boot have separate repositories and deploy-repositories?