-
-
Notifications
You must be signed in to change notification settings - Fork 12
Electron 7 #32
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
Comments
Are you by chance on a Mac? Also, which version of electronmon are you using? Electronmon uses chokidar, which has this fun problem where when |
Hmm... I took a look at your repos and the only Electron app I found was However, since it claims to do exactly the same thing as my package in the same way (which is I am guessing why you may have been looking at my documentation but using the different package and everything still worked), I decided to check it out. For me on Windows, that package is always using ~25% CPU on top of my app itself, and it also never fully finishes watching files (do you also have really slow boot times with that package?), even on . I am happy to report that if you intended to use my package, you should check it out now! To my knowledge (and I use it across Windows, MacOS, and Linux) there is generally no added CPU overhead on top of what the Electron app itself uses, and there is negligible start time overhead (like... maybe a couple hundred milliseconds tops). |
yea I just realized that myself too. I have switched to you package instead (that's what I wanted in the first place but I never noticed my typo until now), but I'm in the process of doing some other visual studio file stuff so I haven't had a chance to test it yet. |
No problem. I'll keep this open for a bit, so do let me know if you run into any issue with it. In the meantime, I have added Electron 7 to my test matrix and am finding that it works properly so far. |
Some further testing, when it reloads due to file change, electron will close and re-open. However it is still running the same code as before. Example: I run Running electronmon 0.5.1 on nodejs 12.13.0 |
Hmm... interesting. Do you have a project that is able to reproduce this? I didn't run into this issue on my own projects, or just now when I grabbed a version of |
If I add a What I did: In the |
Hmm.... I must be missing something from your setup. When I ran it, I got this: From your video though, I see this in your log: Notice how my image detects the file as a "main file" while yours detects it as a "renderer file"? I also see that in Visual Studio, the path to your project is this: However, in your command prompt, the path was this: Why are these paths different? It looks like you changed a file in one folder and expected a file in a different folder to have changed? Is there something non-obvious about your environment that I am missing? |
I made the simplest guess -- that you have moved your user folder to a separate drive and linked it to the regular user folder location -- and can reproduce the issue. I added #33 to add support for linked directories. It should be a trivial fix. If you want to check out an early version, you can try it now with this: npm i electronmon@https://github.com/catdad/electronmon/tarball/c647f202c58949b874d7108a4fe88ec2e0e04751 I have to figure out how to test this on all operating systems before I can publish it though. |
I don't know why it's recognizing it as a render file. Everything in the |
I just pushed 0.6.0 which fixes the issue with linked locations. See #33 if you are interested to know more. |
(I know the readme says electron 4-6) but in electron 7, cpu usage spikes insanely.
I like
electronmon
during development because it helps so much to have auto re-launch but I would like to use the same version of electron during dev as in testing and production.The text was updated successfully, but these errors were encountered: