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
We still have this very verbose output with Robo 4.
I have traced to the following calls:
Process::readPipes(): seems legit to print it here if isPrinted is true
Result::printError(): the logic here seems to be to only print if it is not already printed elsewhere
It does not work with SSH tasks because Ssh does not implement PrintedInterface
ResultWriter::writeErrorMessage(): seems legit to write the exception message here
In our case it repeats the command output, but there are cases where it could be different.
It might make a little more sense to display the command error output here, but it seems the TaskExitException does not have this information.
Steps to reproduce
I am using an
Ssh
task with a globalstopOnFail
, with Robo 1.4.11 called in a non-interactive terminal.Here is a basic example that reproduces the issue:
Expected behavior
The "hello" output should only be printed once.
Actual behavior
The output is printed three times:
I think one duplicate is caused by the global
stopOnFail
and another one is caused by the SSH class.This does not happen in interactive mode.
System Configuration
PHP 7.2.24 on Linux Mint 19.3.
The text was updated successfully, but these errors were encountered: