S-Lang: confusing error message when evalfile() fails

G. Milde milde at users.sourceforge.net
Tue May 27 09:55:01 UTC 2008


Dear John,

when Jed is told to evaluate a file with evalfile(), require() or
autoload() and this file is not in the slang load path (or Jed library
path for <= 0.99.18), the error report lists:

* the last directory of the path
* the *.slc file, even if no extension was specified.

Example (from the Debian bug #482487   that triggered this mail):

> > ...
> > > > S-Lang> require("pcre");
> > > > 
> > > >  Unable to load /usr/share/jed/jed-extra/pcre.slc


For the uninitiated, it looks like this is due to removal or renaming of
"pcre.slc" from /usr/share/jed/jed-extra/, while in fact it is a consequence
of the removal of /usr/share/slsh/local-packages/ and site.sl's way of
setting up the Jed library path (Debian bug #476216).

Would it be possible to change the error message to something in the line
of "Unable to find pcre.sl[c] in the S-Lang load path"?

Thanks,

Günter


References:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482487
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476216



More information about the Pkg-jed-devel mailing list