Hi Phil,

>Can someone tell me how to mod gsymcheck 20050820 (or from CVS) in such a way
>that it  returns a comment:
>
>"Warning: no symbol by that name found."
>
>When you ask gsymcheck to check a misspelled symbol.
>
>The present behavior is to return nothing for non-present symbols.  Of course
>when it finds something it returns 'no errors found' -- just seems to me like
>an opportunity for confusion.
>

        Actually, gsymcheck stop processing symbols if it doesn't find a
symbol, but this error goes into the gsymcheck.log file.  Example:

% gsymcheck connections1.sym BAD.sym nets.sym
gEDA/gsymcheck version 20050820
gEDA/symcheck comes with ABSOLUTELY NO WARRANTY; see COPYING for more details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.

Found a pin which did not have the whichone field set.
Verify and correct manually.
Found a pin which did not have the whichone field set.
Verify and correct manually.
Found a pin which did not have the whichone field set.
Verify and correct manually.

(no error message). But the log file contains:

% cat gsymcheck.log
...
Could not open [/home/ahvezda/private/gEDAsandbox/geda2/devel/gsymcheck/tests/BA
D.sym]
Exiting...

I do ack that this isn't particularly obvious.  To change this behavior,
look at the file gsymcheck/src/gsymcheck.c around line 120 and modify
the code to be something like:

    if (stat(filename, &buf) != 0) {
      fprintf(stderr, "Could not open [%s]\n", filename);
      fprintf(stderr, "Exiting...\n");
      exit(2); /* error */
    } else {
      if (verbose_mode) {
        s_log_message("Loading file [%s]\n", filename);
      }
   
      ...


If somebody provides a patch which does something a bit more obvious, I 
would be willing to change this mostly silent error behavior.

                                                                -Ales

Reply via email to