wakatime / wakatime-mode

Emacs plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/emacs
267 stars 41 forks source link

WakaTime Error (1) #70

Open iamkarlson opened 1 year ago

iamkarlson commented 1 year ago

Installing wakatime-mode in emacs prompts with numerous errors in the log, constantly stealing focus.

error in process sentinel: cond: WakaTime Error (1) Make sure this command runs in a Terminal: /usr/bin/wakatime-cli --entity /home/iamkarlson/braindb/20230531204421-emacs.org --plugin "emacs-wakatime/1.0.2" --time 1686075729.47
error in process sentinel: WakaTime Error (1) Make sure this command runs in a Terminal: /usr/bin/wakatime-cli --entity /home/iamkarlson/braindb/20230531204421-emacs.org --plugin "emacs-wakatime/1.0.2" --time 1686075729.47
Auto-saving...
error in process sentinel: cond: WakaTime Error (1) Make sure this command runs in a Terminal: /usr/bin/wakatime-cli --entity /home/iamkarlson/braindb/20230531204421-emacs.org --plugin "emacs-wakatime/1.0.2" --time 1686075763.86
error in process sentinel: WakaTime Error (1) Make sure this command runs in a Terminal: /usr/bin/wakatime-cli --entity /home/iamkarlson/braindb/20230531204421-emacs.org --plugin "emacs-wakatime/1.0.2" --time 1686075763.86
Quit
error in process sentinel: cond: WakaTime Error (1) Make sure this command runs in a Terminal: /usr/bin/wakatime-cli --entity /home/iamkarlson/braindb/20230531204421-emacs.org --plugin "emacs-wakatime/1.0.2" --time 1686075977.22
error in process sentinel: WakaTime Error (1) Make sure this command runs in a Terminal: /usr/bin/wakatime-cli --entity /home/iamkarlson/braindb/20230531204421-emacs.org --plugin "emacs-wakatime/1.0.2" --time 1686075977.22
Quit

Running from the shell gives return code 1. Neither one from emacs or from shell gives any indication on what's an actual problem. It would be great to have some error handling message like if it's an API error, or configuration error, or something else.

Similarly to #41, however my error is quite legitimate, and I believe it's due to lacking an API key. If the package could tell me so I would spent less time debugging it all.

BWbwchen commented 1 year ago

I got same error. Have you found the solution yet? Thx.

BWbwchen commented 1 year ago

Hi,

I solve it by write my own .wakatime.cfg file