Eeschema: error message when opening a file with a long path from the command line

Bug #1108838 reported by Jacobo Aragunde Pérez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Jacobo Aragunde Pérez

Bug Description

Application: Eeschema
Version: (2013-01-27 BZR 3925)-testing
Build: wxWidgets 2.8.12 (no debug,Unicode,compiler with C++ ABI 1002,GCC 4.7.2,wx containers,compatible with 2.4,compatible with 2.6)
Platform: Linux 3.7.4-204.fc18.x86_64 x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.49.0
Options: USE_PCBNEW_NANOMETRES=ON
         KICAD_GOST=OFF
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=OFF
         KICAD_SCRIPTING_MODULES=OFF
         KICAD_SCRIPTING_WXPYTHON=OFF

First reported in the conversation of the Bug #1102381, reporting separately for convenience:

El 21/01/13 17:46, Dick Hollenbeck escribió:
>
> There was also an issue with specifying a relative path on the eeschema
> command line to a schematic, relative path, but longer than a basename.
> Can you verify if that is still there?
>

Found something. The program runs but it shows the error message "Failed
to inspect the lock file ...".

Tags: eeschema files
Revision history for this message
Jacobo Aragunde Pérez (jaragunde) wrote :

This bug exposed a different problem in the patches to prevent opening the same document twice. Under certain code conditions the file path is not yet normalized and different lock files can be created for the same document.

I'm attaching a patch to fix it.

Revision history for this message
Jacobo Aragunde Pérez (jaragunde) wrote :

At revision 3926 (thanks Jean-Pierre).

Changed in kicad:
status: In Progress → Fix Committed
Martin Errenst (imp-d)
Changed in kicad:
status: Fix Committed → Fix Released
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.