vorpal icon indicating copy to clipboard operation
vorpal copied to clipboard

Terminal window becomes busy

Open akhilshastri opened this issue 8 years ago • 10 comments
trafficstars

Hi, I am trying below sample code on my MAC ` #!/usr/bin/env node

const vorpal = require('vorpal')();

vorpal .command('say [words...]') .option('-b, --backwards') .option('-t, --twice') .action(function (args, callback) { let str = args.words.join(' '); str = (args.options.backwards) ? str.split('').reverse().join('') : str; this.log(str); callback(); });

vorpal.show();`

after that I did npm link to set it in global,

when I executed js-cli the terminal window becomes busy, image

akhilshastri avatar Jul 14 '17 19:07 akhilshastri

What do you mean busy? Nothing looks wrong in the screenshot.

milesj avatar Jul 14 '17 23:07 milesj

I cannot type any further command

akhilshastri avatar Jul 15 '17 13:07 akhilshastri

same problem on windows with 1.12.0 see #249

kesslerdev avatar Jul 15 '17 15:07 kesslerdev

I don't have a Windows machine, so if you guys could help pinpoint where the issue is, I can dig into it.

milesj avatar Jul 15 '17 19:07 milesj

@kesslerdev , yes it is the same issue with MAC also, i tried with version "version": "1.11.4", and "version": "1.12.0" both on MAC Sierra 10.12.5

In fact, just to test vorpal behaviour, i tried installing cash in global by npm install cash -g but it has same issue, i am not able to input any command after first replay ( response from cli)

akhilshastri avatar Jul 17 '17 02:07 akhilshastri

@milesj it's the same issue on MAC also #249

akhilshastri avatar Jul 17 '17 02:07 akhilshastri

I wonder if a dependency is being auto-updated to a newer version based on our ^ matching. This would explain the sudden breakage.

milesj avatar Jul 17 '17 06:07 milesj

just to add here, my node version is 8.1.0

akhilshastri avatar Jul 18 '17 05:07 akhilshastri

i guess i got the issue, its with node version only, when i down grade the node version 7.10.0, it's working as expected :)

Thanks for your support.

akhilshastri avatar Jul 18 '17 05:07 akhilshastri

I'll leave this open as it's still an issue.

milesj avatar Jul 18 '17 07:07 milesj