-
Notifications
You must be signed in to change notification settings - Fork 67
How can I test incremental compilation? #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
KCT currently uses the same interface to the compiler as kotlinc. If you can do it with kotlinc then you should be able to do it in the same way with KCT. I'm afraid that incremental compilation is probably not supported by kotlinc and instead implemented in the kotlin gradle plugin in conjunction with new APIs in the compiler. That stuff is currently out of scope for me because the maintainance burden of exactly reproducing the logic from the gradle plugin would be huge, though I'm open to adding incremental compilation support if you're willing to do the ground work. I suppose in order to enable incremental compilation you'd have to look at the compiler source code to see what |
Oh, thank you for your response! I researched the source code of Incremental compilation in the Kotlin repository and discussed some points with its developers and decided, for me, it would be easier to implement these tests directly. I can share my tests classes if you want. Also, I can research how the incremental compilation process can be adopted to KCT later |
I would be interested in your test classes. If you can find out how it can be integrated with KCT, that's even better. |
You can find them here I can search for a way how it can be integrated into KCT after several days since currently, I am very busy at work |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Hi! Can I imitate the incremental compilation process? I mean I have the following test case: I should compile a project that uses my compiler plugin, check results, save them, modify several files in the project, recompile the project and check new results. The problem is that I don't want to recompile the full project since it is important to check if clean (old, not dirty) files were analyzed by my compiler plugin.
The text was updated successfully, but these errors were encountered: