wakatime / vim-wakatime

Vim plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vim
BSD 3-Clause "New" or "Revised" License
1.04k stars 70 forks source link

Error Sending heartbeats #126

Closed opti21 closed 2 years ago

opti21 commented 2 years ago

Error detected while processing function 68_SendHeartbeats: line 71: E475: Invalid value for argument cmd: 'C:/Users/opti/.wakatime/wakatime-cli.exe' is not executable

opti21 commented 2 years ago

Just had to remove the ~/.wakatime folder and reinstall

alanhamlett commented 2 years ago

If it happens again, please share the contents of your .wakatime folder since this might still be a bug.

WanderLanz commented 2 years ago

@alanhamlett Ooh fun I managed to get this as well, "$HOME.wakatime\" has only "vim_shared_state" and "wakatime-cli-windows-amd64.exe", so maybe some weird windows thing deleting the "wakatime-cli.exe" symlink or not creating the symlink correctly with Plug or Packer or what have you.

seems like it doesn't have anything to do with wakatime plugin. God knows what happened. The error is just misleading, that's about the only thing I think can be fixed.

wleoncio commented 1 year ago

Removing $HOME/.wakatime wasn't enough on a particular system I use. I also had to manually change the file permissions to give myself rwx access:

chmod 771 $HOME/.wakatime

BTW, perhaps you can get away with lower permissions for group and others (my local machine has 751 on that folder, for example).

luchaoqi commented 1 year ago

Same error here. After removing .wakatime, you may still need to create the folder manually to solve the privilege problem: mkdir .wakatime