Datasheet is vanished from symbol libraries

Bug #1830078 reported by Luigi Eduardo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Wayne Stambaugh

Bug Description

When editing a symbol datasheet field (any property from this field), the text from the field is automatically removed from rendering in the editor and also from the escheema (I'll make a new report for it)

I checked the .lib file and the datasheet has been removed (null filled ""). Then I took a look in .dcm file and datasheet appeared there.

For me, the sym editor is not saving in the correct file the Datasheet Field and also it is excluding from the correct place

It started to happen in this version of Kicad with may older libs (from 4.7, 5.0.2) and also happens with new ones.

Application: kicad
Version: (5.1.2)-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 8 (build 9200), 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

Tags: eeschema
Revision history for this message
Luigi Eduardo (luigiesn) wrote :

One of my lib for you to reproduce the bug

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Please see comment #2 in https://bugs.launchpad.net/kicad/+bug/1830083. Did you create this library with 5.1.2?

Changed in kicad:
status: New → Incomplete
Revision history for this message
Luigi Eduardo (luigiesn) wrote :

No, it was made firstly in 4.x versions and already tested in 5.0.0 and 5.0.2 versions.

tags: added: eeschema
removed: editor symbol
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

The library you attached is definitely wrong due to a bug in the old library code but the fix is fairly easy so this will get fixed and released in 5.1.3. There is also a bug in the symbol editor that cannot handle this library. If I make a change and undo it so I can save the library again, the datasheet field gets cleared and not set in the dcm datasheet field. I will file the bug report on that.

Changed in kicad:
status: Incomplete → Triaged
importance: Undecided → Low
assignee: nobody → Wayne Stambaugh (stambaughw)
milestone: none → 5.1.3
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Never mind, a new bug report is not necessary because this bug report covers the symbol editor issue.

Changed in kicad:
importance: Low → High
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision c52ff1ca23143b9ab7406bfb1e87927bdba466fb
https://git.launchpad.net/kicad/patch/?id=c52ff1ca23143b9ab7406bfb1e87927bdba466fb

Changed in kicad:
status: Triaged → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
Revision history for this message
nvmd (nvmd) wrote :

I am currently running 5.1.4 and am still experiencing this same issue. My libraries were also imported from a previous 4.0 release, like the prior user.

When pulling up a symbol the datasheet will be visible, but upon merely clicking "OK" in the library symbol properties screen, the datasheet will vanish from view - even if none of the fields were actually edited. Toggling visibility does not make it reappear. If I save the symbol after this, it's permanently missing. If I don't save it, it will appear as long as I don't edit any fields. The datasheet still shows in the symbol properties, but not in the visible view of the editor.

Attached zip file contains an illustrated image showing it occurring, as well as an example of the resistor library file I used to demonstrate it. This occurs in all of my libraries however. In the attached resistor library you can see that the 10r has a visible datasheet while the 11k does not, despite both having the same settings and in fact the same datasheet as well.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.