Next: Upgrading ASDF, Previous: Loading a pre-installed ASDF, Up: Loading ASDF [Contents][Index]
To check whether ASDF is properly loaded in your current Lisp image, you can run this form:
(asdf:asdf-version)
If it returns a string, that is the version of ASDF that is currently installed.
If it raises an error, then either ASDF is not loaded, or you are using a very old version of ASDF, and need to install ASDF 3.
You can check whether an old version is loaded by checking if the ASDF package is present. The form below will allow you to programmatically determine whether a recent version is loaded, an old version is loaded, or none at all:
(when (find-package :asdf) (let ((ver (symbol-value (or (find-symbol (string :*asdf-version*) :asdf) (find-symbol (string :*asdf-revision*) :asdf))))) (etypecase ver (string ver) (cons (with-output-to-string (s) (loop for (n . m) on ver do (princ n s) (when m (princ "." s))))) (null "1.0"))))
If it returns nil
then ASDF is not installed.
Otherwise it should return a string.
If it returns "1.0"
, then it can actually be
any version before 1.77 or so, or some buggy variant of 1.x.
If you are experiencing problems with ASDF, please try upgrading to the latest released version, using the method below, before you contact us and raise an issue.