Skip to content

ZkDocGenerator Cannot Handle Spaces in Path #6

@un-focused

Description

@un-focused

Here is the output:

yarn run v1.22.15
$ cd zkdocs-backend && yarn hardhat build-deploy-schema --schema ./test/test_schemas/tax_bracket.json --network localhost && cd .. && ./cp_script.sh tax_bracket ./zkdocs-backend/test/test_schemas/tax_bracket.json
$ '/Users/unfocused/Documents/Git Folders/Projects/zkdocs/node_modules/.bin/hardhat' build-deploy-schema --schema ./test/test_schemas/tax_bracket.json --network localhost
CACHE_DIR: /Users/unfocused/Documents/Git Folders/Projects/zkdocs/zkdocs-backend/circuit_cache
An unexpected error occurred:

Error: Command failed: circom /Users/unfocused/Documents/Git Folders/Projects/zkdocs/zkdocs-backend/circuit_cache/circuit.circom --sym --wasm --r1cs -o /Users/unfocused/Documents/Git Folders/Projects/zkdocs/zkdocs-backend/circuit_cache
error: Found argument 'Folders/Projects/zkdocs/zkdocs-backend/circuit_cache/circuit.circom' which wasn't expected, or isn't valid in this context

USAGE:
    circom [FLAGS] [OPTIONS] [--] [input]

For more information try --help

    at ChildProcess.exithandler (node:child_process:387:12)
    at ChildProcess.emit (node:events:527:28)
    at ChildProcess.emit (node:domain:475:12)
    at maybeClose (node:internal/child_process:1090:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:527:28)
    at Socket.emit (node:domain:475:12)
    at Pipe.<anonymous> (node:net:715:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'circom /Users/unfocused/Documents/Git Folders/Projects/zkdocs/zkdocs-backend/circuit_cache/circuit.circom --sym --wasm --r1cs -o /Users/unfocused/Documents/Git Folders/Projects/zkdocs/zkdocs-backend/circuit_cache',
  stdout: '',
  stderr: "error: Found argument 'Folders/Projects/zkdocs/zkdocs-backend/circuit_cache/circuit.circom' which wasn't expected, or isn't valid in this context\n" +
    '\n' +
    'USAGE:\n' +
    '    circom [FLAGS] [OPTIONS] [--] [input]\n' +
    '\n' +
    'For more information try --help\n'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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