Sam Gammon

Results 352 comments of Sam Gammon

It's possible there is _some_ workaround for this with `--initialize-at-run-time`, maybe? My gut tells me that if only because this started appearing with our adoption of `--initialize-at-build-time=` (i.e. an empty...

@selhagani Yes, sorry, I just got this tag. I will upload the reproducer in a repository and share here; would you mind re-opening this ticket? Jetbrains is helping from their...

Hey @woess, Proposing code might be a better way to communicate this idea. I've filed a PR with a sample API that works for us. Allow me to also answer...

I should also say that this API allows us to remove our hacks which patch the `JSModuleLoader` for [TypeScript support](https://github.com/elide-dev/elide/blob/main/packages/graalvm-js/src/main/java/elide/runtime/lang/javascript/JSRealmPatcher.java). We could contribute that language implementation upstream.

To reproduce the issue: ``` git clone [email protected]:elide-dev/jna.git -b feat/static-jna-feature-part2 cd jna ant && ant dist && ant install && ant nativeImageStatic && ant nativeImageStaticRun ``` There is another target...

Hey @fernando-valdez, We've tried on GVM latest release (Oracle GraalVM JDK 22). Here it is on Linux: ``` java version "22.0.1" 2024-04-16 Java(TM) SE Runtime Environment Oracle GraalVM 22.0.1+8.1 (build...

@fernando-valdez I've determined that, actually, the underlying native libraries were failing to load -- this was true in both the case of SQLite and JNA. I've fixed static init in...

@peter-hofer > What do you mean by were failing to load? I mean that the initialization steps in `JNI_OnLoad_x` were failing for other reasons. Execution _did_ end up transitioning to...

we use these flags to get around those warnings (YMMV): ``` org.gradle.configuration-cache = true org.gradle.configuration-cache.problems = warn org.gradle.configuration-cache.stable = true ``` and, if necessary, in `settings.gradle.kts`: ``` enableFeaturePreview("STABLE_CONFIGURATION_CACHE") ```