natario1
08/29/2021, 2:14 PM> Task :an-sample:kspTestKotlinAndroidNativeArm64 FAILED
e: Could not find "/Users/natario/Projects/ccc/ppp/an-sample/build/generated/ksp/androidNativeArm64Main/classes" in [/Users/natario/Projects/ccc/ppp, /Users/natario/.konan/klib, /Users/natario/.konan/kotlin-native-prebuilt-macos-x86_64-1.5.30/klib/common, /Users/natario/.konan/kotlin-native-prebuilt-macos-x86_64-1.5.30/klib/platform/android_arm64]
Trying to run processor on the test
compilation, gives the error above about missing class file in the main
compilation path. Indeed that "generated/ksp/classes" directory is empty, not sure what it's expecting to find there.
The error wording also seems suspicious, in Could not find "XXX" in [list of paths]
I'd expect XXX to be a filename, not a resolved path.Ting-Yuan Huang
08/30/2021, 9:18 PMnatario1
08/30/2021, 9:44 PMnatario1
08/30/2021, 9:52 PMatsushieno
09/03/2021, 1:24 PMatsushieno
09/03/2021, 1:25 PMTing-Yuan Huang
09/04/2021, 1:46 AMatsushieno
09/04/2021, 7:24 AMbinaries...
section (sounds like the other way around though), commenting out nativeTest by getting
, combination of those, but nativeTest still tries to build. (Not too seriously, but I want my libraries integrated into my C++ app in that repo too.)natario1
09/06/2021, 11:02 AMTing-Yuan Huang
09/06/2021, 7:51 PMkspTestKotlin...
, which are created (via compileTestKotlin...
) when the test source sets exist. Could you check whether the kspTestKotlin...
task still exist? Or could you share the error message if the X in the "Could not find X..." is different now? @atsushieno
This is the workaround btw: https://github.com/google/ksp/pull/608/filesatsushieno
09/07/2021, 8:11 AMkspTestKotlinNative
is still there. It's fine that it fails to build when it exists, but I have no idea how to disable that (whatever triggers compileTestKotlinNative
) in build.gradle.kts
. If I run ./gradlew build -x compileTestKotlinNative
it passes for sure, but that would not be great for daily development on IDEA...
I have encountered another native build issue but will start a new thread.Ting-Yuan Huang
09/07/2021, 8:18 AM