mistgc / bili-live-chat Goto Github PK
View Code? Open in Web Editor NEWA bilibili streaming chat tool using TUI written in Rust.
A bilibili streaming chat tool using TUI written in Rust.
I try to put the config file outside the default path and use --config
to specify it. However, the program fails to parse the config path
$ RUST_BACKTRACE=1 cargo run --release -- --config config.yaml -d 23141761
Compiling bili-live-chat v0.1.0 (/home/ulysses/Git/bili-live-chat)
Finished release [optimized] target(s) in 4.43s
Running `target/release/bili-live-chat --config config.yaml -d 23141761`
thread 'main' panicked at 'Mismatch between definition and access of `config`. Could not downcast to TypeId { t: 15790872368546094999 }, need to downcast to TypeId { t: 1345200085165903335 }
', /home/ulysses/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/clap-4.1.1/src/parser/error.rs:30:9
stack backtrace:
0: rust_begin_unwind
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/core/src/panicking.rs:64:14
2: clap::parser::matches::arg_matches::ArgMatches::get_one
3: bili_live_chat::cli_init
4: tokio::runtime::park::CachedParkThread::block_on
5: tokio::runtime::runtime::Runtime::block_on
6: bili_live_chat::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
I try to comment out the path buf settings in --config
parser then the program can start normally.
.arg(
arg!(
-c --config <FILE> "Sets loading path for config file"
)
.required(false),
// .value_parser(value_parser!(PathBuf)),
)
This is a temporary solution, there must be some other ways to do the path check, but I am not familiar with Rust programming.
I can send message using bilibili_live_tui with same device and network in the same room but can't use this.
Also, some messages are lost occasionally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.