feat: add --debug-compile-stdin to read main.nr from STDIN for testing#8253
Merged
michaeljklein merged 10 commits intomasterfrom Apr 30, 2025
Merged
feat: add --debug-compile-stdin to read main.nr from STDIN for testing#8253michaeljklein merged 10 commits intomasterfrom
--debug-compile-stdin to read main.nr from STDIN for testing#8253michaeljklein merged 10 commits intomasterfrom
Conversation
vezenovm
reviewed
Apr 28, 2025
Collaborator
|
I'm trying it like this: and I get this error: I think it's erroring before reaching the new conditional. |
Contributor
Author
|
@asterite where does With ❯ cat src/main.nr | $NARGO compile --debug-compile-stdin
❯ echo "fn main() {}" | $NARGO compile --debug-compile-stdin
❯ echo "fn main() {}" | $NARGO compile --debug-compile-stdin --print-acir
Compiled ACIR for main (unoptimized):
func 0
current witness index : _0
private parameters indices : []
public parameters indices : []
return value indices : [] |
Collaborator
|
Huh, now it's working. I did I guess nevermind then, sorry! |
Contributor
Author
|
@asterite all good |
vezenovm
approved these changes
Apr 30, 2025
Co-authored-by: Maxim Vezenov <mvezenov@gmail.com>
github-merge-queue bot
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
May 1, 2025
Automated pull of nightly from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat: add `--debug-compile-stdin` to read `main.nr` from `STDIN` for testing (noir-lang/noir#8253) feat: better error message on unicode whitespace that isn't ascii whitespace (noir-lang/noir#8295) chore: update `quicksort` from iterative `noir_sort` version (noir-lang/noir#7348) fix: use correct meta attribute names in contract custom attributes (noir-lang/noir#8273) feat: `nargo expand` to show code after macro expansions (noir-lang/noir#7613) feat: allow specifying fuzz-related dirs when invoking `nargo test` (noir-lang/noir#8293) chore: redo typo PR by ciaranightingale (noir-lang/noir#8292) chore: Extend the bug list with issues found by the AST fuzzer (noir-lang/noir#8285) fix: don't disallow writing to memory after passing it to brillig (noir-lang/noir#8276) chore: test against zkpassport rsa lib (noir-lang/noir#8278) feat: omit element size array for more array types (noir-lang/noir#8257) chore: refactor array handling in ACIRgen (noir-lang/noir#8256) chore: document cast (noir-lang/noir#8268) END_COMMIT_OVERRIDE --------- Co-authored-by: AztecBot <tech@aztecprotocol.com> Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Problem*
Prerequisite of #7991
Summary*
main.nrfrom STDIN when--debug-compile-stdinis enabledNargo.tomlAdditional Context
Not testing here because I plan to add tests in a follow up PR, but I could add a smoke test
Documentation*
Check one:
PR Checklist*
cargo fmton default settings.