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.24k stars 137 forks source link

Error command failed when exec wakatime-cli-darwin-arm64 #346

Open NsdHSO opened 1 year ago

NsdHSO commented 1 year ago

I the developer console I got this [Extension Host] [WakaTime][ERROR] Error: Command failed: /Users/user.../.wakatime/wakatime-cli-darwin-arm64 --entity /Users/user.../Documents/work/vue/vanilajs/index.html --plugin "vscode/1.77.3 vscode-wakatime/24.0.10" --lineno 33 --cursorpos 40 --lines-in-file 61 --alternate-project vanilajs --project-folder /Users/user.../Documents/work/vue/vanilajs

This error I got in vscode but the same in webstrom. Can someone help me with this error or solve this problem and solve it?

alanhamlett commented 1 year ago

Does that binary /Users/user.../.wakatime/wakatime-cli-darwin-arm64 exist?

NsdHSO commented 1 year ago

yes in my computer I have image

alanhamlett commented 1 year ago

Can you execute that program via command line with something like:

./wakatime-cli-darwin-amd64 --version

You can also delete that whole ~/.wakatime/ folder then restart vscode so it re-downloads wakatime-cli, which might fix things.

NsdHSO commented 1 year ago

I receive this ~/.wakatime/wakatime-cli-darwin-arm64 --version v1.73.0

alanhamlett commented 1 year ago

That looks like it's working. Let's try deleting ~/.wakatime/ folder and restarting vscode to see if that fixes it.

NsdHSO commented 1 year ago

I deleted it and i got this.ERR [Extension Host] [WakaTime][ERROR] Error: Command failed: /Users/../.wakatime/wakatime-cli-darwin-arm64 --entity /Users/../Documents/work/vue/vanilajs/index.html --plugin "vscode/1.77.3 vscode-wakatime/24.0.10" --lineno 38 --cursorpos 1 --lines-in-file 61 --alternate-project vanilajs --project-folder /Users/../Documents/work/vue/vanilajs

alanhamlett commented 1 year ago

That's very strange, because it ran from command line so vscode should also be able to run it. Can you jump on a Zoom call with me to debug it? Send me an email alan@wakatime.com and I'll send a Zoom meeting link.