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
What happened?
Text printed from a pipeline is not output to the terminal until a newline is reached.
What did you expect to happen instead?
Text should be printed without needing a newline.
How can we reproduce the bug? (as minimally and precisely as possible)
Create this devspace.yaml:
version: v2beta1pipelines:
test: | echo -n "Text without a newline" sleep 1 echo "... finished!"
Run devspace run-pipeline test
Note that "Text without a newline" doesn't appear until "... finished!" is printed
Local Environment:
DevSpace Version: 6.3.3
Operating System: macOS Sonoma 14.0
ARCH of the OS: arm64
Anything else we need to know?
This is a bigger issue when using read -p "Some prompt here: ", as the prompt doesn't appear until the user has hit enter (completing the read).
The text was updated successfully, but these errors were encountered:
@jackwilsdon Thanks for the analysis! We will take a look at a fix. I had previously assumed that this was an issue with the library we were using for the shell emulation, but you're probably right in that it's the scanner using the ScanLines function to tokenize the reader output.
@jackwilsdon While not a solution for this particular problem, I've found that read -p "Some prompt here: " works as expected in commands. The read values can then be passed into DevSpace using the --var flag. Hope that's helpful.
What happened?
Text printed from a pipeline is not output to the terminal until a newline is reached.
What did you expect to happen instead?
Text should be printed without needing a newline.
How can we reproduce the bug? (as minimally and precisely as possible)
devspace.yaml
:devspace run-pipeline test
Local Environment:
Anything else we need to know?
This is a bigger issue when using
read -p "Some prompt here: "
, as the prompt doesn't appear until the user has hit enter (completing theread
).The text was updated successfully, but these errors were encountered: