wakatime / vscode-wakatime

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/vs-code
BSD 3-Clause "New" or "Revised" License
1.24k stars 137 forks source link

VSCode always asks for API key #324

Closed 0xcaffebabe closed 1 year ago

0xcaffebabe commented 1 year ago

Even regenerate new API key input, wakatime plugin still asks the API key.

No error log or warning log.

image

alanhamlett commented 1 year ago

If you enable debug mode what logs do you see in your ~/.wakatime.log file?

Here's how to enable debug mode: https://github.com/wakatime/vscode-wakatime#troubleshooting

0xcaffebabe commented 1 year ago

If you enable debug mode what logs do you see in your ~/.wakatime.log file?

Here's how to enable debug mode: https://github.com/wakatime/vscode-wakatime#troubleshooting

I see these warning:

image

is network problem?

alanhamlett commented 1 year ago

Yes, that means the plugin isn't able to download/update wakatime-cli from GitHub. Do you need a proxy to connect to the internet?

0xcaffebabe commented 1 year ago

Yes, that means the plugin isn't able to download/update wakatime-cli from GitHub. Do you need a proxy to connect to the internet?

I set the proxy in vscode, but it still cant download, has any way to manual to download 'wakatime-cli-windows-amd64' file and replace local file?

image

alanhamlett commented 1 year ago

has any way to manual to download 'wakatime-cli-windows-amd64' file and replace local file?

Yes, download this zip file then extract it and copy wakatime-cli-windows-amd64.exe to $HOME/.wakatime/wakatime-cli-windows-amd64.exe and $HOME/.wakatime/wakatime-cli.exe.

You can also try running this install script if you're not able to manually download and extract the zip.

alanhamlett commented 1 year ago

Let's discuss further in #362.