dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.63k stars 278 forks source link

Terminal window becomes busy #269

Open akhilshastri opened 7 years ago

akhilshastri commented 7 years ago

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

milesj commented 7 years ago

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

akhilshastri commented 7 years ago

I cannot type any further command

kesslerdev commented 7 years ago

same problem on windows with 1.12.0 see #249

milesj commented 7 years ago

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

akhilshastri commented 7 years ago

@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 commented 7 years ago

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

milesj commented 7 years ago

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

akhilshastri commented 7 years ago

just to add here, my node version is 8.1.0

akhilshastri commented 7 years ago

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.

milesj commented 7 years ago

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