Open nth-commit opened 1 year ago
Note: using the exact same setup, I can confirm it works using WSL.
Does the rust circom work on Windows? I could see them failing on CRLF line endings or something.
I can try and look into that.
I can confirm it's not a line endings thing though, as I use LF line endings. And also, I tested using WSL in the same local repo. and WSL uses the exact same filesystem.
Might be a windows path thing? Either in Node or in circom?
I copied the circom args passed through WASI verbatim;
circom C:\\dev\\circom-starter\\circuits\\division.circom --r1cs --wat --wasm --sym -o
C:\\dev\\circom-starter\\circuits
template instances: 1
non-linear constraints: 1
linear constraints: 0
public inputs: 1
public outputs: 1
private inputs: 3
private outputs: 0
wires: 6
labels: 8
Written successfully: C:\\dev\\circom-starter\\circuits\division.r1cs
Written successfully: C:\\dev\\circom-starter\\circuits\division.sym
Written successfully: C:\\dev\\circom-starter\\circuits\division_js\division.wat
Written successfully: C:\\dev\\circom-starter\\circuits\division_js\division.wasm
Everything went okay, circom safe
Thanks for testing! The wasm build uses a custom patch that hasn't been thoroughly tested, available at https://github.com/iden3/circom/pull/46/files
I wonder if there's a bug in that.
Just tested - that branch of circom works too.
Appreciate you checking. I don't have Windows to debug this further. Maybe someone else can dig in 🤔
I would have a go myself but my knowledge of the area is so limited, it would most likely take me a long time.
If you have the appetite for getting this fixed, and can't find anyone else, I'm happy to jump on a screen share and pair for a little bit.
Hey @nth-commit, I ran into the same exact issue. Is there any other solution that you have found than using WSL?
Ah, sorry @tmonty12, I've been meaning to dive in again but haven't had the chance yet. Best of luck!
Ran into the same exact issue. Identical setup works perfectly on a mac machine, but get the same "Invalid input file" when running on my windows machine.
Like I said, I don't have a windows machine. Additionally, people would rather airdrop farm than contribute to my gitcoin, so I have no incentive to work on this.
I haven't done a deep investigation into why, just reporting first in case anyone has any insights or any other Windows users are out there going insane wondering what they've done wrong.
Reproduction
yarn circom:dev --show-stack-traces