Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread 'main' panicked at 'called Option::unwrap() on a None value', src/main.rs:57:55 #77

Open
juhp opened this issue Feb 20, 2021 · 0 comments

Comments

@juhp
Copy link

juhp commented Feb 20, 2021

silver init panics immediately for me:

$ source <(silver init)
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:57:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Because I don't have config file or ?? Anyway I think it would be nice to handle this error.

inferiorhumanorgans pushed a commit to inferiorhumanorgans/silver that referenced this issue Mar 31, 2022
- The current config file layout cannot be serialized to TOML with serde,
  so switch to YAML.  This necessitates updating to an unreleased
  version of confy.  See: reujab#85, reujab#77, toml-rs/toml-rs#145,
  toml-rs/toml-rs#407.
- Print out the location of the default config file upon creation see:
  fixes reujab#73, fixes reujab#78.
- Set the default left prompt to *something* so the user isn't left
  scratching their head.
- Change the default icon set to Unicode so that this is usable out of
  the box with as few dependencies as possible.
inferiorhumanorgans pushed a commit to inferiorhumanorgans/silver that referenced this issue Mar 31, 2022
- The current config file layout cannot be serialized to TOML with serde,
  so switch to YAML.  This necessitates updating to an unreleased
  version of confy.  See: reujab#85, reujab#77, toml-rs/toml-rs#145,
  and toml-rs/toml-rs#407.
- Print out the location of the default config file upon creation see:
  fixes reujab#73, fixes reujab#78.
- Set the default left prompt to *something* so the user isn't left
  scratching their head.
- Change the default icon set to Unicode so that this is usable out of
  the box with as few dependencies as possible.
inferiorhumanorgans pushed a commit to inferiorhumanorgans/silver that referenced this issue Mar 31, 2022
- The current config file layout cannot be serialized to TOML with serde,
  so switch to YAML.  This necessitates updating to an unreleased
  version of confy.  See: reujab#85, reujab#77, toml-rs/toml-rs#145,
  and toml-rs/toml-rs#407.
- Print out the location of the default config file upon creation fixes:
  reujab#73 and reujab#78.
- Set the default left prompt to *something* so the user isn't left
  scratching their head.
- Change the default icon set to Unicode so that this is usable out of
  the box with as few dependencies as possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant