gEDA-dev: xgsch2pcb bug report
Peter Clifton
pcjc2 at cam.ac.uk
Wed Sep 12 06:12:58 EDT 2007
On Wed, 2007-09-12 at 06:36 +0200, Igor2 wrote:
> Peter,
>
> this morning I've recompiled my PCB with dbus and downloaded the latest
> snapshot of xgsch2pcb. It all works fine, except for one bug.
>
> 1. start xgsch2pcb in a directory where the user doesn't have write access
> 2. start a new project
> 3. add a schematic page
> 4. give a file name in the current directory - write will fail, that's ok
> 5a. modify the file name to a location where the user has write access -
> won't work
> 5b. click on cancel - won't work
> 5c. close the dialog, add a new page again but this time give a file name
> that can be written; cancel works again.
>
> So it seems once creating the schematic file fails, the dialog box dies.
>
> Btw, if we are already here, I read the terminal messages so I find out
> when the problem is about permissions, but I am not sure a typical user
> who prefers xgsch2pcb over Makefiles would do so. I think a popup
> reporting the problem would be a good feature :)
Thanks for the report - I'll try and look into it when I get a chance.
xgsch2pcb's error handling is pretty poor, but thankfully code to pop up
dialog boxes is fairly simple to add.
I pushed a fix last night which (partly) fixes issues if you should use
a path with a space in it. In the example I was testing, it still breaks
(gnetlist), however gsch2pcb does closer to the right thing.
I've just pushed a fix for giving error messages when it fails to create
a new schematic or new page.
The other interesting case (a failure when writing out an existing
project wants more thought, as we may need to give the user an option to
save elsewhere.
Peter
More information about the geda-dev
mailing list