Comment 3 for bug 1522583

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1522583] [NEW] Using tilde inside labels may confuse ERC module in Eeschema

On 12/03/2015 04:09 PM, Kerusey Karyu wrote:
> Public bug reported:
>
> Eeschema permits the use of tilde character (~) in labels to distinguish inverted signals.
> You can use both "~LABEL" and "~LABEL~" scheme which has the same visual effect: the label become overscored.

This isn't unexpected. ~LABEL and ~LABEL~ are not the same label even
though they may look the same.

>
> Unfortunately for the ERC module these two labels are different which results in an ERC error:
> "ErrType (2): Pin not connected (and do not connect the symbol found on this pin)"

It seems to me the ERC is doing it's job as expect.

>
> I see two options, keeping current functionality:
> - Eeschema will automatically add the ending tilde, when will not find another one in the string.
> - Eeschema will remove the final tilde if there are no more characters following the tilde.

I would prefer not to strip anything off my labels. The trailing ~ in
you hypothetical example is unnecessary. Either Eeschema should
complain about an invalid label or it should display the all ~s but the
first one. Maybe we should prevent users from getting too creative with
their label naming. I'm not sure how serious this problem is given that
the ERC does the correct thing.

>
>
> Application: eeschema
> Version: (2015-11-29 BZR 6336)-product release build
> wxWidgets: Version 3.0.0 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.8.2,wx containers,compatible with 2.8)
> Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
> Boost version: 1.54.0
> USE_WX_GRAPHICS_CONTEXT=OFF
> USE_WX_OVERLAY=OFF
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING_MODULES=ON
> KICAD_SCRIPTING_WXPYTHON=ON
> USE_FP_LIB_TABLE=HARD_CODED_ON
> BUILD_GITHUB_PLUGIN=ON
>
> ** Affects: kicad
> Importance: Undecided
> Status: New
>
>
> ** Tags: eeschema erc labels
>