Repository navigation
repro: KiCad exports omit hierarchical child schematic files - #5218
GokulPandi-M wants to merge 3 commits into
Conversation
imrishabh18
left a comment
There was a problem hiding this comment.
Can you recheck the deps version? Also the tscircuit.com export. Cause I have seen the hierarchical file being present in our export
for sure i'll check again and let you know |
i have updated my board and dep to current version of tscircuit and i still have the issue @imrishabh18 |
imrishabh18
left a comment
There was a problem hiding this comment.
Stack a PR with the fix, will approve both together and then merge
|
the fix pr #5236 i couldnt stack it , i dont access for that!! @imrishabh18 |
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
Motivation
Multi-sheet tscircuit designs export a KiCad root schematic that correctly names and references every child sheet, but the CLI writes only that root
.kicad_schfile. The referenced child schematic files are missing from both the KiCad ZIP and the generated project directory.KiCad therefore shows the expected sheet names in the hierarchy panel, while opening a child sheet produces a blank, unsaved page because its
Sheetfilecannot be found. This makes an existing schematic look empty and prevents users from reviewing or editing the exported sheets.Issue
Reproduction
The fixture declares
powerandcontrolschematic sheets and assigns one component to each. The CLI integration tests cover both affected paths:tsci export index.tsx -f kicad_ziptsci build index.tsx --kicad-projectIn both outputs, the root schematic references
power.kicad_schandcontrol.kicad_sch, but neither child file is written. The converter already exposes the complete hierarchy throughgetOutputFiles(); the CLI paths currently use onlygetOutputString(), which returns the root file.