You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to compile bin project with @noir-lang/noir_wasm
Expected Behavior
Successful compilation :)
Bug
From my description in the discord channel:
The structure of the project is as follows:
There is a main project with main.nr that uses a library from git (lib without dependencies). When calling the compile function for the main.nr from the @noir-lang/noir_wasm package, a panic error occurs: files are expected to be added to the FileManager before reaching the compiler file_path: {path/to/the/lib.nr}", compiler/noirc_driver/src/lib.rs:140:28.
RuntimeError: unreachable
at wasm://wasm/026ce5be:wasm-function[10195]:0x6ef5f4
at wasm://wasm/026ce5be:wasm-function[9574]:0x6edc7a
at wasm://wasm/026ce5be:wasm-function[6201]:0x6a4b96
at wasm://wasm/026ce5be:wasm-function[6742]:0x6bda7d
at wasm://wasm/026ce5be:wasm-function[9966]:0x6eef4f
at wasm://wasm/026ce5be:wasm-function[7589]:0x6d6f89
at wasm://wasm/026ce5be:wasm-function[8169]:0x6e1c55
at noirc_driver::prepare_dependency::h8f5065e2e17d7a8a (wasm://wasm/026ce5be:wasm-function[4232]:0x60b6f4)
at noir_wasm::compile::add_noir_lib::h35775807b613d080 (wasm://wasm/026ce5be:wasm-function[6108]:0x69f987)
at compile (wasm://wasm/026ce5be:wasm-function[106]:0x138f66)
# Description
Github deps are directly added to the file manager, which causes them to
be missing the absolute path to the source file and only include the
extraction directory relative to the fm root directory. This caused the
path to the file to be formatted in an unexpected way and the compiler
to panic.
Resolves: #4355
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Aim
Trying to compile bin project with
@noir-lang/noir_wasm
Expected Behavior
Successful compilation :)
Bug
From my description in the discord channel:
The structure of the project is as follows:
There is a main project with main.nr that uses a library from git (lib without dependencies). When calling the
compile
function for themain.nr
from the@noir-lang/noir_wasm
package, a panic error occurs:files are expected to be added to the FileManager before reaching the compiler file_path:
{path/to/the/lib.nr}", compiler/noirc_driver/src/lib.rs:140:28.Version: noir_wasm:
^0.23.0
, nargo:0.23.0
.The code I'm trying to execute is:
More error log:
To Reproduce
npm i
node scripts/index.js
Project Impact
Blocker
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
Binary (
noirup
default)Nargo Version
nargo version = 0.23.0 noirc version = 0.23.0+5be9f9d7e2f39ca228df10e5a530474af0331704
NoirJS Version
"@noir-lang/noir_wasm": "^0.23.0"
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: