just updating with one dep in core, all
just updating with one dep in core, all failed due to snapshot updating , is there any way to skip previous snapshot and directly get updated snapshot,

14 Replies
@Seve can i update these inline test

yea you can probably remove that line entirely, seems flaky
@Seve

yea generally w/ XY you can remove the snapshot lines
we don't want to be snapshotting XY in most cases
@Seve what we can do for this one

create a reproduction in the calculate-packing repo
you'll need to use the test to get the input problem
you may want to call
await circuit.renderUntilSettled()
to get a better stack trace
idk if it'll help that much but it's a bit hard to see where the error is occurring within core
@Techmannih i think it's probably within core/lib/components/primitive-components/Group/Group_doInitialPcbLayoutPack.ts
but hard to say@Seve first i m trying to add repro for this in calculate-packing. how to get pack input for this one
look at Group_doInitialSchematicTraceRender.ts at how we do if (debug.enabled) { global.debugOutputs.add(...) } and implement that for the pack input
then whenever you do
DEBUG=Group_doInitialPcbLayoutPack
it'll output JSON files with the packInput@Seve not able to get😫

Did you set DEBUG
Make sure its set, find the relevant debug object
Yes I have set this, still unable to generate
@Seve Can I get a quick video when you have a chance May I miss something.
@Techmannih maybe this documentation can help: https://github.com/tscircuit/core/blob/main/docs/DEVELOPMENT.md#getting-inputs-for-algorithms
GitHub
core/docs/DEVELOPMENT.md at main · tscircuit/core
Create electronics with Typescript and React. Compile Typescript to Circuit JSON - tscircuit/core