2010/2/3 Mark Evenson evenson@panix.com:
On 2/3/10 6:38 PM, Alan Ruttenberg wrote: […]
First off, is the example I gave in this thread. (TRANSLATE-PATHNAME #P"IDO:IMMUNOLOGY;" #P"IDO:IMMUNOLOGY;**;*.*" #P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/**/*.*")
This succeeds in SBCL and throws an error (regressing) in ABCL. So that part is an issue no matter what.
I don't get that, I see the following:
dada:~/work/abcl$ sbcl This is SBCL 1.0.33, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/.
SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information.
- (setf (logical-pathname-translations "ido") '(("IDO:IMMUNOLOGY;**;*.*" "/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/**/*.*")))
This part is unnecessary. The call to translate-pathname below doesn't use it.
(("IDO:IMMUNOLOGY;**;*.*"
"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/**/*.*"))
- (TRANSLATE-PATHNAME #P"IDO:IMMUNOLOGY;" #P"IDO:IMMUNOLOGY;**;*.*" #P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/**/*.*")
#P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/"
Which is missing the trailing "/immunology/". Which SBCL are you using?
Same answer I get. There shouldn't be a trailing "/immunology/" in the above example.
In my environment, after loading the *load-truename* relative form I gave in my previous email, from the file
(load "/Users/alanr/repos/infectious-disease-ontology/trunk/src/tools/ido.asd")
Then:
(truename "ido:immunology;ido-s4lps-tlr.xlsx")
Calling (TRANSLATE-PATHNAME #P"IDO:IMMUNOLOGY;IDO-S4LPS-TLR.XLSX" #P"IDO:IMMUNOLOGY;**;*.*" #P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/**/*.*") TRANSLATE-PATHNAME returned #P"/users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/ido-s4lps-tlr.xlsx"
in sbcl
* (truename "ido:immunology;ido-s4lps-tlr.xlsx") 0: (TRANSLATE-PATHNAME #P"IDO:IMMUNOLOGY;IDO-S4LPS-TLR.XLSX.NEWEST" #P"IDO:IMMUNOLOGY;**;*.*"
#P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/**/*.*") 0: TRANSLATE-PATHNAME returned #P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/ido-s4lps-tlr.xlsx" #P"/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/ido-s4lps-tlr.xlsx" * This is SBCL 1.0.29.
-Alan