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
With #653 we now log the standard output and error messages of a process so the use can see it (e.g. in case of errors) even if it was captured.
However, this now opens a new problem:
We have modelled this as two independent Lists:
With this design it is impossible to print these messages in their original order how it was printed by the actual process.
Let us look at the following example:
This program will let you see this on your console:
out1
err1
out2
err2
However, with IDEasy and DEFAULT_CAPTURE we would get:
out1
out2
err1
err2
The idea and expectation of this story is to change the model (e.g. having a single list of LogEvents) and the way we read the out and err from the thread to preserve the order (as far as possible).
NOTE: With Java Process API it is impossible to create a perfect solution as you can read here.
The text was updated successfully, but these errors were encountered:
With #653 we now log the standard output and error messages of a process so the use can see it (e.g. in case of errors) even if it was captured.
However, this now opens a new problem:
We have modelled this as two independent
List
s:IDEasy/cli/src/main/java/com/devonfw/tools/ide/process/ProcessResultImpl.java
Lines 17 to 19 in d146098
With this design it is impossible to print these messages in their original order how it was printed by the actual process.
Let us look at the following example:
This program will let you see this on your console:
However, with IDEasy and DEFAULT_CAPTURE we would get:
The idea and expectation of this story is to change the model (e.g. having a single list of LogEvents) and the way we read the out and err from the thread to preserve the order (as far as possible).
NOTE: With Java Process API it is impossible to create a perfect solution as you can read here.
The text was updated successfully, but these errors were encountered: