Closed thecotne closed 9 years ago
How many pythonw.exe processes are created? There should be only 1 pythonw.exe process created per heartbeat, and only 1 heartbeat should be sent when saving a file.
around 4-6 and also some sublime_text.exe processes around 2-3
i have tested in another computer works correctly (only one)
i will test this tonight when i get home
Very strange. I've only tested using 32bit Windows 7 and 8 virtual machines from http://modern.ie and never seen this, but I know a few people in the past had experienced more than 1 pythonw.exe opening. I thought it was just lingering processes from slow network, where the heartbeats were getting queued faster than they could be sent. Maybe it was #12 or #6.
What specs were the other machine where it worked correctly? Let me know what you find when testing... would love to be able to reproduce this and fix it.
it's because gulp is creating 3 file each time i save file
some times i hit ctrl+s
twice so file is saved twice and 3 extra file is saved twice it's 8 pythonw.exe processes and it's too much for my CPU
it does not occurred on different computer because i have different gulp tasks and much better CPU
What's gulp?
b51ae5c2c4fc540e3ea5b784dc9580e19d1d84f4 prevents sending more than one heartbeat every 2 seconds from write events, for when you're pressing save multiple times. Not sure why 3 python processes are created, since I only call Popen
once.
I do call Popen
when looking for python, but that should only happen once the first time the plugin loads.
What's gulp? http://gulpjs.com/
so if last_active['file']
is not target_file
it will send more then one heartbeat within 2 seconds
Oh, I don't think I'm using gulpjs anywhere.
Yes, if the currently edited file changes it will send another heartbeat. That won't happen when saving a file, only when switching between tabs.
haw you detect file saved?
also i have tested that if i don't have opened files witch are overridden when gulp runs only one heartbeat is sent but if i have opened all files witch are overridden when gulp runs around 6-8 heartbeat is sent
when gulp overrides file sublime text refreshes file i think it is triggering wakatime heartbeat
acaad2dc83ce8c03fbe047e2e7dd341b9a4b02a3 and v4.0.2 of the plugin fixes this by only sending heartbeats for the currently active buffer
thx
when i save file for about 2 seconds there are some pythonw.exe and sublime_text.exe processes and sublime becomes unresponsive (lagging)
i know its wakatime because i tested without wakatime and with wakatime
i have windows 7 64bit and sublime text 3084