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.25k stars 140 forks source link

Allow use of global wakatime-cli #177

Closed notquiteamonad closed 3 years ago

notquiteamonad commented 3 years ago

As a NixOS user, the binary of wakatime-cli that this extension installs doesn't work as the binary would need patching to work with NixOS's library structure. We have a patched version already for NixOS so this could probably be fixed just by checking for a global installation first and using that (or having the option to use that)

alanhamlett commented 3 years ago

For now, you can set the config standalone = false in your ~/.wakatime.cfg that uses the source code Python version of wakatime-cli and should work with Nix. It's not a good solution for long term tho.

notquiteamonad commented 3 years ago

Thanks :) That does indeed work for me. I've put together a WIP implementation that accepts a global installation of the binary which provides an alternative for systems without python installed. It needs some cleaning up from its current state and I'm not sure if I've done it in a way which fits with your goals for the API but if you think it's worth pursuing I'll be happy to see it through.

notquiteamonad commented 3 years ago

@alanhamlett Sorry - forgot I had marked my PR as WIP, but that should all be ready for review now.