I have discovered an issue with component names in EEschema.
I have two components with the same name in two different libraries.
Library name Component name
psc1225.lib --> psc1225
dave.lib --> psc1225
I was editing a schematic and I found the psc1225.lib version
suddenly replaced by the dave.lib version. I deleted the cache file
and it was still the wrong version. I then deleted the component and
explilcitly added it back from the psc1225.lib. It used the dave.lib
version.
>From what I can discover, the libraries are searched in ORDER to find
the desired component. The First one found matching the name wins.
So if you add a library with a identically named component BEFORE the
library that you wanted ( in the libs list) then you can get the
wrong component.
This is a bit insidious. The system should search the entire library
tree and insure there are no duplicates. Or it should tag the
component in the schematic with the library name it came from.
The user interface makes you think that it is doing this because it
allows you to select components by library. This implies that it is
tagging them. but it does not!! here is the text from the .sch file.
note that there is NO library identity for this component. The name
is the ONLY key. SO don't name components the same EVER!! Unless you
specifically know that only ONE library with that name is included.
$Comp
L PSC1225 U?
U 1 1 454129A3
P 7900 5100
F 0 "U?" H 7900 5100 60 0000 C C
F 1 "PSC1225" H 7900 5100 60 0000 C C
1 7900 5100
1 0 0 -1
$EndComp
I have a suggested syntax upgrade for eeschema. The library could be
optionally appended to the end of the line. This insures that the
component can come ONLY from the desired library ( that was used when
the component was added to the schematic) and no other shadowed names
can be matched from other libraries.
$Comp
L PSC1225 U? psc1225.lib
U 1 1 454129A3
P 7900 5100
F 0 "U?" H 7900 5100 60 0000 C C
F 1 "PSC1225" H 7900 5100 60 0000 C C
1 7900 5100
1 0 0 -1
$EndComp
If this syntax cannot be changed then at least do a complete search
when the schematic is read in AND when the user ADDS a new library to
insure no duplicate names occur in any other library. Warn him wich
version kicad is using and to rename them to avoid the clash.
Kicad is a great package. I use it frequently and enjoy it. Please
keep updating it with user fixes and enhancements.
best regards
Dave
Please read the Kicad FAQ in the group files section before posting your
question.
Please post your bug reports here. They will be picked up by the creator of
Kicad.
Please contribute your symbols/modules to the library folder in the group files
section.
For building Kicad from source and other development questions visit the
kicad-devel group at http://groups.yahoo.com/group/kicad-devel
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/kicad-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/kicad-users/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/