-
Notifications
You must be signed in to change notification settings - Fork 168
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
slow startup time #45
Comments
when the plugin is installed when ever I type something in the PHPStorm editor and press Ctrl+Z or Ctrl+S the application goes our of blur ( Like and focused on other application ) for 2 : 3 seconds and returns back !!!!! you said on slack that you release new update but I still give version 4.0.12. That besides downloading wakatime cli every time you start the IDE I tried both debug modes |
@N-Molham did you restart PHPStorm after setting debug to false? It only checks debug from |
Sure I did 😄 |
@alanhamlett Any update ? |
I've tried reproducing it on my Windows 8.1 VM but haven't been able to yet. Could you help narrow down the section of code that's taking the most time during startup? |
This is a screen record of what is happening => https://drive.google.com/file/d/0B2pwLeWWR6mHc1dOSDhZS3JMSFU/view?usp=sharing |
In debug mode, can you check if the plugin is executing |
But It was working fine before !!!!
|
Version 4.0.13 is less strict about the wakatime cli version matching exactly, and just checks if the output contains the correct version in the string somewhere. Maybe some whitespace was causing the version to not match exactly. This might help with the slow startup time. As for the pythonw.exe window stealing focus from your IDE, I'm not sure how to fix that at the moment. |
Both problem still there after installing plugin version 4.0.13 !!! |
Can you clone this repo and debug inside IntelliJ? I've added some better debug logging with ae03d9a that will show why the plugin thinks wakatime cli is always out of date. |
@N-Molham just released v4.0.14 with the debug lines, so you can just upgrade instead of cloning the repo. |
Same both problems with v4.0.15 :( |
Can you show the new debug messages from your |
|
Just released v4.0.17 of the plugin, can you try it? I think we were reading the output from wakatime cli before the process had finished executing, so we missed the version number. Now we wait for wakatime cli to finish executing. |
v4.0.18 also fixes a bug where the thread running wakatime cli would block the UI thread. |
The focus steal problem is gone now but the slow loading time still there
And when
|
What happens when you run this in a cmd prompt?
That's the exact command being run which is exiting with Sorry I keep having to ask you for debugging help, but I'm not able to reproduce this :( This is my output on Windows 8.1 with debug true:
|
Yep I found the problem ... when I am trying to run I only imagine how feel like now :( I made you look around and around many times. I think to be in the safe side is to check it the command executed without any errors or not first. |
It's no problem at all! We actually fixed a lot of bugs and improved the debug output for everyone. Glad it's working now! |
The problem returned again after upgrading PHPStorm to 9.0.2 and Wakatime plugin to 4.0.19 Debug Log
and the output of running this command line you sent before It's everytime downloading the cli package despite it's version is I think I found the problem: |
Fixed with v4.0.20, just released. The latest wakatime cli version is hard-coded, but later today I'll have it check GitHub for the current cli version. The current release just updates the hard-coded wakatime cli version and also downloads wakatime cli in a non-blocking background thread. |
Thanks @alanhamlett nice work 👍 |
Some users are experiencing slow IDE startup times (up to 4 minutes) with the WakaTime plugin installed. Possible causes are:
The text was updated successfully, but these errors were encountered: