aw-client CLI ignores aw-client.toml host/port
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start in aw-client-rust/src/bin/aw-client.rs at run(), where host/port are resolved and port falls back to 5600/5666. Read the existing config handling and the toml dependency from #753, then mirror Python's [server]/[server-testing] hostname/port lookup in ~/.config/activitywatch/aw-client/aw-client.toml. Done means flags still win when present and the config supplies host/port otherwise. A linked pull request (#896) is open, so check it first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The aw-client CLI (aw-client-rust/src/bin/aw-client.rs) ignores the client config file. run() picks the port from --port or hardcodes 5600 (5666 with --testing), and the host comes only from --host. Python's aw-client reads hostname/port from [server] ([server-testing] with testing) in aw-client.toml, so a user with a custom port in their profile config gets the right server from Python and silently talks to the wrong one (or fails to connect) from the Rust CLI.
Expected from the code (not run end to end): set port = "5650" under [server] in ~/.config/activitywatch/aw-client/aw-client.toml, run aw-server-rust on 5650, then aw-client buckets: it connects to 5600.
#740 documented the current defaults, so this is a parity gap, not a regression. Possible fix: read aw-client.toml (the toml dependency from #753 is already there) for host/port when the flags are absent.
- Lenguaje dominante
- Rust
- Estrellas
- 322
- Forks
- 107
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 25
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-server-rust
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
ActivityWatch/aw-server-rust#883 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
ActivityWatch/aw-server-rust#872 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ActivityWatch/aw-server-rust#798 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
query: categorize rules can pin unbounded memory in the regex cache and run past query_timeoutPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
ActivityWatch/aw-server-rust#893 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
aw-sync status calls the daemon's live staging db orphaned and safe to deletePosiblemente ocupada @TimeToBuildBob la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
ActivityWatch/aw-server-rust#887 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ActivityWatch/aw-server-rust
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
kashsuks/Pinel#172 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
test_a_503_raises_unavailable_error fails on macOS about one run in sixPosiblemente ocupada @naman-modi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
userFRM/egui-charts#4168 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día