Status Update
Comments
ma...@google.com <ma...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com> #2
this is the new Lint block right? All the docs still refer to lintOptions.
textOuput has always been a file, but what's gone in 7.1 in the new lint block is the helper funtion
fun textOutput(textOutput: String) {
this.textOutput = File(textOutput)
}
We should probably just separate out the file and stdout DSL, they are really separate concepts rather than relying on line special casing a local file called stdout/stderr
xo...@google.com <xo...@google.com> #3
... time passes ...
The new Lint
block says, in its KDoc for textReport
, "To output the lint report to stdout set textReport=true, and leave textOutput unset."
Unfortunately it also still said in its interface documentation that textOutput
could be "a file or 'stdout' or 'stderr'", which has basically never been true (a sentence carried over from the old LintOptions
Dsl block's documentation). I've removed that sentence, and that change will eventually show up in the documentation on developer.android.com for newer AGP versions.
Thank you for the report!
an...@google.com <an...@google.com> #4
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Meerkat | 2024.3.1 Canary 7
- Android Gradle Plugin 8.9.0-alpha07
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
Prior to AGP 7.1.0, it was possible to pipe lint output to stdout via
textOutput 'stdout'
, but nowtextOutput
is aFile
and it's not clear how to pipe to stdout now aside from creating a separate task that then reads this file after the lint analysis task runs. It's totally fine if that's the case, but then the doc should probably be updated too as it still suggeststextOutput 'stdout'
.