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 mode keep stealing focus when it fails #66

Closed contrun closed 1 year ago

contrun commented 1 year ago

If wakatime mode failed to setup, it would continuously retry. The thing baffles me is that every time wakatime fails, it would steal my editor's focus. That is to say, I can't edit my files any more. I think it would be better if wakatime would silently fail and have some sort of back-off strategy.

Wakatime mode steals focus while outputting the following messages.

error in process sentinel: cond: WakaTime Error (112) Make sure this command runs in a Terminal: "wakatime-cli" --entity /home/e/.local/share/chezmoi/Makefile --plugin "emacs-wakatime/1.0.2" --time 1664073120.67 --key f3ef8822-7af0-4efe-9677-90e9ad577777
error in process sentinel: WakaTime Error (112) Make sure this command runs in a Terminal: "wakatime-cli" --entity /home/e/.local/share/chezmoi/Makefile --plugin "emacs-wakatime/1.0.2" --time 1664073120.67 --key f3ef8822-7af0-4efe-9677-90e9ad57777
Borwe commented 1 year ago

I believe this was fixed by this