question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for variant aware KSP arguments

See original GitHub issue

I would like to provide variant specific KSP arguments. For example, I would like kspDebug and kspRelease to have different arguments.

An example use case is Room or DeepLinkDispatch. Both are kotlin symbol processors which write output to a directory. The directoy must be task specific so that kspDebug and kspRelease do not write to the same directory. Two tasks which write to the same directory disable up-to-date checks and caching in Gradle because the build becomes non-deterministic.

For reference, Java annotation processors and KAPT both provide a way of passing task specific arguments to the annotation processors.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:20
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
runningcodecommented, May 27, 2022

Forget my comment above. It is not needed since we will not be passing arguments from AGP’s CommandLineArgumentProvider to KSP.

This issue to add support for variant aware KSP arguments has no status update.

0reactions
neetopiacommented, May 26, 2022

I might not have full context on this issue, what’s the current status?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PartVariant Guide - Modelling and Texturing Discussion
I'm trying to figure out why you are attempting to use MM value lookups; are you trying to add color tints to pre-existing...
Read more >
Nelson Osacky on Twitter: "@ZacSweers @Sp4ghettiCode Do you ...
I have some fun KSP cacheability issues for you to add. ... Add support for variant aware KSP arguments · Issue #861 ·...
Read more >
Room & Kotlin Symbol Processing - Medium
The goal of this post is to give a head start to annotation processor authors on what to look out for when adding...
Read more >
FAQ — PETSc 3.18.2 documentation
Why doesn't PETSc use Qd to implement support for extended precision? ... SNESSetFromOptions(), or KSPSetFromOptions() reset all the parameters I previously ...
Read more >
So, how do I write a Kotlin Symbol Processor (KSP)?
contravariant — Type<in OtherType> (we add in before the actual type); invariant — Type<OtherType> (just add the argument type itself). After we ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found