Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dependencies in noir wasm don't get std library #1244

Closed
1 task
Tracked by #28 ...
sirasistant opened this issue Apr 28, 2023 · 1 comment · Fixed by #1245 or #2650
Closed
1 task
Tracked by #28 ...

Dependencies in noir wasm don't get std library #1244

sirasistant opened this issue Apr 28, 2023 · 1 comment · Fixed by #1245 or #2650
Assignees
Labels
bug Something isn't working

Comments

@sirasistant
Copy link
Contributor

sirasistant commented Apr 28, 2023

Aim

To compile a dependency with noir_wasm that uses the std library.

Expected behavior

The dependency should have access to the std library.

Bug

Instead, the compiler crashes

panicked at 'error reporter: could not find crate std', crates/noirc_frontend/src/hir/resolution/import.rs:199:28

Stack:

Error
    at module.exports.__wbg_new_abda76e883ba8a5f (/mnt/user-data/alvaro/aztec3-packages/yarn-project/node_modules/@noir-lang/noir_wasm/nodejs/noir_wasm.js:212:17)
    at wasm://wasm/00f971da:wasm-function[1910]:0x2c0557
    at wasm://wasm/00f971da:wasm-function[1210]:0x2a05ef
    at wasm://wasm/00f971da:wasm-function[1577]:0x2b8472
    at wasm://wasm/00f971da:wasm-function[235]:0x188092
    at wasm://wasm/00f971da:wasm-function[1478]:0x2ae78e
    at wasm://wasm/00f971da:wasm-function[283]:0x198208
    at wasm://wasm/00f971da:wasm-function[29]:0x6185a
    at wasm://wasm/00f971da:wasm-function[29]:0x5f05c
    at wasm://wasm/00f971da:wasm-function[29]:0x5ef2b

To reproduce

  1. write a resolver that allows to resolve dependencies
  2. create a library that uses the std lib
  3. compiler will crash

Installation method

None

Nargo version

No response

@noir-lang/noir_wasm version

No response

@noir-lang/barretenberg version

No response

@noir-lang/aztec_backend version

No response

Additional context

No response

Submission Checklist

  • Once I hit submit, I will assign this issue to the Project Board with the appropriate tags.
@sirasistant sirasistant added the bug Something isn't working label Apr 28, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Apr 28, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Apr 28, 2023
@kobyhallx kobyhallx reopened this Sep 7, 2023
@kobyhallx
Copy link
Contributor

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Archived in project
3 participants