Some text are duplicated on ERC

Some text is duplicated on ERC. Do you confirm?

Application: KiCad Schematic Editor

Version: 6.0.6-3a73a75311~116~ubuntu22.04.1, release build

Libraries:
	wxWidgets 3.0.5
	libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.12

Platform: Linux 5.15.0-40-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11

Build Info:
	Date: Jun 20 2022 15:50:05
	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.2
	Curl: 7.83.1
	ngspice: 36
	Compiler: GCC 11.2.0 with C++ ABI 1016

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON

Is it specific to “label not connected to anything” errors? Also, does it matter what type of label it is?

I believe the check for local labels actually being connected is somewhat new, so it would not shock me to find out there was something strange going on.

As a basic check, I can’t replicate this on Mac with a wire connected to nothing and a unique local label.

EDIT: I am a fool, with a label actually connected to nothing, I do replicate this with all label types on Mac.

1 Like

Do you confirm?

Yes. Also for v6.99. Affects all label-types (local label + global label + hierarchical label) which are connected to really nothing (even no wire-stubs).

example-project for v699:
erc_label_message_v699.zip (22.2 KB)

Ah, yeah, did not mention that the label was connected to nothing. But then I saw a issue report where people are discussing things like that. Maybe a fix is coming then.

It [a label with a wire to nowhere] is flagged, but there is only the one error as opposed to two.
(Edited to clarify “it”)

Maybe the system is looking for both ends? If so, I’d say the fix is worse than the problem as it could rely on some coding gymnastics to get around. I remember when I was learning to code you fixed one error at a time because fixing one could take care of lots of others.

I guess that if you have an unconnected local label on a hierarchical page, it may get shown for each instance of that hierarchical page?

I don’t have V6.99 installed, so can’t look at mf_ibfeews example.

I think I confused things slightly here. Does this give context? In my opinion each of these cases should give one error, but the case where the label is truly totally alone gives two errors. (KiCad 6.0.6 on Mac)
Screen Shot 2022-07-05 at 11.11.19 AM

And we agree with you @scone, but they are already “Errors”. See it on your screenshot. Now you should see 2 items there, and not 3, since one of those is duplicated.

No. I understand. I think the software is looking for both ends. In one case one end is connected. In one case both ends are disconnected. Two ends are implied with labels. This is no small distinction in terms of the check. “Fixing” the duplication runs the risk of breaking the check.

I hope that makes sense.

EDIT: This is just my best guess on why it happens. The decision on how well/easily this can be remedied is up to the developers of course.

I just made a bogus label in a root sheet of a project, and it’s indeed reported twice.

Look at it from the bright side:
You can now get rid of ERC violations at twice the normal speed :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.