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

Unknown editor #1044

Closed
noahfraiture opened this issue Apr 17, 2024 · 1 comment
Closed

Unknown editor #1044

noahfraiture opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@noahfraiture
Copy link

Hello, I made an unofficial Helix wakatime plugin with a simple bash script

#!/bin/bash
echo "[$(date +%s)] wakatime send : $1" >>/home/noah/.config/helix/wakatime.log && 
wakatime-cli --entity "$1" --plugin "Helix/version Helix/version" --write 2>&1 >/dev/null &&

for i in {1..3}
do
echo "[$(date +%s)] wakatime send : $1. Iteration $i" >>/home/noah/.config/helix/wakatime.log && 
  wakatime-cli --entity "$1" --plugin "Helix/$(hx --version | cut -d' ' -f2) Helix-wakatime/$(hx --version | cut -d' ' -f2)" 2>&1 >/dev/null
  sleep 120
done

The problem is that on my dashboard the editor is unknown
image
How can I resolve this issue ?

  • OS: Linux
  • Platform: x86_64
@noahfraiture noahfraiture added the bug Something isn't working label Apr 17, 2024
@alanhamlett
Copy link
Member

This line is the problem:

wakatime-cli --entity "$1" --plugin "Helix/version Helix/version" --write 2>&1 >/dev/null

Instead of sending the real version it's sending version. If you send any number instead, like 0, or the real helix version like you do below then it detects Helix correctly:
--plugin "Helix/$(hx --version | cut -d' ' -f2) Helix-wakatime/$(hx --version | cut -d' ' -f2)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants