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.26k stars 141 forks source link

Wakatime Error from opening VSCode #412

Open Zes-MinKey-Young opened 7 hours ago

Zes-MinKey-Young commented 7 hours ago

My wakatime hasn't be working for nearly a year. Today I thought it was too old, but nothing changed after updating it. I've switched to debug mode and collected the error message as followed. It's really disturbing that the C:\Users\Administrator\.wakatime\wakatime.log is always blank. File C:\Users\Administrator\.wakatime.log has stopped logging since last year, and after being deleted it never appeared again.

[Extension Host] [WakaTime][ERROR] Error: Command failed: C:\Users\Administrator\.wakatime\wakatime-cli-windows-amd64.exe --entity e:\zes\VSCode\kpa\kpa.code-workspace --plugin "vscode/1.70.2 vscode-wakatime/24.9.1" --lineno 12 --cursorpos 23 --lines-in-file 17 --alternate-project kpa --project-folder e:\zes\VSCode\kpa --config C:\Users\Administrator\.wakatime.cfg --log-file C:\Users\Administrator\.wakatime\wakatime.log
Exception 0xc0000005 0x8 0x0 0x0
PC=0x0

runtime.asmstdcall(0x3c0300060009)
    C:/hostedtoolcache/windows/go/1.23.3/x64/src/runtime/sys_windows_amd64.s:76 +0x89 fp=0x26f960 sp=0x26f940 pc=0x120b389
rax     0x0
rbx     0x21287c0
rcx     0x21706a8
rdx     0x20
rdi     0x7fffffdd000
rsi     0x26fb58
rbp     0x26faa0
rsp     0x26f938
r8      0x21284e0
r9      0x21701ca
r10     0x2fa2e8
r11     0xc000004000
r12     0x26fba8
r13     0x0
r14     0x2127080
r15     0x3
rip     0x0
rflags  0x10246
cs      0x33
fs      0x53
gs      0x2b

[WakaTime][ERROR] Unknown Error (2); Check your C:\Users\Administrator\.wakatime\wakatime.log file for more details

Heartbeats API:

{
  "data": [],
  "end": "2024-11-24T15:59:59Z",
  "start": "2024-11-23T16:00:00Z",
  "timezone": "Asia/Shanghai"
}

I'm really a noob in computing so I beg detailed instructions. Thanks.

alanhamlett commented 6 hours ago

Are you using Windows 7? A while back Go dropped support for Win7 and this seems like a related crash.

alanhamlett commented 6 hours ago

Similar to #278, we will need to detect older operating systems and download a past version of wakatime-cli which still supported that os.