bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 59 forks source link

budplot error #186

Closed neilconway closed 13 years ago

neilconway commented 13 years ago

Perhaps I'm doing something dumb:

$ budplot cart/disorderly_cart.rb cart/useful_combos.rb CartClient
DisorderlyCart
mkdir: bud_doc: File exists
/Users/neilc/.rvm/gems/ruby-1.8.7-p334/gems/bud-0.0.4/bin/budplot:13:in
`process': undefined local variable or method `cart' for FooBar:Class
(NameError)
       from /Users/neilc/.rvm/gems/ruby-1.8.7-p334/gems/bud-0.0.4/bin/budplot:96:in
`eval'
       from /Users/neilc/.rvm/gems/ruby-1.8.7-p334/gems/bud-0.0.4/bin/budplot:13:in
`process'
       from /Users/neilc/.rvm/gems/ruby-1.8.7-p334/gems/bud-0.0.4/bin/budplot:96
       from /Users/neilc/.rvm/gems/ruby-1.8.7-p334/bin/budplot:19:in `load'
       from /Users/neilc/.rvm/gems/ruby-1.8.7-p334/bin/budplot:19

Whereas this works:

$ budplot cart/disorderly_cart.rb CartClient DisorderlyCart
$
palvaro commented 13 years ago

I think the issue is that there is no file "cart/useful_combos.rb" (the file with that name is in the kvs/ directory), and the budplot utility assumes that arguments which aren't valid filenames (hence source files) are module names to combine.