Skip to content

[Bug]: Relative --out path makes validation skip ERC after netlist export #92

Backlog

Description

@aviraj1805

Describe the bug

I first hit this while checking a TMP117 daughterboard. Passing a relative directory to --out causes project intake to report a missing netlist and skip ERC. I reproduced the same error with the bundled ESP32 example.

Steps to reproduce

From the repository root with the CLI installed and KiCad on PATH, run:

copper-pilot validate examples/001_esp32/esp32 --only sch.erc --no-cache --out reports

Expected behavior

The CLI resolves reports relative to the directory where I invoked it, reads the exported netlist, and runs ERC.

Actual behavior

intake.project reports kicad-cli sch export netlist did not write netlist.xml. The CLI skips sch.erc and exits with code 1. Using an absolute path for --out works around the problem.

Environment

Windows 11, CopperPilot CLI 1.0.5 (editable dev install, commit 4f46ea7), Python 3.13.17, KiCad 10.0.8.

Proposed fix

#91 resolves the output directory before KiCad changes its working directory and adds a regression test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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