Skip to content
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

Complete path to edited source code file should not be sent to wakatime #31

Open
wizzardx opened this issue Feb 4, 2024 · 1 comment

Comments

@wizzardx
Copy link

wizzardx commented Feb 4, 2024

If I have a project over here:

/tmp/x/y/z/my_project

And within there, I edit test.py.

Then over in the Wakatime dashboard, it shows correctly that I spent time in the "my_project" project. However, time is logged over under this file within that project:

/tmp/x/y/z/my_project/test.py

But rather it should be relative to the project root directory (the one with .git in it), so in this case, just test.py

That would make things more consistent with other IDE integrations into Wakatime.

PS: It looks like there is a wakatime config file option for only sending relative paths, documented over here:

https://wakatime.com/faq#relative-paths

I've tried using that setting, but it looks like it has no effect in this plugin.

(to be more precise - it looks like what's immediately visible in the dashboard is a relative path, but if you mouse over the path, you see the complete path to the file that was edited).

@alanhamlett
Copy link
Contributor

It's because this plugin sends heartbeats directly to the API without using wakatime-cli. We should instead send the current file to wakatime-cli to fix this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants