Skip to content

Doesn't work on Windows, "invalid input file" #78

@nth-commit

Description

@nth-commit

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

  1. Clone https://github.com/0xPARC/circom-starter, follow getting started guide
  2. Run yarn circom:dev --show-stack-traces
yarn run v1.22.19
$ hardhat circom --deterministic --debug --verbose --show-stack-traces
  hardhat:core:config Loading Hardhat config from C:\dev\circom-starter\hardhat.config.js +0ms
  hardhat:core:hre Creating HardhatRuntimeEnvironment +0ms
  hardhat:core:hre Running task circom +1ms
  hardhat-circom:info Using cached Powers of Tau file at C:\dev\circom-starter\artifacts\circom\hermezptau.blob.core.windows.net_ptau_powersOfTau28_hez_final_15.ptau +0ms
  hardhat-circom:error invalid input file
  hardhat-circom:error previous errors were found +0ms
Error in plugin hardhat-circom: Unable to compile circuit named: division

HardhatPluginError: Unable to compile circuit named: division
    at SimpleTaskDefinition.circomCompile [as action] (C:\dev\circom-starter\node_modules\hardhat-circom\dist\index.js:478:19)
    at Environment._runTaskDefinition (C:\dev\circom-starter\node_modules\hardhat\src\internal\core\runtime-environment.ts:308:14)
    at Environment.run (C:\dev\circom-starter\node_modules\hardhat\src\internal\core\runtime-environment.ts:156:14)
    at main (C:\dev\circom-starter\node_modules\hardhat\src\internal\cli\cli.ts:272:7)

    Caused by: Error: invalid input file
    previous errors were found
        at Union.writeSync (C:\dev\circom-starter\node_modules\hardhat-circom\dist\index.js:276:31)
        at C:\dev\circom-starter\node_modules\circom2\vendor\wasi.js:561:38
        at Array.forEach (<anonymous>)
        at C:\dev\circom-starter\node_modules\circom2\vendor\wasi.js:558:40
        at C:\dev\circom-starter\node_modules\circom2\vendor\wasi.js:82:20
        at null.<anonymous> (wasm://wasm/01a7a0d2:1:3696999)
        at null.<anonymous> (wasm://wasm/01a7a0d2:1:3678595)
        at null.<anonymous> (wasm://wasm/01a7a0d2:1:3655123)
        at null.<anonymous> (wasm://wasm/01a7a0d2:1:3766550)
        at null.<anonymous> (wasm://wasm/01a7a0d2:1:3652391)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions