Hello,
starting from a file currently being processed (as per either *compile-file-truename* or *load-truename*), how can I retrieve the ASDF system currently being processed, and ultimately, the corresponding source file component (when *load-truename* returns a fasl) ?
Thanks.
Not possible without defining extra methods *before* you start building the system, or an indexing pass afterwards.
See how I do it in swank-asdf (which the slime maintainers unhappily disabled by default).
On Tue, Nov 24, 2015, 05:46 Didier Verna didier@lrde.epita.fr wrote:
Hello,
starting from a file currently being processed (as per either *compile-file-truename* or *load-truename*), how can I retrieve the ASDF system currently being processed, and ultimately, the corresponding source file component (when *load-truename* returns a fasl) ?
Thanks.
-- My new Jazz CD entitled "Roots and Leaves" is out! Check it out: http://didierverna.com/records/roots-and-leaves.php
Lisp, Jazz, Aïkido: http://www.didierverna.info
I defined variables which show current component and current system. They can be used by IDEs to navigate to sources, or by your code to do what you need.
I suggested this as a modification of asdf, but asdf maintainers said that special variables are dangerous. Maybe.
My code is here: https://bitbucket.org/budden/budden-tools/src/default/asdf-3.1.4-tools.lisp?...
P.S. it also depends on decorate-function system which is in that repository too.
2015-11-24 21:22 GMT+03:00, 73budden . budden73@gmail.com:
I defined variables which show current component and current system. They can be used by IDEs to navigate to sources, or by your code to do what you need.
I suggested this as a modification of asdf, but asdf maintainers said that special variables are dangerous. Maybe.
My code is here: https://bitbucket.org/budden/budden-tools/src/default/asdf-3.1.4-tools.lisp?...