aw-client CLI ignores aw-client.toml host/port
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 322
- Fork
- 107
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ActivityWatch/aw-server-rust
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ActivityWatch/aw-server-rust#883 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ActivityWatch/aw-server-rust#872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ActivityWatch/aw-server-rust#798 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
query: categorize rules can pin unbounded memory in the regex cache and run past query_timeoutCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
ActivityWatch/aw-server-rust#893 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
aw-sync status calls the daemon's live staging db orphaned and safe to deleteCó thể đã có người làm @TimeToBuildBob đã nhận hôm nay. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
ActivityWatch/aw-server-rust#887 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ActivityWatch/aw-server-rust
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
libracoder/kiri#935 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Node's `index.d.ts` declares no constructor for `VirtxError`, so TypeScript rejects its argumentsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kashsuks/Pinel#172 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày