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.14k stars 167 forks source link

Wakatime don't work on IntelliJ #212

Closed thomasbnt closed 2 years ago

thomasbnt commented 2 years ago

In my idea.log :

WakaTime version : 3.1.14 IntelliJ version : 2021.3.3

WakaTime - Initializing WakaTime plugin v13.1.14 (https://wakatime.com/) 
2022-05-25 17:33:32,274 [   1784]   INFO - til.net.ssl.CertificateManager - Default SSL context initialized 
2022-05-25 17:33:32,279 [   1789]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
2022-05-25 17:33:32,281 [   1791]   INFO - cation.options.RegistryManager - Registry values changed by user: ide.balloon.shadow.size = 0 
2022-05-25 17:33:32,363 [   1873]   INFO - intellij.diagnostic.JitWatcher - JIT compilation state checking enabled 
2022-05-25 17:33:32,385 [   1895]   INFO - intellij.util.io.FilePageCache - lower=100; upper=500; buffer=10; max=5242 
2022-05-25 17:33:32,793 [   2303]   INFO -                       WakaTime - wakatime-cli is up to date. 
alanhamlett commented 2 years ago

what about after typing and saving a file inside IntelliJ? That should generate an error message in your idea.log.

thomasbnt commented 2 years ago

what about after typing and saving a file inside IntelliJ? That should generate an error message in your idea.log.

No errors in idea.log for Wakatime. Since the 21 May I don't have history. :c

alanhamlett commented 2 years ago

Can you enable debug mode and then see if logs show up in idea.log when editing files in IntelliJ?

thomasbnt commented 2 years ago

Can you enable debug mode and then see if logs show up in idea.log when editing files in IntelliJ?

Okay good catch, the key was updated, and I couldn't tell. No error message or ability to change the key to make it work properly. So I modified it directly in the .wakatime.cfg (I see that in README#troubleshooting)

So, across all IDE, Could it work now? (VSCode, IntelliJ)

Edit : YAY it's work! All history from 21 May and now is showed into the dashboard! ✨

alanhamlett commented 2 years ago

Yea, we need to handle wakatime-cli exit code 104 and prompt for an api key like the other wakatime plugins.