Closed tuxuser closed 2 years ago
I don't get the issue with the current master
, which has 219949e
merged in. I do get an error because the file device isn't supported currently.
As for https://github.com/tuxuser/hyperion.rs/commit/f4efcc3ae1dd290c30b74296391d280a4763035a this error "makes sense" if you've changed the schema. TOML is picky when it comes to ordering tables and dictionaries, which may require reordering fields and/or using custom serialization logic (see https://github.com/alexcrichton/toml-rs/commit/79fc6c3fcbc2e77d25e18d5ef5bcd160ff9c900a)
Okay thx!
A stub FileDevice implementation can be found here btw: https://github.com/tuxuser/hyperion.rs/tree/feature/device%2Ffile
You should be able to verify the issue that way.
I can't reproduce it with the master branch and the DB you provided (it's using the updated schema), but this seems to fix the issue with the schema update:
diff --git a/src/models/instance.rs b/src/models/instance.rs
index 38a6c4f3..7f374bfb 100644
--- a/src/models/instance.rs
+++ b/src/models/instance.rs
@@ -422,11 +422,11 @@ impl Default for MatrixLedConfig {
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, Validate)]
#[serde(default, rename_all = "camelCase", deny_unknown_fields)]
pub struct LedConfig {
+ pub led_blacklist: Vec<u32>,
#[validate]
pub classic: ClassicLedConfig,
#[validate]
pub matrix: MatrixLedConfig,
- pub led_blacklist: Vec<u32>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Validate)]
That indeed fixed it, cheers ;)
This error when trying to read config from db and also expecting human readble TOML output via
--dump-config
.Using both commits:
commandline invocation:
./target/debug/hyperiond --dump-config -d ~/.hyperion/db/hyperion.db
Output:
DB: hyperion_db.zip