Skip to content
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

VSCode "WakaTime Error" in statusbar, does not collect stats #637

Closed
kiprasmel opened this issue Apr 22, 2024 · 8 comments
Closed

VSCode "WakaTime Error" in statusbar, does not collect stats #637

kiprasmel opened this issue Apr 22, 2024 · 8 comments

Comments

@kiprasmel
Copy link

related: #153

$ uname -a
Darwin M1.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64 arm Darwin

latest entry in ~/.config/wakatime/wakatime.log:

{"caller":"cmd/run.go:158","func":"cmd.Run","level":"warning","message":"one of the following parameters has to be provided: --config-read, --config-write, --entity, --offline-count, --print-offline-heartbeats, --sync-offline-activity, --today, --today-goal, --useragent, --version","now":"2024-04-21T22:24:54+03:00","os/arch":"darwin/arm64","version":"v1.90.0"}

vscode developer tools:

workbench.desktop.main.js:655   ERR [Extension Host] [WakaTime][ERROR] Error: Command failed: /Users/kipras/.wakatime/wakatime-cli-darwin-arm64 --entity /Users/kipras/projects/turbo-schedule/common/src/util/findTopK.ts --plugin "vscode/1.86.2 vscode-wakatime/24.2.0" --lineno 4 --cursorpos 26 --lines-in-file 30 --alternate-project turbo-schedule --project-folder /Users/kipras/projects/turbo-schedule

workbench.desktop.main.js:149 [Extension Host] [WakaTime][ERROR] Error: Command failed: /Users/kipras/.wakatime/wakatime-cli-darwin-arm64 --entity /Users/kipras/projects/turbo-schedule/common/src/util/findTopK.ts --plugin "vscode/1.86.2 vscode-wakatime/24.2.0" --lineno 4 --cursorpos 26 --lines-in-file 30 --alternate-project turbo-schedule --project-folder /Users/kipras/projects/turbo-schedule

S @ workbench.desktop.main.js:149
workbench.desktop.main.js:149 [Extension Host] [WakaTime][WARN] Working offline (102); Check your /Users/kipras/.wakatime/wakatime.log file for more details
S @ workbench.desktop.main.js:149
@muety
Copy link
Owner

muety commented Apr 23, 2024

This looks like a problem related to the wakatime-cli, rather than Wakapi, so perhaps file an issue with them? Nevertheless, can you show the contents of your .wakatime.cfg (with API key redacted), please?

@kiprasmel
Copy link
Author

kiprasmel commented Apr 23, 2024

[settings]

# Your Wakapi server URL or 'https://wakapi.dev/api' when using the cloud server
api_url = http://localhost:10006/api

# Your Wakapi API key (get it from the web interface after having created an account)
api_key = REDACTED
$ ./.wakatime/wakatime-cli --version
v1.90.0

could it be that something changed in the vscode extension, and the cli didn't update?

@muety
Copy link
Owner

muety commented Apr 23, 2024

Is it working for editors other than VSCode? Also, maybe try to temporarily create an account at official wakatime.com and see if it works there. I highly suspect it's an issue with the CLI, though. I'd say file an issue there.

I ran the exact command that had failed for you on my machine and it worked fine, with latest CLI version, but different OS specs, though:

$ uname -a
Linux ferdinand.desktop 6.8.6-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Apr 13 15:14:23 UTC 2024 x86_64 GNU/Linux

@muety
Copy link
Owner

muety commented Apr 28, 2024

Any updates on this?

@kiprasmel
Copy link
Author

hmm, it looks like wakatime in vscode just started working again. not sure what happened..
probably can close this

@muety muety closed this as completed Apr 30, 2024
@kiprasmel
Copy link
Author

https://github.com/wakatime/vscode-wakatime/blob/master/CHANGELOG.md#2450-2024-04-10

24.5.0 (2024-04-10)

  • Modify api_key_vault_cmd to match wakatime-cli.

i think this was it.

@AstaDK
Copy link

AstaDK commented Nov 25, 2024

I am still facing the same issue.
Any update or more detail information from the Waka dev team?

[WakaTime][ERROR] Error: Command failed: /../.wakatime/wakatime-cli-darwin-arm64 --entity /../Templates/treact/public/index.html --plugin "vscode/1.85.1 vscode-wakatime/24.9.1" --lineno 13 --cursorpos 5 --lines-in-file 79 --alternate-project treact --project-folder /.../Templates/treact --write

@muety
Copy link
Owner

muety commented Nov 25, 2024

Can you please give some more details about the error by inspecting .wakatime.log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants