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

Wakatime is wrongly mixing different projects with same folder name #231

Closed inDeev closed 2 years ago

inDeev commented 2 years ago

In structure e.g.

... / projects / project1 / backend  (in PHPStorm aliased as BE_P1)
                          / frontend (in PHPStorm aliased as FE_P1)
               / project2 / backend  (in PHPStorm aliased as BE_P2)
                          / frontend (in PHPStorm aliased as FE_P2)

are all backends / frontends processed as one project. Although each have own renamed alias in PHPStorm.

alanhamlett commented 2 years ago

The plugin uses first the Git repo folder as the project name, the second the PHPStorm project if a Git folder isn't found. To overwrite that, use a project map in your ~/.wakatime.cfg which works based on the file path similar to your aliased projects in PHPStorm.

The reason we use Git first is to support PHPStorm with other editors on the same machine, that way all wakatime plugins use the same project names and you don't end up with the same project having two different names on your dashboard.

Rapid0s commented 1 year ago

I have the same problem all my projects are recorded as www since this is my project root. /projectnameXXXX/www .git folder resides inside www folder so even if "projectnameXXXX" is deference for every project all projects are recorded as "www"

I would imagine that there should be an option to pickup the name from the project name of the IDE like phpstorm.