muety / wakapi

📊 A minimalist, self-hosted WakaTime-compatible backend for coding statistics
https://wakapi.dev
MIT License
2.77k stars 173 forks source link

Editors not recognized #712

Closed crnobog69 closed 3 days ago

crnobog69 commented 4 days ago

I installed Wakapi and I am self-hosting it. VS Code and IntelliJ IDEA are recognized but Cursor and Micro are not. Is Curosor reconized as VS Code? Same is when api_url is https://wakapi.dev/api. Wakatime recognizes Cursor.

Wakapi(2.12.2) Arch Linux

muety commented 4 days ago

Thanks for reporting. Can you please post the user agent (user_agent column inside heartbeats table in your database) of exemplary heartbeats sent for Cursor and Micro? Would help me debugging this a lot!

crnobog69 commented 4 days ago

Thanks for reporting. Can you please post the user agent (user_agent column inside heartbeats table in your database) of exemplary heartbeats sent for Cursor and Micro? Would help me debugging this a lot!

` "user_agent" varchar(255)

I used sqlitebrowser Browse Data on table heartbeats and then under user_agent

` wakatime/v1.105.0 (linux-6.11.9-zen1-1-zen-unknown) go1.23.3 intellijidea/2024.3 intellijidea-wakatime/15.0.3

` wakatime/v1.105.0 (linux-6.11.9-zen1-1-zen-unknown) go1.23.3 vscode/1.95.3 vscode-wakatime/24.8.0

this?

I am sorry, I don't use SQL that often so I am not sure what do you mean

crnobog69 commented 4 days ago

and there is this

` wakatime/v1.105.0 (linux-6.11.8-zen1-2-zen-unknown) go1.23.3 cursor/1.93.1 vscode-wakatime/24.8.0

There is no Micro in the format I sent before. Wakatime doesn't recognize Micro either, even though I have a plugin for it.

muety commented 3 days ago

Alright, had a look at this. Apparently, these are two different problems. Cursor not being recognized as an editor was a bug on our end, which I just pushed a fix for. The micro editor seems to work fine, though. However, make sure that you have version 1.0.6 of micro-wakatime installed (need to use the "git clone" installation method), as 1.0.5 is not compatible anymore.

crnobog69 commented 3 days ago

Okay, Thank you.

muety commented 3 days ago

Opened an upstream PR to update micro's wakatime plugin reference to the latest version, see https://github.com/micro-editor/plugin-channel/pull/110.