This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-03
Channels
- # aws (24)
- # beginners (377)
- # calva (33)
- # cider (1)
- # circleci (22)
- # cljs-dev (7)
- # clojure (40)
- # clojure-europe (1)
- # clojure-france (9)
- # clojure-norway (3)
- # clojure-taiwan (2)
- # clojurescript (8)
- # conjure (10)
- # cryogen (2)
- # emacs (1)
- # fulcro (23)
- # helix (1)
- # hoplon (2)
- # luminus (7)
- # meander (3)
- # off-topic (2)
- # re-frame (7)
- # reagent (8)
- # reveal (38)
- # sci (13)
- # shadow-cljs (17)
- # tools-deps (17)
- # vim (1)
@dchelimsky Thanks for fixing the reflection warnings on aws-api master. I and a group of people are trying to use the lib with GraalVM native-image and that helps.
Can we use the master version using deps.edn? Is this just a matter of updating com.cognitect.aws/api {:mvn/version "0.8.484"}
to the master SHA?
Yes, that’s how you do it.
@U6N4HSMFW About using it with native-image?
@U6N4HSMFW correct, we're writing a babashka pod
That would be super cool. I’m interested to spectate at least but I can also try to help if I can. My gh username is vharmain
@dchelimsky I'm looking at a reflection warning in the cognitect.http-client code, but I have trouble finding where that is hosted on github. Is that generated code perhaps?
it's around line 108 in the cognitect.http-client namespace:
"Class java.nio.HeapByteBuffer[] is instantiated reflectively but was never registered. Register the class by using org.graalvm.nativeimage.hosted.RuntimeReflection"
The code is open source (it’s in the jar), but the repo is not public.
How can you fix it with a config?
In GraalVM native-image you can pass it a config with classes that need reflection: Mine now looks like:
[
{"name": "[Ljava.nio.HeapByteBuffer;"}
]
to fix the issue with the http-clientPreferably you fix the reflection issue, but if you really can't this is a way to deal with it
I don’t own that repo, but I know the people who do 😉
I’ve reported it, but I don’t anticipate hearing anything back before tomorrow. I’ll follow up here when I know something.