wakatime-cli icon indicating copy to clipboard operation
wakatime-cli copied to clipboard

Files on OneDrive are not tracked

Open florianbussmann opened this issue 3 years ago • 8 comments

When working with files stored on OneDrive they won't send a heartbeat ony my system.

~/.wakatime.log says file would not exist

{"now": "2021/04/09 22:02:16 +0200", "version": "13.0.7", "plugin": "word/16.0 word-wakatime/2.1.0", "time": 1617998530.322588, "caller": "wakatime\main.py", "lineno": 68, "is_write": true, "file": "https://d.docs.live.net//Dokumente/.docx", "level": "DEBUG", "message": "File does not exist; ignoring this heartbeat."}

florianbussmann avatar Apr 09 '21 20:04 florianbussmann

Same problem here. Previous similar issues include https://github.com/wakatime/vscode-wakatime/issues/67 and https://github.com/wakatime/sublime-wakatime/issues/93. Dealing with Onedrive may be (obviously) harder than SSH and FTP files though.

EtaoinWu avatar May 24 '21 15:05 EtaoinWu

Related to #623, which added support for ssh:// and sftp:// remote files.

alanhamlett avatar Jan 07 '22 16:01 alanhamlett

Which IDE @florianbussmann and @EtaoinWu are using to edit remote file on One Drive? And what were the steps you took to open them locally?

I've tried a spreadsheet on my personal One Drive account and when opened locally it's a HTML file with some embeded scripts and tags.

gandarez avatar Jan 07 '22 16:01 gandarez

@gandarez I used Microsoft Word with the wakatime Office Add-In (2.1.0) and there you can edit documents on OneDrive remotely

florianbussmann avatar Jan 07 '22 16:01 florianbussmann

@gandarez Same here; WakaTime Office Add-ins. At the time of report I believe I was using 2.1.0. In Word (and other MS Office components) you can open an Onedrive remote file and edit it directly. So the easiest way to reproduce:

  1. Have MS Word and WakaTime Office Add-ins installed.
  2. Create an empty file, save it to your onedrive with arbitrary name. You might need to restart Word and reopen the file.
  3. Do some edits to the file (it should trigger Word's autosave, or you can save manually) and WakaTime CLI should report that the "file does not exist".

EtaoinWu avatar Jan 08 '22 03:01 EtaoinWu

Is this fixed now that wakatime-cli supports reading files over http/https?

alanhamlett avatar Jun 19 '22 10:06 alanhamlett

Is this fixed now that wakatime-cli supports reading files over http/https?

I re-installed the plugin for Word, and the problem is still here. Apparently the word plugin still ships with "version": "13.0.7" of wakatime-cli, instead of "version":"v1.49.0" as my vscode plugin does.

EtaoinWu avatar Jun 19 '22 13:06 EtaoinWu

Office plugins are still using legacy python cli. It should be fixed soon.

gandarez avatar Jun 20 '22 19:06 gandarez

It should be fine as Office plugins are already using new wakatime-cli.

gandarez avatar Sep 14 '23 17:09 gandarez