Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awestruct fails to start due to missing $LOG variable #348

Closed
mojavelinux opened this issue Sep 8, 2013 · 1 comment
Closed

Awestruct fails to start due to missing $LOG variable #348

mojavelinux opened this issue Sep 8, 2013 · 1 comment
Labels
Milestone

Comments

@mojavelinux
Copy link
Member

If there is an error loading one of the extensions, Awestruct fails to start when attempting to log a message.

Here's the backtrace to the error:

path/to/awestruct/lib/awestruct/extensions/pipeline.rb:6:in `rescue in block in <top (required)>':
undefined method `debug?' for nil:NilClass (NoMethodError)
    from /path/to/awestruct/lib/awestruct/extensions/pipeline.rb:3:in `block in <top (required)>'
    from /path/to/awestruct/lib/awestruct/extensions/pipeline.rb:2:in `each'
    from /path/to/awestruct/lib/awestruct/extensions/pipeline.rb:2:in `<top (required)>'
    from /path/to/awestruct/lib/awestruct/engine.rb:10:in `require'
    from /path/to/awestruct/lib/awestruct/engine.rb:10:in `<top (required)>'
    from /path/to/awestruct/lib/awestruct/cli/generate.rb:1:in `require'
    from /path/to/awestruct/lib/awestruct/cli/generate.rb:1:in `<top (required)>'
    from /path/to/awestruct/lib/awestruct/cli/invoker.rb:4:in `require'
    from /path/to/awestruct/lib/awestruct/cli/invoker.rb:4:in `<top (required)>'
    from /path/to/awestruct/bin/awestruct:6:in `require'
    from /path/to/awestruct/bin/awestruct:6:in `<top (required)>'
    from /path/to/awestruct/bin/awestruct:23:in `load'
    from /path/to/awestruct/bin/awestruct:23:in `<main>'
    from /path/to/awestruct/bin/ruby_noexec_wrapper:14:in `eval'
    from /path/to/awestruct/bin/ruby_noexec_wrapper:14:in `<main>'

The problem seems to be that invoker.rb ends up loading the engine, which loads the pipeline, which attempts to use $LOG before it is initialized.

@mojavelinux
Copy link
Member Author

It also fails to create a new site (Init) due to invalid assignment in initialize method.

LightGuard added a commit that referenced this issue Sep 12, 2013
@LightGuard LightGuard added this to the 0.5.4 milestone Apr 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants