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.24k stars 137 forks source link

WakaTime on SSH remote didn't send heartbeats #312

Closed clouedoc closed 1 year ago

clouedoc commented 1 year ago

Hello,

I've done the necessary configuration steps; the heartbeats seem to be sent, but nothing shows up on my dashboard except work that is not done on a remote.

By writing this bug report, I have solved my problem I think that the resolution steps might be worth a mention in the README.md

Configuration

  "remote.extensionKind": {
    "WakaTime.vscode-wakatime": ["ui"],
    "GitHub.copilot": ["ui"]
  },

I also had this entry relating to WakaTime:

  "remote.SSH.defaultExtensions": [
    "gitpod.gitpod-remote-ssh",
    "streetsidesoftware.code-spell-checker",
    "WakaTime.vscode-wakatime"
  ],

Resolution

  1. Remove WakaTime from remote.SSH.defaultExtensions
  2. Uninstall WakaTime
  3. Reload window
  4. Install WakaTime (it will do a local installation)
  5. If prompted, update WakaTime

Thanks for supporting the SSH Remote use-case (I just wish I could restore my data for the last two days 😢)

gandarez commented 1 year ago

Hi @clouedoc thanks for sharing your thoughts, however it's already documented here.

clouedoc commented 1 year ago

Hello @gandarez

Installation instructions are well documented, but I have found myself in an edge case that I believe other people will also encounter. Adding a few tips on the README.md would have allowed me to collect my two past days of data.

At least, a few words indicating the following would be useful to people who will have the same issue as me:

clouedoc commented 1 year ago

Even with following the steos that I've shared above, I have been encountering the same problem.

However, I believe that I found a fix:

  1. On the client machine, delete ~/.wakatime
  2. On the remote machine, delete ~/.wakatime
  3. Set WakaTime API key

My heartbeats seem to be sent for real this time.