[consfigurator] which package is *CONSFIG*
Sean Whitton
spwhitton at spwhitton.name
Wed Dec 8 17:13:40 GMT 2021
Hello Yehouda,
On Tue 07 Dec 2021 at 11:31AM GMT, Yehouda Harpaz wrote:
> Currently, just quickloading consfigurator/tests and running the tests
> fail with errors (see below). The actual errors are called from the
> init-form of the slot SYSTEMS in the PROPSPEC class
> ("src/propspec.lisp"), because the FIND-SYMBOL call returns nil.
>
> FIND-SYMBOL returns nil because *CONSFIG* is defined by the call to
> IN-CONSFIG in "tests/property/file.lisp" in the package
> "CONSFIGURATOR/TESTS", but when FIND-SYMBOL is called the package is
> "CL-USER".
>
> in general, relying on the value of the cucrrent package is qa bad
> idea, unless you explictly set it up.
>
> If the same running process can have only one "consfiguration", than
> *CONSFIG* can simply be in "CONSFIGURATOR" package. Otherwise, the
> DEPLOY macro and friends need a way to specify which "consfiguration"
> to use, and the test should use it (and document it).
Indeed, CL-USER has no *CONSFIG*.
*CONSFIG* is meant to be an optional feature, and I pushed a change a
few days ago which is meant to prevent the sort of problem you
encountered, by altering the initform for the SYSTEMS slot. Are you
running git master or the latest stable release? Can you reproduce the
problem with git master?
--
Sean Whitton
More information about the sgo-software-discuss
mailing list