Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to correctly copypaste API keys into the Kate UI #29

Open
wizzardx opened this issue Feb 4, 2024 · 1 comment
Open

Unable to correctly copypaste API keys into the Kate UI #29

wizzardx opened this issue Feb 4, 2024 · 1 comment

Comments

@wizzardx
Copy link

wizzardx commented Feb 4, 2024

In Kate, after installing the Plugin, when I go to Settings -> Configure Wakatime, and then want to copypaste in a wakatime key, eg somethig like this:

waka_f4dce14c-c338-11ee-a99c-532fd2ab51f8 (41 characters long)

Then the UI cuts it off over here:

waka_f4dce14c-c338-11ee-a99c-532fd2a (36 characters)

After saving that in the UI (with no warnings/errors that it was cut off or that it is an invalid key), attempting to save my edited code in Kate, leads to a popup error like this:

Error
WakaTime could not authenticate the last request. Verify your API key setting.

@alanhamlett
Copy link
Contributor

It's because the plugin is only saving api key when it's 36 chars long:

if (newApiKey.size() == 36) {

Until fixed, try removing the waka_ prefix and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants