wakatime / wakatime-mode

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

Recover files over tramp throws an error. #75

Open markgdawson opened 9 months ago

markgdawson commented 9 months ago

When I try to run recover-this-file on a file open over tramp I get an error. The file recovery mechanism becomes unusable over TRAMP.

**Debugger entered--Lisp error: (coding-system-error auto-save-coding)
  #<subr make-process>(:name "Shell" :buffer #<buffer  *WakaTime messages*-80023> :command ("/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4"))
  apply(#<subr make-process> (:name "Shell" :buffer #<buffer  *WakaTime messages*-80023> :command ("/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4")))
  make-process--with-editor-process-filter(#<subr make-process> :name "Shell" :buffer #<buffer  *WakaTime messages*-80023> :command ("/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4"))
  apply(make-process--with-editor-process-filter #<subr make-process> (:name "Shell" :buffer #<buffer  *WakaTime messages*-80023> :command ("/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4")))
  make-process(:name "Shell" :buffer #<buffer  *WakaTime messages*-80023> :command ("/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4"))
  apply(make-process (:name "Shell" :buffer #<buffer  *WakaTime messages*-80023> :command ("/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4")))
  start-process("Shell" #<buffer  *WakaTime messages*-80023> "/bin/sh" "-c" "~/.wakatime/wakatime-cli --entity /scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH> --plugin \"emacs-wakatime/1.0.2\" --time 1707913622.48 --key waka_de2ffd06-acf7-4d35-ae95-88d36e93f2c4")
  wakatime-call(nil)
  wakatime-ping()
  erase-buffer()
  recover-file("/scp\\:<REDACTED HOST NAME>\\:/<REDACTED REMOTE FILE PATH>")
  recover-this-file()
  funcall-interactively(recover-this-file)
  call-interactively(recover-this-file record nil)
  command-execute(recover-this-file record)
LemonBreezes commented 1 month ago

I am also having issues with wakatime-mode over Tramp.

error in process sentinel: cond: WakaTime Error (1) Make sure this command runs in a Terminal: wakatime-cli --entity /sudo\:root\@localhost\:/etc/portage/package.env --plugin "emacs-wakatime/1.0.2" --time 1729605167.93 --key KEY
error in process sentinel: WakaTime Error (1) Make sure this command runs in a Terminal: wakatime-cli --entity /sudo\:root\@localhost\:/etc/portage/package.env --plugin "emacs-wakatime/1.0.2" --time 1729605167.93 --key KEY