kicad-developers team mailing list archive
Mailing list archive
Re: Library configuration
Wayne Stambaugh <stambaughw@...>
Thu, 18 Mar 2010 10:43:19 -0400
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:184.108.40.206) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3
On 3/18/2010 8:27 AM, Terry Barnaby wrote:
> Ok, I think I have found the basic problem. I think it is a bug
> in kicad, but I haven't tracked down the exact bit of code
> that is causing the issue. (eeschema_config.cpp, projet_config.cpp ?)
> I am an old Unix/Linux command line user and most of the time run
> applications while in the working directory where the circuit design
> is stored. If you do this and use relative paths for the *.pro file
> then kicad does not actually read the file and eeschema uses its
> template kicad.pro file with no errors or warnings.
> So if you run something like "kicad CarHorn.pro" in the directory
> where your design is kicad will not read the config file.
> I suspect the lower level wxFileConfig class needs an absolute
> path but kicad is just passing "CarHorn.pro".
I managed to duplicate this bug. You are correct. The relative path is
the problem. The bug is in the LoadOneEEProject() function in
files-io.cpp. I fixed it in my development branch and will commit it to
SVN trunk sometime today or tomorrow after I make sure it didn't break
anything else. However, a patch will need to be applied against the
current stable release. I'll contact JP and see how he wants me to
handle this. Thanks for reporting this bug and the leg work you did to
figure out what the problem was. It made finding the problem a lot easier.