Skip to content

[BUG]: using wildcard path on Windows CLI results in "Error: internal error: ." #2812

@stewartadam

Description

@stewartadam

Issue Type

Runtime

Context (Environment, Version, Language)

Input Format: JSON Schema
Output Language: Typescript

CLI, npm, or app.quicktype.io: npm
Version: 23.2.6

Description

Using a wildcard for the --src parameter results in an immediate internal error.

Input Data

echo '' > foo.json
echo '' > bar.json
npx quicktype --src-lang schema --lang typescript --just-types --src *.json

Yields Error: Internal error: .

Expected Behaviour / Output

Output Typescript

Current Behaviour / Output

Crashes with error message

Steps to Reproduce

  1. Open a PowerShell prompt
  2. Run commands above to generate empty JSON files
  3. Run a quicktype command with a wildcard argument like '--src *.json'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions