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

WP CLI: Cancelling command in Windows displays error (but command is cancelled) #436

Closed
dchymko opened this issue Jul 25, 2019 · 3 comments
Assignees

Comments

@dchymko
Copy link
Contributor

dchymko commented Jul 25, 2019

Description

When cancelling a running WP CLI command on Windows, the following error is displayed:

  ✕  Unexpected error: Please contact VIP Support with the following error:
  TypeError: Cannot read property 'setRawMode' of null
    at ReadStream.setRawMode (tty.js:66:28)
    at Interface._setRawMode (readline.js:251:16)
    at Interface.close (readline.js:376:10)
    at IOStream.commandStreams.stdoutStream.on (C:\Users\User\Desktop\cli\vip\dist\bin\vip-wp.js:305:20)
    at IOStream.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

The command is still cancelled on the runner, but this is not clear to the user based on the terminal ouput

@dchymko dchymko added the [Type] Bug Something isn't working label Jul 25, 2019
@dchymko dchymko self-assigned this Jul 25, 2019
@joshbetz
Copy link
Contributor

Related: #361

@dchymko
Copy link
Contributor Author

dchymko commented Jul 25, 2019

Could be related:
SBoudrias/Inquirer.js#565

(The Enquirer package uses Inquirer 6.2.2)

@github-actions
Copy link
Contributor

This issue has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed.

This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2022
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