Comment 4 for bug 1791280

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1791280] Re: Eeschema should rescue missing symbols when appending sheet

@Seth, there is a warning dialog when an imported schematic has not been
remapped (see line 481 in eeschema/files_io.cpp) warning the user about
broken symbol links but the bug reporter didn't mention it. If the user
didn't get this warning, that is a different issue than if the warning
was ignored. Fixing this will be very tricky. This is why I just went
with a warning. Ideally, the user should open the project to be
imported and remap it before importing it into another project. If you
import from a schematic in another project, you may have issues with
determining the correct symbol libraries from which to remap. This
could be true even if the imported schematic has been fully remapped in
the case of missing project symbol libraries. The only way I know to
guarantee this is to remap the imported project using the imported
projects symbol library table and then using the imported projects cache
library as a new entry in the current project symbol library table to
ensure all of the imported schematic symbols are available. I don't
think this will be trivial to fix.

On 09/07/2018 11:17 AM, Seth Hillbrand wrote:
> @Wayne-
>
> I tested this with the latest nightly and appending a sheet that has
> symbols not available in the symbol table will show you the symbols
> until you trigger a re-load of the symbol table. Either edit a library
> or close, reload the schematic. Then the rescue happens. Unless you
> try to edit the symbol in the schematic. Then the missing symbols show
> as unmapped.
>
> I think we should be re-mapping on import.
>