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 crashes when adding a method to an unsupported type #6651

Open
signorecello opened this issue Nov 29, 2024 · 0 comments
Open

Nargo crashes when adding a method to an unsupported type #6651

signorecello opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@signorecello
Copy link
Contributor

Aim

I was trying to write code and made something illegal:

type BN = BigNum<3, 254, BN254_Fq_Params>;
impl OneZero for BN {
.... etc

Expected Behavior

Expected the LSP to tell me about the error. I can see it in the console:

Message:  �[36minternal error: entered unreachable code: Cannot add a method to the unsupported type 'BN'�[0m
Location: �[35mcompiler/noirc_frontend/src/node_interner.rs�[0m:�[35m1411�[0m

This is a bug. We may have already fixed this in newer versions of Nargo so try searching for similar issues at https://github.com/noir-lang/noir/issues/.

Bug

It shouldn't crash because of the error, simply tell me and keep going.

To Reproduce

  1. Try the above code
  2. See the LSP crash

Workaround

None

Workaround Description

No response

Additional Context

No response

Project Impact

None

Blocker Context

No response

Nargo Version

No response

NoirJS Version

No response

Proving Backend Tooling & Version

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

@signorecello signorecello added the bug Something isn't working label Nov 29, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Nov 29, 2024
@asterite asterite changed the title LSP crashes when adding a method to an unsupported type Nargo crashes when adding a method to an unsupported type Dec 2, 2024
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
Status: 📋 Backlog
Development

No branches or pull requests

1 participant