-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support remote files over network drive, ftp, or ssh #67
Comments
For the record I tested making a symlink and open VS Code from that, but it still resolves to the true network path, even if Explorer operates from the symlinked path.
File does not exist; ignoring this heartbeat. |
Related to wakatime/wakatime#72 and wakatime/wakatime-mode#27. |
That's right, WakaTime uses Python's |
Added network drive files support for Windows in v10.4.0. If you restart VS Code it will update wakatime-cli to the latest version. Let me know if it works! |
Thanks for attempting a fix. I gave it another shot and checked the logs. Seems the cli is at version 10.4.1 so it has updated, but I'm still getting the same error:
|
Happening here as well. Windows 10 x64 1909, vscode 1.45.1, extension version 4.0.0. {
"now": "2020/05/18 18:25:18 +0200",
"version": "13.0.7",
"plugin": "vscode/1.45.1 vscode-wakatime/4.0.0",
"time": 1589819118.2597008,
"caller": "wakatime\\main.py",
"lineno": 68,
"file": "\\\\192.168.0.222\\htdocs\\supersecretfolder\\supersecretfile.php",
"level": "DEBUG",
"message": "File does not exist; ignoring this heartbeat."
} EDITLittle update, apparently, this only happens when accessing paths via their ip addresses instead of their hostname. To give you the best explaination I can offer, my previous log was on access to the following file paths (both leading to the same result in
When instead i'm editing the same file from the following paths (again, both giving the same result):
Here, again, Z: is mapped as network folder for {
"now": "2020/05/18 18:41:06 +0200",
"version": "13.0.7",
"plugin": "vscode/1.45.1 vscode-wakatime/4.0.0",
"time": 1589820066.6484404,
"caller": "wakatime\\api.py",
"lineno": 45,
"is_write": true,
"file": "\\\\CFSERVER\\htdocs\\supersecretfolder\\supersecretfile.php",
"level": "DEBUG",
"message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"
} I hope this helps in some way! If you need further clarifications or want me to test something else I'll do so as soon as I am able to. |
Has this improved now that we're using the new Go wakatime-cli? |
I'm not affected by this issue anymore, so I can't confirm. But with the way VS code handles SSH connections these days it's not been a problem for me. |
Related to wakatime/wakatime-cli#623, which added support for |
I'm using an SMB share to work in Windows from a virtual Linux VM. Turned on debugging and looking in the developer console and the log file to see why none of my time is being tracked (I've put in line breaks for readability).
VS Code dev console:
.wakatime.log:
It seems that it detects that the file does not exist
\\192.168.0.10\myShare\myProject\myFile.sh
. But that path does work when entering it into Explorer, so I assume that Wakatime is not able to interpret a network path like Explorer does.How can I get around this issue? Is there a way to ignore 'file does not exist' and track it anyway?
The text was updated successfully, but these errors were encountered: