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

Feature request: add command line option to disable line rewriting #1375

Closed
hexpunk opened this issue Oct 10, 2018 · 1 comment
Closed

Feature request: add command line option to disable line rewriting #1375

hexpunk opened this issue Oct 10, 2018 · 1 comment

Comments

@hexpunk
Copy link

hexpunk commented Oct 10, 2018

#617 added this line rewriting trick using the carriage return (\r).

process.stdout.write(
`\rLast extension reload: ${(new Date()).toTimeString()}`);

However, this causes problems when using web-ext with concurrently, for example. (See https://github.com/kimmobrunfeldt/concurrently/issues/168)

Can I suggest adding a command line option that prevents this line from being overwritten (or more accurately, adds a newline like what currently happens in verbose mode)? This is similar in my mind to the --preserveWatchOutput option in the Typescript compiler which disables it from clearing the console before each recompilation while in watch mode.

@rpl
Copy link
Member

rpl commented Oct 11, 2018

@jayandcatchfire as you mentioned in the concurrently issue linked above, it may be not that unlikely that other commands could have the same issue with concurrently, because of this kind of behavior, and so it seems to me that it may be more reasonable to fix the issue on the concurrently side once, so that it does not stop to work because of that.

In the meantime, as a workaround for your specific use case, you may try to write a small nodejs script that use web-ext as a library, which makes web-ext silent (from a concurrently point of view) and logs its own messages (some that don't make concurrently unhappy ;-))

You can take a look to https://github.com/hiikezoe/web-ext-webpack-plugin/blob/master/web-ext-webpack-plugin.js as an example of how web-ext can be used as a nodejs library.

@hexpunk hexpunk closed this as completed Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants