`tsci check netlist` prints `undefined` after a resistor's value and labels resistor pins anode / cathode

オープン
#5,447 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@cocvn157 がすでに取り組んでいます。

2026年11月5日 から。

  • #694 @godgamerex3-boop による — マージされずにクローズ
  • #5475 @JohnNuwan による — マージされずにクローズ
  • #5564 @ducanh3005 による — マージされずにクローズ
  • #5595 @vulinh1704 による — マージされずにクローズ
  • #5708 @cocvn157 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
react, typescript
領域
backend, cli

調査の方向性

Start by reproducing the example with the listed tscircuit and CLI versions, then trace how tsci check netlist formats resistor metadata and pin aliases. The issue gives no source files or tests, so locate the relevant formatter and its coverage before making changes. Done means the output omits undefined and shows appropriate resistor pin labels; an open linked pull request (#5475) is already working on the issue.

索引モデルが issue の本文から書いたものです。

説明

For a header, a 1 kΩ 0603 resistor and an LED in series:

export default () => (
  <board width="20mm" height="12mm" layers={2}>
    <pinheader name="J1" pinCount={2} pitch="2.54mm" pcbX={-6} pcbY={0} />
    <resistor name="R1" resistance="1k" footprint="0603" pcbX={1} pcbY={2} />
    <led name="D1" color="green" footprint="0603" pcbX={6} pcbY={0} />
    <trace name="VIN" from=".J1 > .pin1" to=".R1 > .pin1" />
    <trace name="LED_A" from=".R1 > .pin2" to=".D1 > .anode" />
    <trace name="GND" from=".D1 > .cathode" to=".J1 > .pin2" />
  </board>
)

tsci check netlist prints:

R1 (1kΩ undefined)
- pin1(anode, pos, left): NETS(R1_pos)
- pin2(cathode, neg, right): NETS(D1_pos)
  • undefined: probably an empty manufacturer part number or package field. Expected: the field left out, or a real value such as 0603.
  • Pin aliases: a resistor's pins are listed with the aliases anode / cathode (and pos / neg), which belong to diodes and polarised parts. Expected: pin1 / pin2, or pos / neg at most.

Versions: tscircuit 0.0.2942 (@tscircuit/cli 0.1.2364).

主要言語
TypeScript
スター
19
フォーク
115
平均マージ
1時間 50分
マージ済み PR(30日)
260

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tscircuit/cli のほかの issue

tscircuit/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。