-
Notifications
You must be signed in to change notification settings - Fork 343
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
Terminal becomes unusable after exiting from "web-ext run" in Node.js 10.2.x and 10.3.0 #1331
Comments
I'm currently using v8.10.0 and I experience the same problem.
After pressing Ctrl-C is see this:
... but now have an unusable terminal as you've described.
|
@danhumphrey I can't reproduce the issue with Node.js 8.10.0, web-ext 2.7.0 nor master on ArchLinux. What operating system are you using, which web-ext version are you using? |
@Rob--W Thanks for your quick reply. Mac OS 10.13. I've also just tried Windows 10. Originally tried node v8.10.0 and just tried switching to v6.10.3 and the same problem exists. Maybe it's got something to do with how I'm using it.. let me elaborate: I have a gulp task to build and launch an extension, the final function is shown below: function launchFirefox(cb) {
webext.cmd
.run(
{
sourceDir: distPath,
startUrl: pkg.homepage
},
{
shouldExitProgram: false
}
)
.catch(onError);
logUpdate(
`Firefox should now be open with the ${pkg.name} extension loaded.`
);
cb();
} The gulp task completes successfully - here's the final few lines of the log output:
Am I doing something wrong with how I'm using web-ext? |
@danhumphrey I tried to reproduce your issue but can't. Can you share a minimal project that shows the issue? This is my attempt to reproduce:
|
@danhumphrey when running a web-ext command by requiring it as a nodejs module, it may be useful to include the webext.cmd.run({
noInput: true,
sourceDir: distPath,
startUrl: pkg.homepage,
}, {
shouldExitProgram: false
}).then(() => {...}).catch(...); This options (when set to web-ext/src/extension-runners/index.js Lines 286 to 309 in f9db35b
|
@Rob--W @rpl
|
I got the same issue, I use
In a usual cmd.exe In an unstandard terminal ConEMU, which I use, it hangs up regardless further actions, even when the browser is closed it doesn't exit. So, perhaps, the main reason in the unstandard terminal. |
When I type in the terminal after exiting from
web-ext run
, the input is not displayed. When I press enter, the typed command is executed. This is a bug that only happens in Node.js 10.2.x and 10.3.0.This is apparently a bug in Node.js: nodejs/node#21020
Any of the following work-arounds can be used:
stty sane
and press Enter.There is nothing that we can do, short of not using
process.stdin.setRawMode(true);
. Let's keep this issue open until the latest version of Node.js has been fixed. Then users ofweb-ext
can find this issue + work-around on the issue tracker.The text was updated successfully, but these errors were encountered: