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.21k stars 134 forks source link

WakaTime: Unknown Error (2); Check your /Users/rolle/.wakatime.log file for more details #308

Closed ronilaukkarinen closed 1 year ago

ronilaukkarinen commented 1 year ago

Just noticed no time is tracking:

Screen-Shot-2022-10-04-10-59-29 50

When hovering:

WakaTime: Unknown Error (2); Check your /Users/rolle/.wakatime.log file for more details.

I have debug on but tail -f $HOME/.wakatime.log doesn't show anything new.

When I start coding the status bar shows "0 mins" and then just changes back to "WakaTime Error".

What's up?

alanhamlett commented 1 year ago

What's your vscode dev console say?

ronilaukkarinen commented 1 year ago

Good question, I wonder why didn't put it to the issue in the first place.

workbench.desktop.main.js:sourcemap:87 [Extension Host] [WakaTime][ERROR] Error: Command failed: /opt/homebrew/bin/wakatime --entity /Users/rolle/Projects/dude/content/themes/dude/sass/gutenberg/blocks/_title-content-columns.scss --plugin "vscode/1.71.2 vscode-wakatime/20.0.0" --lineno 23 --cursorpos 46 --lines-in-file 152 --alternate-project dude --project-folder /Users/rolle/Projects/dude usage: wakatime [-h] [--entity FILE] [--key API_KEY] [--write] [--plugin PLUGIN] [--time time] [--lineno INT] [--cursorpos INT] [--entity-type ENTITY_TYPE] [--category CATEGORY] [--proxy PROXY] [--no-ssl-verify] [--ssl-certs-file FILE] [--project PROJECT] [--alternate-project PROJECT] [--language LANGUAGE] [--local-file FILE] [--hostname HOSTNAME] [--disable-offline] [--hide-file-names] [--hide-project-names] [--hide-branch-names] [--exclude PATH] [--exclude-unknown-project] [--include PATH] [--include-only-with-project-file] [--extra-heartbeats] [--log-file FILE] [--api-url URL] [--timeout SECONDS] [--sync-offline-activity AMOUNT] [--today] [--config FILE] [--config-section SECTION] [--config-read KEY] [--config-write KEY VALUE] [--verbose] [--version] wakatime: error: unrecognized arguments: --lines-in-file 152 --project-folder /Users/rolle/Projects/dude

y @ workbench.desktop.main.js:sourcemap:87 workbench.desktop.main.js:sourcemap:603 ERR [Extension Host] [WakaTime][ERROR] Unknown Error (2); Check your /Users/rolle/.wakatime.log file for more details workbench.desktop.main.js:sourcemap:87 [Extension Host] [WakaTime][ERROR] Unknown Error (2); Check your /Users/rolle/.wakatime.log file for more details

alanhamlett commented 1 year ago

This should fix it:

brew uninstall wakatime

ronilaukkarinen commented 1 year ago

This should fix it:

brew uninstall wakatime

Well:

$ ~ brew uninstall wakatime
Error: No available formula with the name "wakatime". Did you mean wakatime-cli?
$ ~ brew uninstall wakatime-cli
Error: No such keg: /opt/homebrew/Cellar/wakatime-cli
alanhamlett commented 1 year ago

Try sudo rm -f /opt/homebrew/bin/wakatime

ronilaukkarinen commented 1 year ago

So far so good. Thanks.