Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

thread 'main' panicked at 'failed to retrieve cli value', src/libcore/option.rs:1038:5 #4

Open
digiwizkid opened this issue Apr 19, 2019 · 3 comments

Comments

@digiwizkid
Copy link

I am getting this issue while cargo run
thread 'main' panicked at 'failed to retrieve cli value', src/libcore/option.rs:1038:5

@kristianpaul
Copy link

$ vixi something.txt
failed to load the configuration: No such file or directory (os error 2)
$ touch something.txt
$ vixi something.txt
failed to load the configuration: No such file or directory (os error 2)

Probably related

@Peltoche
Copy link
Owner

Peltoche commented Apr 26, 2019

Hi @digiwizkid , thanks for the report!

You need to specify a file at in order to start it. This error handling needs a lot of work. I will handle this asap.

Hi @kristianpaul,

Your error is due to the fact that at the moment the keyboard configuration file at ~/.config/vixi/keyboard.vim is required to start, you can find an example inside the here.

That said, the binary already contains the default configurations so the configuration shouldn't be required. I will fix this ASAP.

@axionbuster
Copy link

try

$ ./vixi file=abc.txt

If you use file=, it will be OK.

See source code in main.rs, master, lines 83-7:

    let matches = cli::build().get_matches();

    let file_path = matches
        .value_of("file")
        .expect("failed to retrieve cli value");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants