Cannot read netlist when .cmp does not exist

Bug #1464408 reported by Martin d'Allens
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Medium
Unassigned

Bug Description

Steps to reproduce :
- Create empty new project
- Open EEschema
- Optionnally place some components and associate their footprints with cvpcb
- Generate the netlist
- Make sure no .cmp file has been created at this point. I understand they are an alternative way to associate footprints and symbols.
- Open pcbnew
- Open its netlist window
- Click on "Read current netlist"

What happens :
- Reading the netlist fails, because a ".cmp" file cannot be read. The following message is displayed :
   Erreurr lors du chargement de la netliste.
   IO_ERROR: Ne peut pas ouvrir le fichier '/home/user/tmp/tmp.cmp' en lecture
   from /build/kicad-OYOLBG/kicad-0.201506092253+5726~23~ubuntu15.04.1/kicad/common/richio.cpp : FILE_LINE_READER() : line 188

What should happen :
- This file should be skipped if it does not exist.

Workaround :
- Create an empty file at this location. Everything works fine after running "touch /home/user/tmp/tmp.cmp".

Application: kicad
Version: 0.201506092253+5726~23~ubuntu15.04.1-product release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.9.2,wx containers,compatible with 2.8)
Platform: Linux 3.19.0-18-generic x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.54.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

Tags: cvpcb
Revision history for this message
Nick Østergaard (nickoe) wrote :

Hmm, that seems to be an error introduced with this announcement, https://lists.launchpad.net/kicad-developers/msg18480.html.

tags: added: cvpcb
Revision history for this message
Chris Pavlina (pavlina-chris) wrote :

Confirmed. Even though we're not generating these anymore, pcbnew still defaults to loading from them.

Changed in kicad:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1464408] Re: Cannot read netlist when .cmp does not exist

That didn't take long. I just haven't got around to removing that
option from the dialog. How difficult is it so select the read from
netlist option until I get to it?

On 6/11/2015 5:57 PM, Chris Pavlina wrote:
> Confirmed. Even though we're not generating these anymore, pcbnew still
> defaults to loading from them.
>
> ** Changed in: kicad
> Status: New => Confirmed
>
> ** Changed in: kicad
> Importance: Undecided => Medium
>

Revision history for this message
jean-pierre charras (jp-charras) wrote :

"Select the read from netlist option" is a project option and is saved in the .pro.

@Wayne:
I have a fix on my working copy about that.
I don't know if you have made some work about that, but I can commit it if you want.

Revision history for this message
Chris Pavlina (pavlina-chris) wrote :

Wayne - indeed, that works fine, I've been doing that all along. I still confirmed it as a bug because I don't think most people know about that option, and I wasn't sure if you were still working on it.

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

@JP

If you've got it fixed already, go ahead and commit your changes. I
haven't even started working on it yet.

On 6/12/2015 2:11 AM, jean-pierre charras wrote:
> "Select the read from netlist option" is a project option and is saved
> in the .pro.
>
> @Wayne:
> I have a fix on my working copy about that.
> I don't know if you have made some work about that, but I can commit it if you want.
>

Changed in kicad:
status: Confirmed → Fix Committed
Jon Neal (reportingsjr)
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.