Why does Find (and Replace) expand every nest in the Schematic Hierarchy
when using Search the current sheet only
?
just checked - limiting search to “current sheet only” works fine on my system. (v7.0.6 on Win10).
After re-reading I think I have misunderstood your question.
You are referring to the Schematic hierarchie panel at the side?
A short check: with “search current sheet only” the schematic hierarchie navigator is not influenced.
Maybe this depends on the project/schematic (how deep nested?, on which pages are the found search-strings?)
I also checked and Schematic Editor / Edit / Find and Replace does properly respect the Search the current sheet only checkbox on my KiCad V7.0.6.
The intended output occurs, but there is delay and my hierarchy opens up:
Setup:
After clicking Replace All:
I opened Schematic Editor / View / Hierarchy Navigator and rechecked in a 2 layer deep hierarchical schematic and it works for me.
What KiCad version are you using?
It’s also possible it’s a bug that only shows up with multiple layers of hierarchy. Can you post a test project that shows this behavior? If I can reproduce the error, then I am willing to make a bug report for it on gitlab. (Unless of course it’s already reported and/or fixed in the nightly version).
Application: KiCad Schematic Editor arm64 on arm64
Version: 7.0.6-0, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.0
HarfBuzz 7.3.0
FontConfig 2.14.2
libcurl/7.88.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0
Platform: macOS Ventura Version 13.4.1 (Build 22F82), 64 bit, Little endian, wxMac
Build Info:
Date: Jul 6 2023 21:17:48
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.82.0
OCC: 7.7.0
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON
Aahhrgggg… another “test” project.
I’ve got about 50+ of those.
I did find all your sheets a bit empty, so I added a resistor to the a_a_a sheet, a capacitor to the b_b_b sheet an a diode to the c sheet.
Then I used search and search and replace a bit, and I could not replicate your behavior, while searching around for these resistors and capacitors.
I also renamed the project, here is my modified version.
big_hierarchy_test_2023-08-03.zip (38.6 KB)
Thanks for the zip-file. This proves once more the advantage of a example. With your example-project the behaviour (expanded hierarchy navigator panel) was reproducible.
But it seems the expansion of the navigator-panel is not restricted to the replace-function. Every change on the main canvas area (drawing/placing a new item, modifying a existing item, moving, rotating, …) seems to trigger this action.
Could be worth a bugreport.
note also that there is a small behaviour-difference between v7/v799 (if adding a textitem is used as example). With v7.99 the navigator expands after placing the text, with v7 the navigator expands prior to the text-placement.
As paul could not reproduce my testversion: 7.0.6-66-g2652068933, release build, on Win10.
Tested also with the modified project “big_hierarchy_test_2023-08-03.zip”, showed same behaviour.
After mf_ibfeews remark I opened my “big_heararchy_test” project again, and now it seems to unfold the (whole?) hierarchy by just navigating to a page, so I can now replicate the faulty behavior. But not with the “search” function.
tested on:
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 7.0.6-7.0.6~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.2.1
FreeType 2.10.1
HarfBuzz 6.0.0
FontConfig 2.13.1
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, xfce, x11
Build Info:
Date: Jul 7 2023 02:32:25
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.88.1
ngspice: 38
Compiler: GCC 9.4.0 with C++ ABI 1013Build settings:
KICAD_SPICE=ON
P.s:
Why does my version have 7.0.6-7.0.6? Is that a typo?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.