pub enum KiCadDiagnosticCode {
SheetFileMissing,
SheetFileUnreadable,
SheetRecursion,
UuidRepeated,
ObjectNotDrawn,
ComponentUnitRepeated,
ComponentUnitDefinitionsDiffer,
ProjectUnreadable,
ConnectivityNotCompiled,
PinContactEvidenceDiffers,
PinIdentityRepeated,
BusAliasCycle,
}Expand description
Stable diagnostic codes. Each one names the KiCad behaviour it follows.
Variants§
SheetFileMissing
A sheet whose file is missing keeps its sheet symbol and gets an empty page; loading continues (eeschema/sch_io/kicad_sexpr/sch_io_kicad_sexpr.cpp:264-296).
SheetFileUnreadable
A sheet whose file cannot be read or parsed gets an empty page and the rest of the hierarchy loads; only the root sheet stops KiCad (eeschema/sch_io/kicad_sexpr/sch_io_kicad_sexpr.cpp:269-283). KiCad Monkey also draws an empty root page instead of stopping.
SheetRecursion
A sheet that repeats one of its direct ancestors is not loaded, gets no page, and its sheet symbol is removed from the parent page (eeschema/sch_io/kicad_sexpr/sch_io_kicad_sexpr.cpp:217-237; eeschema/sch_sheet_path.cpp:1116-1144).
UuidRepeated
A UUID repeated within one file is made unique while loading, by incrementing it until it is unused (eeschema/sch_io/kicad_sexpr/sch_io_kicad_sexpr_parser.cpp:118-128).
ObjectNotDrawn
KiCad Monkey could not draw this object; it is left out and the rest of the page is drawn.
ComponentUnitRepeated
Several symbols claim the same unit of one reference. KiCad’s netlist takes a multi-unit reference once and keeps one pin per pin number (eeschema/netlist_exporters/netlist_exporter_base.cpp:231-270,457).
ComponentUnitDefinitionsDiffer
Units of one reference use different cached library symbols. Each unit draws its own; the netlist takes the component’s library facts from its first unit (eeschema/netlist_exporters/netlist_exporter_base.cpp:254-303).
ProjectUnreadable
The project file could not be read; its settings are left out and KiCad’s defaults are used.
ConnectivityNotCompiled
KiCad Monkey could not compile the design’s connectivity. Every page is still drawn; nets, terminals and their bindings are left out.
PinContactEvidenceDiffers
Drawn pins of one symbol that share a number reach one contact with different source or no-connect evidence. KiCad’s netlist keeps one pin per number (eeschema/netlist_exporters/netlist_exporter_base.cpp: 402-447); the contact keeps the first pin’s evidence. Not yet checked against KiCad for the no-connect marker.
PinIdentityRepeated
Drawn pins of one symbol that share a number have no saved pin UUID to tell them apart and reach different nets. KiCad gives each a new UUID on load and keeps them apart (eeschema/sch_symbol.cpp:1288-1311); the compiled graph has no stable identity for the later pin, so its terminal keeps the first pin’s net. The netlist lists every net.
BusAliasCycle
A bus label’s expansion met an alias again inside its own expansion; the repeated alias is one scalar bus member. KiCad looks a name up as an alias only where it is a bus group member and configures each alias member as a label, so a bare member name is a plain net and aliases cannot loop (eeschema/sch_connection.cpp:184-205). KiCad Monkey also expands bare alias members, so its members can differ from KiCad’s.
Implementations§
Source§impl KiCadDiagnosticCode
impl KiCadDiagnosticCode
Sourcepub const fn concerns_drawing(self) -> bool
pub const fn concerns_drawing(self) -> bool
Whether the diagnostic is about what a page draws. Connectivity and component facts stay on the compilation and are not page diagnostics.
Trait Implementations§
Source§impl Clone for KiCadDiagnosticCode
impl Clone for KiCadDiagnosticCode
Source§fn clone(&self) -> KiCadDiagnosticCode
fn clone(&self) -> KiCadDiagnosticCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for KiCadDiagnosticCode
Source§impl Debug for KiCadDiagnosticCode
impl Debug for KiCadDiagnosticCode
Source§impl Display for KiCadDiagnosticCode
impl Display for KiCadDiagnosticCode
impl Eq for KiCadDiagnosticCode
Source§impl Hash for KiCadDiagnosticCode
impl Hash for KiCadDiagnosticCode
Source§impl Ord for KiCadDiagnosticCode
impl Ord for KiCadDiagnosticCode
Source§fn cmp(&self, other: &KiCadDiagnosticCode) -> Ordering
fn cmp(&self, other: &KiCadDiagnosticCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for KiCadDiagnosticCode
impl PartialEq for KiCadDiagnosticCode
Source§impl PartialOrd for KiCadDiagnosticCode
impl PartialOrd for KiCadDiagnosticCode
impl StructuralPartialEq for KiCadDiagnosticCode
Auto Trait Implementations§
impl Freeze for KiCadDiagnosticCode
impl RefUnwindSafe for KiCadDiagnosticCode
impl Send for KiCadDiagnosticCode
impl Sync for KiCadDiagnosticCode
impl Unpin for KiCadDiagnosticCode
impl UnsafeUnpin for KiCadDiagnosticCode
impl UnwindSafe for KiCadDiagnosticCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.