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.

The CLI is incredibly unresponsive, what’s up with that? This isn’t an urgent issue obviously, but it is a bit unappealing.

It takes nearly 3 seconds for embark to print out it’s -h option to stdout.

Are others having this issue? Is this an issue with commander.js?

λ /usr/bin/time -v embark -h

        Command being timed: "embark -h"
        User time (seconds): 2.69
        System time (seconds): 0.06
        Percent of CPU this job got: 101%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:02.71
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 205476
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 50376
        Voluntary context switches: 152
        Involuntary context switches: 4
        Swaps: 0
        File system inputs: 0
        File system outputs: 0
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iurimatiascommented, Mar 12, 2017

@nathanph What version of Embark are you using? I can confirm the 2-3 seconds on 2.3.0, but it’s instantaneous in 2.4.0

1reaction
nathanphcommented, Mar 9, 2017

Okay, the issue is that the entire project is initialized before ever running the cmd.js. This means every module required by the project has to be synchronously loaded before anything can be done.

Instead of requiring every module at the top of the index.js I’d recommend loading modules ad-hoc for each subcommand. It’s a band-aid, but it’d help.

Edit: Whoops, I’d written this before I read your response. Alrighty! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Unresponsive Terminal - Learning the UNIX ... - O'Reilly
The Unresponsive Terminal · Press the RETURN key. · If you can type commands, but nothing happens when you press RETURN, try pressing...
Read more >
1.4. The Unresponsive Terminal
The Unresponsive Terminal. During your Unix session (while you're logged in), your terminal may not respond when you type a command, or the...
Read more >
Commands run from CLI are slow or unresponsive
Commands run from CLI take too much time to show results and/or hung. No "sysconfig -a" and "sysconfig -r" sections are shown in...
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
General troubleshooting to try first. If you receive an error or encounter an issue with the AWS CLI, we suggest the following general...
Read more >
Unresponsive CLI · Issue #24816 · bitcoin/bitcoin · GitHub
... on master built with --enable-debug in my development environment, where the CLI becomes unresponsive and eventually returns: error: timeout on tra...
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