getkyo / kyo

Toolkit for Scala Development
https://getkyo.io
Apache License 2.0
558 stars 46 forks source link

[prelude] more generic Aspect #839

Closed fwbrasil closed 1 week ago

fwbrasil commented 2 weeks ago

The test still fails to compile in native even when the tests are marked with taggedAs notNative. I've moved the test file so it executes only for the JVM as a workaround. The compilation error:

[error] /home/runner/work/kyo/kyo/kyo-prelude/native/target/scala-3.5.2/native-test/generated/1a0c1.ll:583797:52: error: '@_SM11kyo.Aspect$D15init$$anonfun$1L16java.lang.ObjectL15scala.Function1L16java.lang.ObjectEpT11kyo.Aspect$' defined with type 'i8* (i8*, i8*)*' but expected 'i8* (i8*)*'
[error]   %_4000001 = call dereferenceable_or_null(16) i8* @"_SM11kyo.Aspect$D15init$$anonfun$1L16java.lang.ObjectL15scala.Function1L16java.lang.ObjectEpT11kyo.Aspect$"(i8* dereferenceable_or_null(16) %_2)
[error]                                                    ^
[error] 1 error generated.
[info] Compiling to native code (5511 ms)
[info] Total (16398 ms)
[error] Failed to compile /home/runner/work/kyo/kyo/kyo-prelude/native/target/scala-3.5.2/native-test/generated/1a0c1.ll
[error] (kyo-preludeNative / Test / nativeLink) Failed to compile /home/runner/work/kyo/kyo/kyo-prelude/native/target/scala-3.5.2/native-test/generated/1a0c1.ll
[error] Total time: 113 s (01:53), completed Nov 12, 2024, 1:25:50 AM
fwbrasil commented 1 week ago

merging to post the Parse PR based on this change. Please feel free to provide feedback!