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

Error reporter adds a redundant .nr extension to stack trace #2654

Closed
TomAFrench opened this issue Sep 12, 2023 · 0 comments · Fixed by #2655
Closed

Error reporter adds a redundant .nr extension to stack trace #2654

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

Comments

@TomAFrench
Copy link
Member

Aim

I'm compiling Noir programs which contain errors.

Expected Behavior

I should get the output

error: Argument is not constant
  ┌─ /home/tom/Programming/noir/tooling/nargo_cli/tests/compile_failure/assert_constant_fail/src/main.nr:9:5
  │
9 │     assert_constant(non_constant);
  │     -----------------------------
  │
  = Call stack:
    1. /home/tom/Programming/noir/tooling/nargo_cli/tests/compile_failure/assert_constant_fail/src/main.nr:4:5
    2. /home/tom/Programming/noir/tooling/nargo_cli/tests/compile_failure/assert_constant_fail/src/main.nr:9:5

Error: Aborting due to 1 previous error

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

Bug

I instead get the output

error: Argument is not constant
  ┌─ /home/tom/Programming/noir/tooling/nargo_cli/tests/compile_failure/assert_constant_fail/src/main.nr:9:5
  │
9 │     assert_constant(non_constant);
  │     -----------------------------
  │
  = Call stack:
    1. /home/tom/Programming/noir/tooling/nargo_cli/tests/compile_failure/assert_constant_fail/src/main.nr.nr:4:5
    2. /home/tom/Programming/noir/tooling/nargo_cli/tests/compile_failure/assert_constant_fail/src/main.nr.nr:9:5

Error: Aborting due to 1 previous error

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

To Reproduce

  1. Compile assert_constant_fail

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

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