You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When capturing_stdout:true is set and the flutter command fails, we also need to know what the stdout contained in order to understand the context of the issue.
unlesswait_thread.value.success? || (ignore_error == true)UI.shell_error!(<<-ERROR)The following command has failed:$ #{command}[#{wait_thread.value}]#{errors_thread.value}Command output:#[output]ERRORendignore_errorend
I could also imagine to configure this with a parameter.
This behaviour is a bit annoying when running command on the CI, and errors can not be reproduced locally.
The text was updated successfully, but these errors were encountered:
Agree. The general expectation is that the call site would play nicely as well and spit the output when necessary (that's what... Capturing means). I can understand the overhead in writing that code, but I also found stdout too noisy most of the time and containing a lot of redherring distracting from actual troubleshooting. Especially the build command. Do you happen to have an example of what command would fail and conceal context in stdout, so that I can play with verbosity a bit to find a way to guess the intent?
The following command has failed:
$ /Users/runner/hostedtoolcache/flutter/bin/flutter build ios --release --build-number\=1419 --build-name\=3.41.0-31-gbb01e5a5 --dart-define\=GIT_TAG\=3.41.0-31-gbb01e5a5 --dart-define\=USER_APP_ID\=com.xayn.discovery.internal --dart-define\=USER_APP_NAME\=Xayn\ News\[i\] --dart-define\=USER_FLAVOR\=internal --dart-define\=USER_PROVISIONING_PROFILE\=Xayn\ Discovery\ Internal\ Adhoc\ Profile --dart-define\=USER_CERTIFICATE\=Apple\ Distribution:\ Xayn\ AG\ \(586TQ875ST\) --no-codesign --bundle-sksl-path flutter_01.sksl.json
[pid 32725 exit 1]
Encountered error while building for device.
And stdout reported a warning that the SKSL kernel file doesn't match the Flutter version.
It was basically the last print statement before it failed.
Generally in my experience, all flutter commands might report a warning or an error to STDOUT instead of STDERR and just fail with a short message.
When
capturing_stdout:true
is set and the flutter command fails, we also need to know what the stdout contained in order to understand the context of the issue.I could also imagine to configure this with a parameter.
This behaviour is a bit annoying when running command on the CI, and errors can not be reproduced locally.
The text was updated successfully, but these errors were encountered: