Closed levone1 closed 2 years ago
... changed extension to txt for Github keymap.txt
@inoshy I see from lines 60-72 there are seemingly similar command types but with different syntaxes, (some with (:command ) and some just (command)...
Replaced all four files one-by-one, and same error each time... Maybe something in my env?
This looks like an issue where joshuto
can't find your config files and is defaulting to the default config file.
Then the default config file has an error in it.
I've made changes to fix the default config not being valid, but it appears its something to do with your set up and joshuto not finding your config files.
joshuto
looks for configs in the following order:
$JOSHUTO_CONFIG_HOME
environment variable/joshuto
$HOME/.config/joshuto
./config
this is for debugging only and should never be used.Hope this helps and let me know if you have anymore issues!
Not sure why the pull request automatically closed this issue
ok. That fixed it - working now... Thanks
Using latest ver. on SailfishOS. Installs from crates.io or from building on-device w/ no problem, but won't open. Gives:
"thread 'main' panicked at 'called
Result::unwrap()
on anErr
value : JoshutoError { _kind: TomlDeError (Error { inner: ErrorInner { kind: NewlineInString, line: Some(25), co l: 13, at: Some(1035), message: "", key: [] } }), _cause: "Failed to p arse TOML" }', src/config/keymap/ke ymapping.rs:100:38"Line 100 says:
"AppKeyMapping::default_res().expect()"
Context is:
"impl TomlConfigFile for AppKeyMapping { fn get_config(file_name: &str) -> Self { parse_to_config_file::<AppKeyMappingCrude, AppKeyMapping>(file_name) .unwrap_or_else(Self::default) } }
impl std::default::Default for AppKeyMapping { fn default() -> Self { AppKeyMapping::default_res().expect() } }"
I'm not familiar with Rust code, so not sure if the error is there, or if that just indicates an error somewhere else...
Thanks