Status Update
Comments
uc...@google.com <uc...@google.com>
ar...@google.com <ar...@google.com>
ar...@google.com <ar...@google.com> #2
Aurimas, do you mean to reduce the chattiness of Ninja output in the Build output window in Studio?
tg...@google.com <tg...@google.com> #3
This message is actually used by ClangOutputParser to figure out the working directory when parsing the compiler output. So if we want to remove them, we need to only do so when the compiler does not output any messages. I am hesitant about putting too much magic around this.
au...@google.com <au...@google.com> #4
Any sort of messages, if there are no warnings/errors, there should be 0 things printed to Gradle default logger, it should match javac and all the other tasks.
I should run ./gradlew foo:bar:assemble
for a library that has native code and I should get 0 lines of output if there are no warnings/errors in my c++ code.
jo...@google.com <jo...@google.com> #5
tg...@google.com <tg...@google.com> #6
Hi Jomo, my current change won't remove these messages.
To suppress these messages, we will need to make our output parser inside AGP stateful:
-
If there are no warnings or errors, we need to store the following lines without printing them
Build icing_armeabi-v7a ninja: Entering directory `/ssd/ssd2/androidx-master-dev/frameworks/support/appsearch/local-storage/.cxx/cmake/debug/armeabi-v7a'
-
Otherwise, if there are any warning and errors, we need to output the stored lines before outputting any warnings or errors.
What do you think Jomo?
tg...@google.com <tg...@google.com> #7
Discussed offline and we will make AGP stateful.
au...@google.com <au...@google.com> #8
Thanks for the update, this will make our build output much cleaner.
tg...@google.com <tg...@google.com>
au...@google.com <au...@google.com> #9
Which version of AGP is the fix in?
tg...@google.com <tg...@google.com> #10
Oops I forgot to post an update here. This will be in Android Gradle Plugin 4.2 RC1. By default the native output is only printed if the compiler emits messages (for the IDE to parse them and show compiler output in the build tool window). If the compiler does not output anything, then no output will be printed at all.
mm...@gmail.com <mm...@gmail.com> #11
If desired, it is possible to reenable the more verbose output by adding this line
android.native.buildOutput=verbose
to gradle.properties
.
Description
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: 4.2-alpha15 Version of Gradle Plugin: 4.2.0-alpha15 Version of Gradle: 6.7 Version of Java: JDK 11 OS: Linux
Steps to Reproduce:
What we get:
What we expect:
No messages since these don't provide any value.