trying to make a not existing addon generates an obscure error

View: New views
2 Messages — Rating Filter:   Alert me  

trying to make a not existing addon generates an obscure error

by Paulo Köch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Current behaviour:
$ make RandomAddon
[make's output]
make: *** [install] Error 71

  Exception: nil does not respond to 'build'
  ---------
  nil build                            Project.io 35
  Project buildAddon                   build.io 13

Expected behaviour:
$ make RandomAddon
[make's output]
No addon named 'RandomAddon' found!

Reason:
Project buildAddon doesn't check if the selected addon exists.

Proposed implementation:
Project buildAddon := method(name,
                currentAddon := addons detect(addon, addon name == name)
                if(currentAddon,
                        currentAddon build(options),
                        "No addon named '#{name}' found!" interpolate println
                )
        )

Re: trying to make a not existing addon generates an obscure error

by Steve Dekorte :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 2008-05-07, at 7:25 AM, Paulo Köch wrote:

> Current behaviour:
> $ make RandomAddon
> [make's output]
> make: *** [install] Error 71
>
>  Exception: nil does not respond to 'build'

This was fixed with a recent push. Please do a git pull, a clean build  
and try again.
LightInTheBox - Buy quality products at wholesale price