ERC could show line defining part

Aperta
#185 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

The issue points to the logic that adds a part to a circuit and suggests inspect.findsource as a possible way to locate its definition. Start by tracing part creation and how ERC warnings are produced, then check whether source-location information can be attached without making circuit construction too slow. Done means an unconnected-pin warning identifies where the part was defined; the issue names no files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

I have an ERC warning output, part of which shows:

ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R2.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R5.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R8.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R11.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R14.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R17.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R20.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R23.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R26.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R29.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R32.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R35.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R38.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R41.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R44.
ERC WARNING: Unconnected pin: PASSIVE pin 2/~ of R/R47.

Clearly I forgot to connect one end of a resistor. Unfortunately I have no idea which, as I haven't tagged or named my resistors. It would be neat if the ERC warning told me where the part was defined. I think something like this could be done by hooking into the logic which adds the part to a circuit, probably using something like inspect.findsource (which is slow.... but so is SKIDL :D).

If this bothers me enough and I get the time I'll have a go at implementing it, but I'd be interested to know what others do about it.

Lingua principale
Python
Stelle
1.7k
Fork
184
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devbisme/skidl

Tutte le issue di devbisme/skidl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.