wakatime / jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
https://wakatime.com/intellij-idea
BSD 3-Clause "New" or "Revised" License
1.15k stars 168 forks source link

Records absolute path instead of path from content root #301

Open devurandom opened 2 days ago

devurandom commented 2 days ago

When working on a Clojure project (deps.edn, with Cursive plugin), WakaTime shows me absolute paths on https://wakatime.com/projects/[REDACTED] in the tooltips, instead of what IntelliJ seems to call "Path From Content Root" or "Path From Repository Root" (right click on a file in the "Project" side bar, "Copy Path/Reference..."). Thus the records will be different for different people working on the same project, when moving the files around new records will be started, and the filenames in the tooltips are long and inconvenient.

gandarez commented 2 days ago

@devurandom you are right, the balloons shows the filename sorted by time spent whereas the tooltip shows the full filepath of each balloon. Can you attach an screenschot of the the problem you mentioned when different people start working on the same project?

alanhamlett commented 2 days ago

That's why heartbeats have a project_root_count attribute, which is the count of slashes needed to reach the project's root path. We use that when comparing absolute paths between team members.