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

Doesn't work in IntelliJ 2022.1.2 #225

Closed ViiictorXD closed 2 years ago

ViiictorXD commented 2 years ago

I installed the WakaTime plugin in IntelliJ, when I restart the IDE, it doesn't ask me to put the API key, I already tried to create the file manually putting the API key and it still didn't work.

alanhamlett commented 2 years ago

Possible duplicate of #223.

  1. Do you have a Tools -> WakaTime Settings menu inside your IntelliJ?
  2. Are there any errors related to WakaTime in your idea.log file?
  3. Are there any recent errors in your ~/.wakatime.log file?
besscroft commented 2 years ago

image

{"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later due to api error: failed making request to \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": proxyconnect tcp: EOF","now":"2022-06-21T10:15:48+08:00","version":"v1.49.0"} {"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later due to api error: failed making request to \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": proxyconnect tcp: EOF","now":"2022-06-21T10:21:48+08:00","version":"v1.49.0"} {"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later because currently rate limited: won't send heartbeat due to backoff","now":"2022-06-21T10:22:48+08:00","version":"v1.49.0"}

alanhamlett commented 2 years ago

@besscroft that looks like a proxy error. Did you mean to use https://localhost:7890 instead of http?

Also check out this recent comment.

besscroft commented 2 years ago

@alanhamlett Thank you for your reply! I cleared proxy settings, the common proxy configuration I use in idea and vscode, vacode works normally, idea does not work, I think there may be other reasons.

alanhamlett commented 2 years ago

IntelliJ can detect a proxy from the IntelliJ settings and also from ~/.wakatime.cfg, while vscode only uses ~/.wakatime.cfg. Maybe your IntelliJ still has a proxy configured. Try excluding *wakatime.com from your IntelliJ proxy settings?

besscroft commented 2 years ago

Thank you for your reply! I double checked and cleared the proxy.

alanhamlett commented 2 years ago

After clearing the proxy it works, or still not working?

besscroft commented 2 years ago

image Thank you for your reply, it's working fine now.

heyline commented 1 year ago

this solved my problem