kotlin-compile-testing icon indicating copy to clipboard operation
kotlin-compile-testing copied to clipboard

A library for testing Kotlin and Java annotation processors, compiler plugins and code generation

Results 55 kotlin-compile-testing issues
Sort by recently updated
recently updated
newest added

I'm using your fantastic library to test my multiplatform annotation processor which uses common source code and generates ios source sets. The tests look [sth like this](https://github.com/FutureMind/koru/blob/master/koru-processor/src/jvmTest/kotlin/com/futuremind/koru/processor/TypesGenerationTest.kt#L38). Now everything works...

Currently the new [K2 compiler](https://kotlinlang.org/docs/whatsnew-eap.html?utm_source=ide%1Butm_medium=notificationutm_campaign=1-7-20-beta#support-for-kotlin-k2-compiler-plugins) cannot even be enabled in KCT tests due to its own registrar not supporting it ``` e: There are some plugins incompatible with K2 compiler:...

When I use a scripting compiler in my project, it possibly does not set thread local parameters (maybe because it's not configured via Gradle). In that case I'm getting this...

I recently tried upgrading from JVM version `1.8` to `11` by setting `kotlinOptions.jvmTarget = "11"`, however I encountered the following error when using this library: ``` java.lang.NoClassDefFoundError: org/jetbrains/kotlin/cli/jvm/plugins/ServiceLoaderLite at com.tschuchort.compiletesting.AbstractKotlinCompilation.getResourcesPath(AbstractKotlinCompilation.kt:219)...

Bumps [kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) from 1.7.0 to 1.7.10-331. Commits 66fb59d Merge KT-MR-6569: [IC] Fix fallback logic in IncrementalCompilerRunner 298c99e Revert renaming the kotlinx-atomicfu-runtime module 39d59cb [IC] Fix fallback logic in IncrementalCompilerRunner aab426c...

dependencies
java

Hey, First of all thank you for maintaining this project - I used it excessively and it is pretty awesome! However I have just a question in regards to multi-round-processing...

I tried to use your library, which looks very nice, but I am having some trouble reproducing the sample code from the README. Do you have any suggestions how it...

Here is my code val compilation = KotlinCompilation().apply { sources = listOf(sourceFile) symbolProcessorProviders = listOf(KspProvider()) inheritClassPath = true kspWithCompilation = true workingDir = File(testWorkingDir) } compilationResult = compilation.compile() compilationResult.generatedFiles contains...

When the compiler plugin needs to be used by IDE plugin (e.g. to provide inspections via `CallChecker`), it should use kotlin-compiler instead of kotlin-compiler-embeddable. However, this caused incompatibility with the...

Not an issue per se but I was wondering how I can emulate a multi-module annotation processing setup where the processing runs separately for each module. I'd like to have...