I can't get Factor to deploy from a user-defined vocab root outside the
factor source tree.

I copied extra/hello-world to work/my-hello-world, changed hello-world
to my-hello-world, and ran:

factor --script -e='USE: tools.deploy USE: my-hello-world "my-hello-world" 
deploy'

Which worked fine.

However, if I move it to a vocab root defined in FACTOR_ROOTS,
~/.factor-roots, or manually added in my ~/.factor-rc with
add-vocab-root, it gives me an ugly error that I've included at the end
of this message.  I also tried manually adding the vocab roots in the
deploy config, but that didn't work.

Is there a way for me to do this or is it currently unsupported?



Here's the transcript.  I'm using an x86-64 binary build from
2009-04-03.

$ env FACTOR_ROOTS=/home/alec/projects/factor factor --script -e='USE: 
tools.deploy USE: my-hello-world "my-hello-world" deploy'
Loading /home/alec/.factor-rc
Loading /home/alec/projects/factor/my-hello-world/my-hello-world.factor
{
    "foo/my-hello-world"
    "-i=/home/alec/local/factor/temp/staging.strip.image"
    "-resource-path=/home/alec/local/factor/"
    "-run=tools.deploy.shaker"
    "-deploy-vocab=my-hello-world"
    "-deploy-config=/home/alec/local/factor/temp/deploy-config-my-hello-world"
    "-output-image=foo/my-hello-world.image"
    "-no-stack-traces"
}
Loading resource:basis/tools/deploy/shaker/shaker.factor
Loading resource:basis/fry/fry.factor
Loading resource:basis/locals/backend/backend.factor
Loading resource:basis/summary/summary.factor
Loading resource:basis/tools/deploy/config/config.factor
Deploying my-hello-world...
Loading /home/alec/local/factor/temp/deploy-config-my-hello-world
The die word was called by the library. Unless you called it yourself,
you have triggered a bug in Factor. Please report.
Starting low level debugger...
  Basic commands:
q                -- continue executing Factor - NOT SAFE
im               -- save image to fep.image
x                -- exit Factor
  Advanced commands:
d <addr> <count> -- dump memory
u <addr>         -- dump object at tagged <addr>
. <addr>         -- print object at tagged <addr>
t                -- toggle output trimming
s r              -- dump data, retain stacks
.s .r .c         -- print data, retain, call stacks
e                -- dump environment
g                -- dump generations
card <addr>      -- print card containing address
addr <card>      -- print address containing card
data             -- data heap dump
words            -- words dump
tuples           -- tuples dump
refs <addr>      -- find data heap references to object
push <addr>      -- push object on data stack - NOT SAFE
code             -- code heap dump
READY
==== DATA STACK:
"foo/my-hello-world.image"
"my-hello-world"
T{ vocabs:no-vocab "my-hello-world" }
{ f f f f f f f f f f... }
==== RETAIN STACK:
T{ effects:effect { } { } f }
{ }
==== CALL STACK:
f
f
7 7f34cb250cc8
f
f
7 7f34cb2204a8
f
f
7 7f34cb21ac48
f
f
7 7f34cb222028
f
f
7 7f34cb25c6a8
Process exited with error code 1

Launch descriptor:

T{ process
    { command
        {
            "foo/my-hello-world"
            "-i=/home/alec/local/factor/temp/staging.strip.image"
            "-resource-path=/home/alec/local/factor/"
            "-run=tools.deploy.shaker"
            "-deploy-vocab=my-hello-world"
            
"-deploy-config=/home/alec/local/factor/temp/deploy-config-my-hello-world"
            "-output-image=foo/my-hello-world.image"
            "-no-stack-traces"
        }
    }
    { environment H{ } }
    { environment-mode +append-environment+ }
    { stdin +closed+ }
    { stdout T{ fd { fd 14 } { disposed t } } }
    { stderr +stdout+ }
    { priority +low-priority+ }
    { status 1 }
}



------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to