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

Replace/remove/fix vizion dependency causing annoying popups flashing in Windows #5801

Open
DVLP opened this issue Apr 15, 2024 · 0 comments

Comments

@DVLP
Copy link

DVLP commented Apr 15, 2024

When pm2 restarts a node process it creates flashing popups. When working with files that automatically save and use a watch this is extremely annoying.

To reproduce:

  1. Create a new repo with git init
  2. Add index.js file containing setInterval to keep the process runnning i.e. a line setInterval(() => console.log('test'), 1000);
  3. At least one commit is needed to reproduce the problem so: git add ./index.js && git commit -m "whatever"
  4. pm2 start index.js --watch
  5. Make a change in index.js. The annoying popups will flash for a split of a second every time the file is updated.

Workaround: Run with pm2 start index.js --watch --no-vizion

This issue was introduced in version 4.5 where Vizion dependency was upgraded from 0.2.13 to 2.x.
Downgrading the dependency to 0.2.13 or disabling vizion with { vizion: false } process.json or when using CLI pm2 ...--no-vizion fixes the issue. I don't know what role vizion plays but it needs to be either replaced with something up to date or vizion needs to be patched/fixed

Also described here but this could've been a different issue originally #2182

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

1 participant