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

Panic when using nargo new #2182

Closed
jfecher opened this issue Aug 4, 2023 · 10 comments · Fixed by #2183
Closed

Panic when using nargo new #2182

jfecher opened this issue Aug 4, 2023 · 10 comments · Fixed by #2183
Assignees
Labels
bug Something isn't working

Comments

@jfecher
Copy link
Contributor

jfecher commented Aug 4, 2023

Aim

nargo new foo

Expected Behavior

a new directory to be created

Bug

The application panicked (crashed).
Message:  Command new: Argument names must be unique, but 'name' is in use by more than one argument or group
Location: /Users/.../.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/clap_builder-4.3.19/src/builder/debug_asserts.rs:86

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@jfecher jfecher added bug Something isn't working P-HIGH labels Aug 4, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Aug 4, 2023
@phated
Copy link
Contributor

phated commented Aug 4, 2023

This was broken by my rebase. Tom is going to submit a PR shortly

@TomAFrench
Copy link
Member

I can't reproduce this on 1c991d0.

@jfecher
Copy link
Contributor Author

jfecher commented Aug 4, 2023

I'm also on 1c991d0

@TomAFrench
Copy link
Member

Ah, this is only an issue on cargo run -- nargo new apparently. Fixing now

@phated
Copy link
Contributor

phated commented Aug 4, 2023

When running nargo executable, it was showing duplicate flags in help:

Options:
      --name <NAME>  Name of the package [default: package directory name]
      --name <NAME>  Name of the package [default: current directory name]
      --lib          Use a library template
      --bin          Use a binary template [default]
  -h, --help         Print help

@jfecher
Copy link
Contributor Author

jfecher commented Aug 4, 2023

Ah, this is only an issue on cargo run -- nargo new apparently. Fixing now

No, it is occurring on plain nargo new foo and any nargo new command for me

@phated
Copy link
Contributor

phated commented Aug 4, 2023

No, it is occurring on plain nargo new foo and any nargo new command for me

Doesn't happen on Mac, but we know where the fix is so it doesn't matter.

@jfecher
Copy link
Contributor Author

jfecher commented Aug 4, 2023

Doesn't happen on Mac, but we know where the fix is so it doesn't matter.

I'm on mac

@jfecher
Copy link
Contributor Author

jfecher commented Aug 4, 2023

I also can't run nargo new --help at all, that yields the same panic

@phated
Copy link
Contributor

phated commented Aug 4, 2023

Cool, so it's just a @jfecher problem. It's okay, fix incoming.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants