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.2k stars 133 forks source link

Wakatime not updating #366

Closed AmiRM4A closed 9 months ago

AmiRM4A commented 9 months ago

I'm experiencing a problem with the WakaTime extension not recording and saving my coding time. I code for 5-6 hours each day, but the extension won't record that. The icon in my IDE always displays the message: 'Working offline... Coding activity will sync next time we are online.' The dashboard on the WakaTime website doesn't get updated with my coding activity either. I've checked my internet connection multiple times to ensure it's stable and attempted to use a VPN to see if it resolves the issue, but the problem persists. I also looked into the WakaTime logs, but the wakatime.log file is empty, providing no insight into the problem.

image image

alanhamlett commented 9 months ago

Things to check:

AmiRM4A commented 9 months ago

/.wakatime/wakatime.log is empty and ~/.wakatime.cfg seems clear too.

image image

alanhamlett commented 9 months ago

I forgot, it won't print logs for normal networking issues without debug mode. Please enable debug mode with this line in your ~/.wakatime.cfg: debug = true

AmiRM4A commented 9 months ago

Here's the content of ~/.wakatime/wakatime.log wakatime.log

alanhamlett commented 9 months ago

We need to reset your backoff time because it's not actually sending data due to receiving too many networking errors. Please delete ~/.wakatime/wakatime-internal.cfg and then use your vscode again to generate some logs with the network error message.

AmiRM4A commented 9 months ago

I did that. seems problem is solved. is there any probelm in wakatime.log file?

wakatime.log image

alanhamlett commented 9 months ago

No, there are no errors in this new wakatime.log file, and it shows stats uploading correctly. Did anything change in your internet connection, because before it seems it was a normal connection problem.

AmiRM4A commented 9 months ago

I get that thanks for your time and the great extension 👍

alanhamlett commented 9 months ago

Make sure to turn debug mode back to false to prevent any lag.