T
tscircuit5mo ago
Seve

got this today, why are the errors being

got this today, why are the errors being shown stacked?
No description
2 Replies
Seve
SeveOP5mo ago
repro:
import { sel } from "tscircuit"

export default () => (
<board>
<chip
footprint="pinrow7"
name="J1"
pinLabels={{
pin1: "VBUS",
pin2: "DP",
pin3: "DM",
pin4: "CC1",
pin5: "CC2",
pin6: "SHLD",
pin7: "GND",
}}
schPinArrangement={{
rightSide: {
direction: "top-to-bottom",
pins: ["VBUS", "DP", "DM", "CC1", "CC2", "SHLD", "GND"],
},
}}
/>
<resistor
resistance="22"
name="R9"
connections={{
pin1: sel.J1.DP,
pin2: sel.net.DP,
}}
/>
<resistor
resistance="5.1k"
name="R1"
connections={{ pin2: sel.net.GND, pin1: sel.J1.CC0 }}
/>
<resistor
resistance="5.1k"
name="R2"
footprint="0402"
connections={{
pin1: sel.J1.CC2,
pin2: sel.net.GND,
}}
/>
</board>
)
import { sel } from "tscircuit"

export default () => (
<board>
<chip
footprint="pinrow7"
name="J1"
pinLabels={{
pin1: "VBUS",
pin2: "DP",
pin3: "DM",
pin4: "CC1",
pin5: "CC2",
pin6: "SHLD",
pin7: "GND",
}}
schPinArrangement={{
rightSide: {
direction: "top-to-bottom",
pins: ["VBUS", "DP", "DM", "CC1", "CC2", "SHLD", "GND"],
},
}}
/>
<resistor
resistance="22"
name="R9"
connections={{
pin1: sel.J1.DP,
pin2: sel.net.DP,
}}
/>
<resistor
resistance="5.1k"
name="R1"
connections={{ pin2: sel.net.GND, pin1: sel.J1.CC0 }}
/>
<resistor
resistance="5.1k"
name="R2"
footprint="0402"
connections={{
pin1: sel.J1.CC2,
pin2: sel.net.GND,
}}
/>
</board>
)
Rishabh
Rishabh5mo ago
I remember creating an issue for this https://github.com/tscircuit/runframe/issues/576
GitHub
Bad alignment and the error should be shown as a list · Issue #576...
The non failing errors are also being shown, need better alignment for the list and not stacked. @seveibar What could be a better ui format to display list of errors?

Did you find this page helpful?