This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-29
Channels
- # babashka (64)
- # beginners (60)
- # calva (10)
- # circleci (3)
- # clj-kondo (62)
- # cljdoc (6)
- # clojars (2)
- # clojure (152)
- # clojure-europe (19)
- # clojure-nl (3)
- # clojure-uk (18)
- # clojurescript (50)
- # clojureverse-ops (12)
- # core-async (21)
- # cursive (6)
- # data-science (1)
- # datomic (17)
- # events (14)
- # fulcro (64)
- # graalvm (20)
- # graphql (5)
- # honeysql (14)
- # jackdaw (3)
- # jobs (1)
- # jobs-discuss (22)
- # kaocha (2)
- # lsp (9)
- # luminus (8)
- # malli (30)
- # meander (31)
- # other-languages (1)
- # polylith (8)
- # re-frame (15)
- # shadow-cljs (85)
- # specter (2)
- # sql (11)
- # tools-deps (56)
- # vim (39)
- # vscode (7)
- # xtdb (16)
not 100% sure this is the only thing that changed, but since upgrading to clojure tools-deps 1.10.3.933 I'm getting this error (consistently after several attempts & cleans) in my native-image project:
Fatal error:com.oracle.svm.core.util.VMError$HostedError: com.oracle.svm.core.util.VMError$HostedError: clojure.tools.reader.reader_types$indexing_push_back_reader.invokeStatic(Object, Object, Object): has no code address offset set.
I'll try downgrading back to the previous stable release of tools-deps and see if that makes any difference
nope, same error. hmm...
@cap10morgan this is a symptom of compiling one namespace several times
I've seen this in a lot of projects. E.g. with lein, when you compile with :aot true
you might see this, but when you change it to :aot [my.main]
it will disappear
yeah I found your old issue saying that so I changed my :aot true
(depstar) to :aot [my.main.ns]
but no change
try a manual (compile 'my.main.ns)
and be sure to clean your targets before compiling
oh, maybe found it! org.clojure/tools.reader 1.3.5 works, 1.3.6 breaks
fwiw, https://github.com/clj-commons/rewrite-clj/blob/448861c84f1bc631f7e0143d8c34de1485da1223/deps.edn#L4 and it seems to work with native-image
I'll see if I can make a minimal repro project or if the issue really still is in mine
in my experience this issue is hard to reproduce but in all cases I've had this, it had to do with the compilation
you can just compile manually and give graalvm a classpath with clojure + your classes dir
oh, actually, I am already not using depstar for my native-image target; just clj.native-image