Abuse of IGNORE-ERRORS

Bug #569109 reported by Juanjo Garcia-Ripoll
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ASDF
Fix Released
Low
Faré

Bug Description

In REGISTER-ASD-DIRECTORY, a call to DIRECTORY is wrapped in an IGNORE-ERRORS.

This is problematic because if there is a problem with the setup the user does not know but ASDF will refuse to locate any system.

As an example, in the tree ~/src/lisp I had a broken link from ~/src/lisp/update, which was a script -- nothing related to ASDF at all --. However, DIRECTORY properly complained that the "update" was not a valid object, neither a directory, nor a file, nor a link to any recognizable filesystem object. This error was obvious at the command line (see below) but was being muffled by ASDF.

I suggest being more careful and issuing a warning when ASDF can not process a given configuration line.

> (asdf:ensure-source-registry)

;;; Warning: Error when scanning system definitions in directory
 /Users/jjgarcia/src/lisp/
Error:
Filesystem error with pathname #P"/Users/jjgarcia/src/lisp/local/update".
Either
 1) the file does not exist, or
 2) we are not allow to access the file, or
 3) the pathname points to a broken symbolic link.

Revision history for this message
Juanjo Garcia-Ripoll (worm) wrote :
Revision history for this message
Faré (fahree) wrote :

Fixed in 1.706 (together with embarrassing bug I introduced in 1.705 that broke ECL. Oops.)

Changed in asdf:
assignee: nobody → Faré (fahree)
importance: Undecided → Low
milestone: none → version2
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.