Cvpcb unaware of project context when started from kicad toplevel

Bug #1402306 reported by Simon Richter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

When cvpcb is started from the project overview by opening a .net file, the project context is not properly communicated.

To reproduce:

1. Create a new project
2. Create a simple schematic
3. Create netlist from schematic
4. Exit eeschema, double-click .net file in project overview
5. Open the Preferences -> Edit Library Table dialog in cvpcb
6. Switch to the "Project Specific Libraries" tab, and create a test entry

Observed behaviour: this entry is saved to the file ~/prj-fp-lib-table
Expected behaviour: the entry should be saved to "fp-lib-table" inside the project directory

This suggests that the project context is not properly communicated to the cvpcb instance.

When cvpcb is invoked from within eeschema, the library path information is saved correctly.

The pcbnew program also uses the correct file when invoked from the project overview.

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

I can confirm this behaivour in 5320 on archlinux.

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

This is fixed in rev 5346 it seems. Can you verify Simon?

http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/5346

Changed in kicad:
status: New → Fix Committed
Revision history for this message
Simon Richter (sjr) wrote :

Not sure if fixed.

I can see the project-specific path correctly both times, which is good.

There is still a difference somewhere in that the ~/prj-fp-lib-table is read when invoking cvpcb from the toplevel, while this does not happen when invoked from eeschema.

I have a (nonsensical) table in my homedir:

$ cat ~/prj-fp-lib-table
(fp_lib_table
  (lib (name foo)(type KiCad)(uri bar)(options "")(descr ""))
)

and I get an error dialog for this only when opening a .net file.

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

IIRC the prj-fp-lib-table is a temporary file. So you should not create that manually.

Revision history for this message
Simon Richter (sjr) wrote :

Right, but I think it should be completely ignored anyway because the project context is available, shouldn't it?

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.