← Back to community index
# support·Active

astrimid - I can't seem to change the netlabel ...

I can't seem to change the netlabel schX/schY anymore. Have a compilation error: source failed to create component error:Could not create netlabel. Invalid props for netlabel (unnamed): connection (net and connection cannot be provided together) Details: Props: { "net": "GND", "c

Started by astrimidJul 14, 202616 messages

Discussion

Last active 2 hours ago · plain text
astrimidoriginal post
I can't seem to change the netlabel schX/schY anymore. Have a compilation error: ` source_failed_to_create_component_error:Could not create netlabel. Invalid props for netlabel (unnamed): connection (net and connection cannot be provided together) Details: Props: { "net": "GND", "connection": ".R205 .pin1", "schX": 0, "schY": 0, "schRotation": 90, "anchorSide": "top", "componentType": "netlabel", "error": { "componentName": "netlabel", "originalProps": { "net": "GND", "connection": ".R205 .pin1", "schX": 0, "schY": 0, "schRotation": 90, "anchorSide": "top" }, "formattedError": { "_errors": [], "connection": { "_errors": [ "net and connection cannot be provided together" ] } } }, "type": "unknown", "error_type": "source_failed_to_create_component_error", "message": "Invalid props for netlabel (unnamed): connection (net and connection cannot be provided together)", "pcbX": 0, "pcbY": 0 } `
astrimid
Repro: https://tscircuit.com/editor?template=blank-circuit-board#data:application/gzip;base64,H4sIAJ19VmoAA7WV62rbMBiGb0X4VwuNqqMPZSl0yRhlrOuSLWzMwziO2ng4UrDVLSPk3vc5xnHaesNlOH/Cd5D0vK8O3jqpXqgNtsXGuXDUZm1yixKjC4tuzS+V38Z2OTLa5iZDQ3RyioaX6CTUCL2amzhfoNw82FTfj9MinmdqgYpk+T7efMrjREHOxjpRwy0lhOwuQ12Og5FaWaTjlRqGztubceigc6jVlSyeq6wKEYK4bqpTwKZVYlOjoYInjEiE16mmTQcgfBluye4o/voknhgb76fYBk0eWJcmn6aLEsyadT3jgS5XBUgy+YGu0jBhlDSrV0173aFzlL8zxq7zVJeCiCDsEW/D8wgTZNAnMur4AGVLq9FdblaVH5TUfiBrIAUW4sbl/c6d77cOotNQO2fOKtYPcTZQi9QW+EdhNByEbdkYOrCmWgFZEq0zWGaltC1C5wJ9qxbfd5U/6FQZ7Ap4A9XQuYV9AYKzpp7AULWvHgaV6U2ZGXjYPbSW2d9lVmJW53ZHE+UqA6CfKrKmWusejuA6quevGusB/wSU3QEF9toARa+A1OsOyLBoA6T9OgjHuysgwf5zQIF5f4AfGeFXnQHJczqK/f7oZhGf8e72+ZhKl0vP4y5xufBb7suAcgxF4VGoe4Hv93h9ZtHs9ecpi96MPrzrLoIyzFjgkcB1BZD6LmtTIbEvA06YoES4NAhknzKuRtH4ejp6gQZ4lgj3GWWBDKiQbsvDMKA+Zpy4RDDJuXSZ16eE8Si6vukuwMWcgLUe+C+kx+hfThIPKGPS9+A0SSJ7vKbwjIiXPCOtfvP/+VaUf99DvXN2fwDUliBdDQkAAA==
Seve
yea we're no longer allowing providing both net and connection
astrimid
Worked without errors yesterday I believe
Seve
yea i did a PR to error on it
astrimid
Hm. So there's no way to change where the GND node is rendered?
Seve
ok i think i understand what your desired behavior is
Seve
yea we will revert it
Seve
sorry about that
Seve
i didn't understand it fully and interpreted it as a spec issue
astrimid
basically, I'm reimplementing these GND symbols on the reference. Curently, `GND` label rendering is random and doesn't seem to be influenced by `schMaxTraceDistance`
Seve
yea i'm adding testing so that nobody breaks what i broke in the future
Seve
it makes sense actually, you want a netlabel for a connection, not a "net" per-se
Seve
after we have the testing it will be unlikely to break in the future
astrimid
Maybe I need both connection labels (DC source, GND, physical data socket) and line labels. Look at the reference picture for SDC_IN for example. I guess it's a network that has the same name as the global source port. I guess I can do this visually, but would this have any distinct semantic meaning? ``` <chip name="SDC_IN" symbol={ <symbol> /* draw a circle and a line pointing down */ <port name="out" schX={0} schY={-1} direction="down" /> </symbol> } /> ```
astrimid
I haven't looked into components yet, but I figure the bold text represents the component boundary or the port while the red text represents the net label which could be either a data line, a power line or a ground

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗