You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let cli = App::new("Editor").version(VERSION).author("Author: Gabriel <https://github.com/iamgabrielsoft>").about("A Rust Editor").arg(Arg::with_name("files").multiple(true).takes_value(true).help(r#"The files you wish to edit You can also provide the line number to jump to by doing this: file.txt:100 (This will go to line 100 in file.txt)"#,),).arg(Arg::with_name("readonly").long("readonly").short("r").takes_value(false).required(false).help("Enable read only mode"),).arg(Arg::with_name("config").long("config").short("c").takes_value(true)// .default_value(&config_dir).help("The directory of the config file"),);
Steps to reproduce the bug with the above code
I ran the code multiple times and i still get the same error
Actual Behaviour
Caused by:
failed to load source for dependency clap
Caused by:
Unable to update registry crates-io
Caused by:
failed to fetch https://github.com/rust-lang/crates.io-index
Caused by:
failed to authenticate when downloading repository: git@github.com:rust-lang/crates.io-index
attempted ssh-agent authentication, but no usernames succeeded: git
Looks like something weird is going on between cargo, your git configuration, and/or your SSH configuration. I'd recommend reaching out to one of the user forums to get help debugging that issue.
Please complete the following tasks
Rust Version
1.61.0
Clap Version
2.33.0
Minimal reproducible code
Steps to reproduce the bug with the above code
I ran the code multiple times and i still get the same error
Actual Behaviour
Caused by:
failed to load source for dependency
clap
Caused by:
Unable to update registry
crates-io
Caused by:
failed to fetch
https://github.com/rust-lang/crates.io-index
Caused by:
failed to authenticate when downloading repository: git@github.com:rust-lang/crates.io-index
git
if the git CLI succeeds then
net.git-fetch-with-cli
may help herehttps://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
no authentication available
Expected Behaviour
it should run smoothly without any error response from the compiler
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: