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

Nargo does not display which line causes circuit execution to fail #2642

Closed
TomAFrench opened this issue Sep 11, 2023 · 0 comments · Fixed by #2643
Closed

Nargo does not display which line causes circuit execution to fail #2642

TomAFrench opened this issue Sep 11, 2023 · 0 comments · Fixed by #2643
Assignees
Labels
bug Something isn't working

Comments

@TomAFrench
Copy link
Member

Aim

I want to see which line is failing when a constraint is broken when executing my Noir code

Expected Behavior

I should get a nice error like:

error: Failed constraint
  ┌─ /home/tom/Programming/noir/crates/nargo_cli/tests/execution_success/1_mul/src/main:8:12
  │
8 │     assert(x == z);
  │            ------
  │
  = Call stack:
    1. /home/tom/Programming/noir/crates/nargo_cli/tests/execution_success/1_mul/src/main.nr:8:12

Error: Cannot satisfy constraint

Location:
    crates/nargo_cli/src/cli/mod.rs:90:5

Bug

I only get the output

Error: Cannot satisfy constraint

Location:
    crates/nargo_cli/src/cli/mod.rs:90:5

To Reproduce

  1. Change the inputs to 1_mul so that the assertion fails.
  2. run nargo execute on 1_mul.

Installation Method

Compiled from source

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@TomAFrench TomAFrench added the bug Something isn't working label Sep 11, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Sep 11, 2023
@TomAFrench TomAFrench self-assigned this Sep 11, 2023
@TomAFrench TomAFrench moved this from 📋 Backlog to 🏗 In progress in Noir Sep 11, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Noir Sep 11, 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.

1 participant