Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing "gtm report" remain pending #94

Open
CasvalDOT opened this issue Mar 9, 2019 · 2 comments
Open

Executing "gtm report" remain pending #94

CasvalDOT opened this issue Mar 9, 2019 · 2 comments
Assignees

Comments

@CasvalDOT
Copy link

CasvalDOT commented Mar 9, 2019

I try to execute this command (gtm report) from a custom nodejs application. But seem that this command remain in pending status, without generating errors or output.
Here the js code

const exec = require('child_process').exec
exec('bash -c "gtm report"',(err,stdout,stderr) => {
  // Here the script not enter :(
  console.error("Error",err)
  console.log("STDOUT",stdout)
  console.log("STDERR",stderr)
})

If i change command with a more simple gtm --help output is correct.


For testing purpose i do the same in go calling:

out, err := exec.Command("bash","-c","gtm report").Output()
if err != nil {
log.Fatal(err)
}
fmt.Printf("output is %s\n",out)

In this case out is empty.
Can this issue related with the Spinner printed before results?

@mschenk42
Copy link
Member

Yes it is the spinner that is interrupting the reporting output. We would have to add an option to turn off the spinner for the reporting command if you want to grab it's output. I'll add that our list.

@mschenk42 mschenk42 self-assigned this Mar 10, 2019
@CasvalDOT
Copy link
Author

thanks for the answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants