This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-16
Channels
- # announcements (33)
- # atom-editor (1)
- # aws (21)
- # babashka (174)
- # babashka-sci-dev (2)
- # beginners (59)
- # calva (4)
- # chlorine-clover (9)
- # clj-kondo (51)
- # clojars (7)
- # clojure (86)
- # clojure-czech (4)
- # clojure-europe (21)
- # clojure-france (6)
- # clojure-nl (1)
- # clojure-uk (2)
- # conjure (7)
- # core-async (3)
- # core-logic (3)
- # cursive (10)
- # data-science (8)
- # datalevin (14)
- # datomic (12)
- # events (1)
- # fulcro (5)
- # graalvm (10)
- # gratitude (3)
- # honeysql (3)
- # hyperfiddle (3)
- # introduce-yourself (4)
- # joyride (3)
- # leiningen (3)
- # malli (13)
- # minecraft (15)
- # music (1)
- # off-topic (40)
- # pathom (16)
- # polylith (28)
- # portal (25)
- # rdf (15)
- # remote-jobs (3)
- # shadow-cljs (23)
- # specter (1)
- # sql (5)
- # tools-deps (25)
- # xtdb (31)
Can't make Dart->Clojure translator work with graalvm, need help š. Seems like I have problems with reflection:
ā°$ ./dartclj "Text('1')"
Exception in thread "main" java.lang.IllegalArgumentException: No matching method substring
found taking 2 args for class java.lang.String
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:127)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:102)
Here is a https://github.com/Liverm0r/DartClojure/blob/main/compile.sh file. I pass a flag -H:ReflectionConfigurationFiles
with json, where I ask to remain allMethods, constructors, etc. But it doesn't work.I have also found this @U04V15CAJ https://github.com/borkdude/clj-reflector-graal-java11-fix and tryied to add
{
"name": "java.lang.reflect.AccessibleObject",
"methods" : [{"name":"canAccess"}]
},
ā didn't workPut #?(:clj (set! *warn-on-reflection* true))
in the top of this file:
https://github.com/Liverm0r/DartClojure/blob/7e1a72e2e046725084439be9eb812903f300c042/src/dumch/parse.cljc#L372