Ref reset when rename Hierarchical sheet to a existing .sch file!

Bug #1821367 reported by NhatKhai on 2019-03-22

This bug report will be marked for expiration in 2 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Undecided
Unassigned

Bug Description

I use the switch back and for schematic files from change the filename field of the hierarchical sheet to existed sch file (backup one, or difference design style circuity...). Now every time I do that:

  * All the reference in that sheet reset. I would not think it a good behavior compare to 4.x. (I would not like this at all, it is a indication of destructive operation which force me use text editor to do the job!)

  * The first time open the sheet, all the symbol block show as a big [?] block. Subsequent open would doing Ok. (I can live with this)

Application: kicad
Version: (5.1.0)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

NhatKhai (nhatkhai) wrote :

Actually [?] block stay util I save the whole schematic, and reopen the hierarchical sheet.

Wayne Stambaugh (stambaughw) wrote :

It sounds like you either attempted to assign a schematic file to a sheet that was not remapped with 5.0 or later. In other words, you have to remap a schematic file before you assign it to a sheet in a different schematic. You may also have to update your symbol library table before you assign a remapped schematic file to a sheet. Missing symbol library table entries with cause broke symbols links. Conversely, once a schematic file is remapped, it is no longer compatible with v4.

Changed in kicad:
status: New → Incomplete
NhatKhai (nhatkhai) wrote :

@Wayne, I think that was what you wishing for. But not, I try remap everything before use 5.1. It is reset all my reference regardless. It is not thing to do with remap, or 4.x version file, or my library.

NhatKhai (nhatkhai) wrote :

By the way, again the way remap currently work is very forcefull - everything I test these- took me quite time.

NhatKhai (nhatkhai) wrote :

So to be clear, may be I should rewording my issue. I two schematic sheet A, and sheet B. The root schematic "R" have a hierarchy sheet block that point to either A, or B. Whenever I change the file name of the hierarchy sheet block to A/B (difference than the other). Then open the hierarchy sheet block I got two problems:
  * The symbol references always get reset to "?" very time
  * Open the hierarchy sheet show the [?] block until save the project, and reopen hierarchy sheet. The root schematic don't need to be close.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers