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.12k stars 162 forks source link

$WAKATIME_HOME/.wakatime.cfg not being loaded #110

Closed kusold closed 5 years ago

kusold commented 5 years ago

I was happy to see that #96 was merged in, but I'm still having issues.

I have WAKATIME_HOME set, but whenever I launch IntelliJ, I'm still being prompted for my Wakatime API token.

I think that the config isn't being loaded from the WAKATIME_HOME directory: https://github.com/wakatime/jetbrains-wakatime/blob/8696999d13137b09464108f1343ddc1d2a768350/src/com/wakatime/intellij/plugin/ConfigFile.java#L21-L22

alanhamlett commented 5 years ago

Looks like https://github.com/wakatime/jetbrains-wakatime/pull/96#issuecomment-430774148 fixed it?

kusold commented 5 years ago

@alanhamlett I still am being prompted for my Wakatime config. The lines I referenced should probably be doing something long the lines of:

private static File configFile = new File(Dependencies.getResourceLocation(), WakaTime.CONFIG);

instead of hard coding user.home.

alanhamlett commented 5 years ago

Thanks for clarifying... fixed in today's release v9.3.0 with 17d5aa3f399b209cca4eaa28f72631686ac2a5b8.

SonodaKazuto commented 1 year ago

Hi, it seems this problem had been solved but it still occurs on my computer. Does anyone also have this problem. I'm now using Intellij Idea EAP on latest Intel MacBook Pro.