[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-bug: [Bug 910663] Re: missing filename in rc file version mismatch message



I'm not sure what the correct behaviour is in the case that rc-filename
*isn't* called from an rc file:

  $ libgeda/shell/geda-shell -q -c '(display (rc-filename)) (newline)'
  ERROR: In procedure stack-ref:
  ERROR: Wrong type argument in position 1 (expecting stack): #f

I suspect it should just return #f.

However, if it does, then your assumption that the return value of
g_rc_rc_filename() (a rather unwieldy function name! :-P) can be safely
passed to scm_to_utf8_string() won't be valid.  (BTW, you should be
using dynamic wind to protect against the fact that most calls into
Scheme may exit non-locally; see http://blog.peter-b.co.uk/2011/06/geda-
and-guile-safe-handling-of-non.html .

Other than these two details, this looks pretty neat. :-)

-- 
You received this bug notification because you are a member of gEDA Bug
Team, which is subscribed to gEDA.
https://bugs.launchpad.net/bugs/910663

Title:
  missing filename in rc file version mismatch message

Status in GPL Electronic Design Automation tools:
  In Progress

Bug description:
  At startup gschem checks if version of system-gschemrc file matches the gschem version.
  On mismatch the following message is printed, where the file name of the offending rc file is missing:

  You are running gEDA/gaf version [1.7.2.20111231],
  but you have a version [20110619] gschemrc file:
  [(null)]
  Please be sure that you have the latest rc file.

  Expected behavior: include correct name of the configuration file in
  the message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/geda/+bug/910663/+subscriptions


_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug