Cant save footprint on footprint editor.

Bug #1785895 reported by Leandro Heck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
New
Undecided
Unassigned

Bug Description

Maybe I am doing something wrong because I am starting to work in a project of a friend.
But I can't save footprints.

See the image attached, it adds filename 2x at the and of the path.

Revision history for this message
Leandro Heck (leoheck) wrote :

Add missing image and Kicad version.

Application: kicad
Version: 6.0.0-rc1-unknown-bbfce12~66~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-30-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

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

Revision history for this message
Todor Todorov (ttodorov) wrote :

I am seeing the same bug. The issue is that the editor prepends the footprint name as a subfolder under the library top folder, e.g. for a given footprint XYZ in library ABC it is trying to save to location ABC.pretty/XYZ.kicad_mod/ZYZ.kicad_mod.

This also affects editing of existing footprints. Once the footprint has been opened and edited, the work cannot be saved.

Uisng KiCad nightly 64bit on Windows 10.

Application: kicad
Version: (6.0.0-rc1-dev-271-g539ca5aa3), release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.60.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.54.1
    Compiler: GCC 7.1.0 with C++ ABI 1011

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

Revision history for this message
Jeff Young (jeyjey) wrote :

Fix on the way....

Revision history for this message
Todor Todorov (ttodorov) wrote :

In addition, it seems that when an existing footprint has been edited, the wizard actually removes the old file before saving the new one. That does not seem like a safe approach. As I am seeing now, my old footprint is gone too, along with the new version. KiCad should rename the old file as a backup, save the new work and only if successful, remove the backup file. If saving fails, the backup file should be restored.

As a workaround, I manually created a folder with the same name as the footprint, then went back to the footprint wizard and was able to save my work. Then I manually moved the file into the top library file and deleted the extra subfolder, once I closed the wizard.

Revision history for this message
Jeff Young (jeyjey) wrote :

Fix has been pushed. If you do your own builds, you can go ahead and pull it.

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.