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

Jetbrains Wakatime not posting stats #240

Closed david-kariuki closed 1 year ago

david-kariuki commented 1 year ago

Hi there, I am using Intellij Ultimate on Fedora Linux 37. This issue was also persistent on 36. I have wakatime integration on my chrome too. My problem is, the wakatime on my Intellij IDE does not post stats to my wakatime profile. I only see stats from my chrome browser. It has been this way for the last 2 months. On VSCode, the experience is much better, I see my stats on the dashboard, unlike Intellij. Do you have such an issue on your tracker?

alanhamlett commented 1 year ago

Haven't seen this before. Please look for WakaTime related logs in your idea.log file so we can figure out what's going wrong:

https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files

nuth-vireak commented 1 year ago
2022-12-13 01:28:44,639 [ 105432]   INFO - #c.i.i.p.DynamicPlugins - Plugin com.wakatime.intellij.plugin is not unload-safe because it declares components

I also have the same issue in Inteliij

image

I use WakaTime in Github Profile Readme also stop working

david-kariuki commented 1 year ago

How do I send/attach these logs privately?

alanhamlett commented 1 year ago

@david-kariuki you can send the logs to support@wakatime.com

@nuth-vireak please create an issue on the github profile readme's repo since we don't maintain those.

david-kariuki commented 1 year ago

Alright. I have sent a zip

On Wed, Dec 14, 2022 at 1:22 PM Alan Hamlett @.***> wrote:

@david-kariuki https://github.com/david-kariuki you can send the logs to @.***

@nuth-vireak https://github.com/nuth-vireak please create an issue on the github profile readme's repo since we don't maintain those.

— Reply to this email directly, view it on GitHub https://github.com/wakatime/jetbrains-wakatime/issues/240#issuecomment-1350806736, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADL7MPF7VYC3I7Q7GMGSYM3WNGNWVANCNFSM6AAAAAAS2DQFFU . You are receiving this because you were mentioned.Message ID: @.***>

alanhamlett commented 1 year ago

Got the logs. I'm seeing WakaTime - Command finished with return value: 102 which means there was a networking error when trying to sync with the api. Can you check your ~/.wakatime.log file for errors?

Your vscode is running on the same machine? It's strange that would work but not IntelliJ because they use the same wakatime-cli binary (~/.wakatime/wakatime-cli-linux-amd64) to sync with the api.

david-kariuki commented 1 year ago

VS code works perfectly

alanhamlett commented 1 year ago

Can you email your ~/.wakatime.log file?

david-kariuki commented 1 year ago

Hi, @alanhamlett , I have mailed you the wakatime.log and .cfg files

alanhamlett commented 1 year ago

I see the problem, you have the example (invalid) proxy defined in your ~/.wakatime.cfg file. You should delete all those example lines and only leave two lines in that cfg file:

[settings]
api_key = XXXX

Replacing XXXX with your real secret api key.

Normally you shouldn't need to edit ~/.wakatime.cfg manually unless you want to add advanced configs. Your IDE would create that cfg file the first time you install the wakatime plugin.

david-kariuki commented 1 year ago

Thank you @alanhamlett This worked for me. Great work.