Can't start watcher, weird channel errors? Data is 000
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- vim
- Área
- documentation
Línea de trabajo
Comienza con el ejemplo de configuración de README mostrado en el informe y compáralo con el tratamiento que hace Vim de los valores numéricos y de cadena. Revisa la validación de AWStart mencionada y el comportamiento de channel-error; después, haz inequívoca la configuración de host esperada y verifica que la configuración documentada funcione o proporcione información útil cuando no lo haga.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I finally decided to activitywatch after only knowing about this project for 4 years.
I installed this plugin and needed to copy some of the configuration to my vimrc. Spoiler alert: I did this: let g:aw_apiurl_host = 127.0.0.1.
Fast forward two hours of me learning lots about the rest API of aw-server, jobs and vim channels, trying to debug why curl -s http://127001/api/0/buckets/<hostname>/ wasn't working only to realise if you actually put let g:aw_apiurl_host = 127.0.0.1 into your vimrc then you're gonna have a BAD time. 127.0.0.1 actually concatenates that into 127001 and doesn't throw an error like how I would it expect it to do. So that's a learning.
My own debug logs of this, the "channel data" is somehow 000?

Not sure what can be done with this, I tried to add some validation:
function! AWStart()
" :h types here
if type(s:apiurl_host) != 1
echoerr "g:apiurl_host must be a string!"
return
endif
if type(s:apiurl_port) != 0
echoerr "g:apiurl_host must be a number!"
return
endif
call s:CreateBucket()
endfunc
But since it's a string it passed my ad-hoc validation.
Naturally, I can blame the documentation: he said sarcastically, please don't hurt me

Not sure what to make of this issue, but it hopefully makes someone that is having the same issue that might be searching github issues to find me in 2021 writing a post mortem 3 minutes to 1 am at a rainy wednesday night/morning.
Feel free to do whatever to this issue.
- Lenguaje dominante
- Vim Script
- Estrellas
- 124
- Forks
- 15
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ActivityWatch/aw-watcher-vim
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
That watcher is still valid?Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ActivityWatch/aw-watcher-vim#31 · 2 comentarios · 3 reacciones ·
-
Issue with neovim+alacrittyAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
ActivityWatch/aw-watcher-vim#20 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
ActivityWatch/aw-watcher-vim#15 · 2 comentarios ·
Todos los issues de ActivityWatch/aw-watcher-vim
Issues similares
-
enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Anatomik5/codetovideo#8 ·
-
good first issue type: docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
mine-cetinkaya-rundel/quarto-tdg#66 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
NatLabRockies/openstudio-mcp#285 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100