Build Environment
SQLDelight version: 1.4.3
OS: macOS
Gradle version: 6.6
Kotlin version: 1.4.10
AGP Version (if applicable):
Describe the bug
As a result of #1926, the parameter names of the generated lambda often shadow the parameter names of the enclosing function. This results in lots of Name shadowed warnings. If this isn't easily fixable or is intended, it would be great to generate a @Suppress for these.
Thanks for fixing this! Are there any plans to have a patch release with this fix?
No plans for that, no.
Any chance that can be reconsidered? My project is blocked on updating to Kotlin 1.4 by this, because we have the "treat warnings as errors" option enabled.
Not sure if the fact that I caused the issue helps or hurts my request 馃槵
This is still happening to me in SQLDelight 1.4.4.
The issue has been fixed in all of my projects where it was happening.
Did you try a clean build?
Yep! Did ./gradlew clean <build>
Looks like it's still broken in cases where a query wrapper calls the lambda variant of the query wrapper and passes all of the params to a data class鈥斅爏omething like:
override fun selectOne(id: String?): Query<TableName> = selectOne(id) { id
TableName(
id
)
}
:thinking:
That's my use case, and it works for me. id in the lambda parameter list should be id_. I just verified that's what's happening in my project.
Can you check that clean is actually deleting your build directories? Every once in a while that stops working for me.
Never mind. It turns out I was still using the 1.4.3 plugin. It's fixed. Sorry about that!