wakatime / vscode-wakatime

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vs-code
BSD 3-Clause "New" or "Revised" License
1.23k stars 137 forks source link

Wakatime not recording stats with latest vscode update. #155

Closed nohupped closed 4 years ago

nohupped commented 4 years ago

Hello, I've been using wakatime for a long time, but since the last update of vscode, it appears to stop working.

Initially, on the statusbar, it was stuck at wakatime_initialisingpng forever.

I tried re-initializing it by deleting everything

rm -rf ~/.wakatime*

and reinstalling the plugin.

This time, it initialized, but the stats are not recording in the dashboard.

These are the errors that I see in my vscode Developer Console.

zip_header

initialized

Downloading wakatime-cli standalone...

happens every time I open the vscode.

Attaching the details of my Vscode/plugin/OS version

Version: 1.48.1
Commit: 3dd905126b34dcd4de81fa624eb3a8cbe7485f13
Date: 2020-08-19T17:11:59.963Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.8.3-arch1-1

Wakatime installed plugin version: latest at the time of reporting this.

v4.0.3

Please let me know if I am missing anything.

Thank you very much.

alanhamlett commented 4 years ago

After uninstalling you should run rm -r ~/.vscode/extensions/wakatime* since ~/.wakatime* is your config and offline heartbeats db which shouldn't be deleted in case there were heartbeats still waiting to sync up to the api. The wakatime-cli dependency is extracted into ~/.vscode/extensions/wakatime* so removing that folder resets the plugin.

Is this bug fixed if you install the old version 4.0.0?

Screen Shot 2020-08-23 at 6 44 29 PM
jeffryang24 commented 4 years ago

After uninstalled it and run rm -r ~/.vscode/extensions/wakatime*, still have the above error. Especially these lines still appear:

:bow:

alanhamlett commented 4 years ago

How about when installing the older version 4.0.0?

alanhamlett commented 4 years ago

Fixed with v4.0.4 by reverting back to request library.

nohupped commented 4 years ago

Thank you very much @alanhamlett. I checked it again by installing the older version 4.0.0 and it is working perfectly, however, the latest version (v4.0.5) is stuck at

wakatime_initialisingpng

since around last 20 minutes, and there is no error or warning in the Debug console on vscode. I've tried removing the extension completely by rm -r ~/.vscode/extensions/wakatime* and started fresh but it is still stuck there in the statusbar.

Is there anything else that I am missing?

Thank you

jeffryang24 commented 4 years ago

Yes, still stuck at WakaTime initializing in v4.0.5... :+1:

nohupped commented 4 years ago

Thank you very much @alanhamlett for fixing this in v4.0.6 and @jeffryang24 for helping.