noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
821 stars 177 forks source link

`nargo fmt` incorrectly formats and breaks imports #5304

Closed benesjan closed 1 week ago

benesjan commented 1 week ago

Aim

I tried to format noir-protocol-circuits.

Expected Behavior

It formats it instead of breaking it.

Bug

See the change in the screenshot

image

To Reproduce

1. 2. 3. 4.

Project Impact

Nice-to-have

Impact Context

No response

Workaround

None

Workaround Description

No response

Additional Context

No response

Installation Method

None

Nargo Version

nargo version = 0.30.0 noirc version = 0.30.0+109624f127dc8da6d9d963b3af9250237be0d4e4 (git version hash: 109624f127dc8da6d9d963b3af9250237be0d4e4, is dirty: false)

NoirJS Version

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

TomAFrench commented 1 week ago

Duplicate of https://github.com/noir-lang/noir/issues/5299