question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not all output is being displayed

See original GitHub issue

I don’t know why exactly, but if I run an async exec command fig up, from https://github.com/docker/fig it does not display all of the output. Don’t know how I can help with any more detail, but it is when it logs the output from the docker containers. If there is any other way I can help nailing down the specifics of this bug, let me know. (silent is false of course)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jakub-gcommented, Oct 8, 2015

I’ve noticed similar for git clone command on Windows 7 machine with node 0.12.7 (running in sync mode)

Consider following js

require('shelljs/global');
exec('git clone https://github.com/jakub-g/empty-repo.git');

The result is that I see only the first line

me@mymachine ~/git
$ node shelltest.js
Cloning into 'empty-repo'...
1reaction
TimothyGucommented, Oct 8, 2015

Indeed, in git-clone(1) it is written as follows:

       --progress
           Progress status is reported on the standard error stream by default
           when it is attached to a terminal, unless -q is specified. This
           flag forces progress status even if the standard error stream is
           not directed to a terminal.

And as expected:

$ git clone --progress https://github.com/jakub-g/empty-repo.git 2>&1 | cat
Cloning into 'empty-repo'...
remote: Counting objects: 4, done.        
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 4        
Checking connectivity... done.
$ rm -rf empty-repo
$ node -e "require('child_process').execSync('git clone --progress https://github.com/jakub-g/empty-repo.git');"
Cloning into 'empty-repo'...
remote: Counting objects: 4, done.        
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 4        
Checking connectivity... done.
$ rm -rf empty-repo
$ node -e "require('shelljs').exec('git clone --progress https://github.com/jakub-g/empty-repo.git')"
Cloning into 'empty-repo'...
remote: Counting objects: 4, done.        
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 4        
Checking connectivity... done.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Showing all output in the console VS code - Stack Overflow
Go to File>Preferences>Setting and search for the Scrollback setting and increase the value to get the number of lines of output you want....
Read more >
Command window output not displaying everything?
Any other output is unable to be accessed by hitting the up arrow. It seems that MATLAB will momentarily display it, but then...
Read more >
Playground not displaying output | Apple Developer Forums
I ran into an issue where the output wasn't visible on 10.11 beta 4 and the solution ended up being this: Go to...
Read more >
Tee doesn't get whole output from the pipe - Ask Ubuntu
The problem is probably in the pipe to tee . It does not seem to get the whole output. When the application quits...
Read more >
$verbose = false is not displaying command output ... - GitHub
I'm thinking of as a regular CLI when all output is redirected. That's the reason I think $.verbose = true should display additional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found