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

Errors if default path is empty #64

Closed
MaximBazarov opened this issue Jan 3, 2016 · 1 comment
Closed

Errors if default path is empty #64

MaximBazarov opened this issue Jan 3, 2016 · 1 comment
Labels
Milestone

Comments

@MaximBazarov
Copy link
Contributor

if Rambafile contains:

# The file path for new modules
project_file_path: 

# The Xcode group path to new modules
project_group_path: 

then we have this error

rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/generamba-0.7.1/lib/generamba/code_generation/code_module.rb:33:in `initialize': no implicit conversion of nil into String (TypeError)
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/generamba-0.7.1/lib/generamba/code_generation/code_module.rb:33:in `new'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/generamba-0.7.1/lib/generamba/code_generation/code_module.rb:33:in `initialize'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/generamba-0.7.1/lib/generamba/cli/gen_command.rb:40:in `new'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/generamba-0.7.1/lib/generamba/cli/gen_command.rb:40:in `gen'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/generamba-0.7.1/bin/generamba:5:in `<top (required)>'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/bin/generamba:23:in `load'
    from /Users/maksimbazarov/.rbenv/versions/2.2.3/bin/generamba:23:in `<main>'

May be it is ok, and should be, but would be great have error message instead

@etolstoy etolstoy added the bug label Jan 5, 2016
@etolstoy
Copy link
Member

etolstoy commented Jan 5, 2016

Thanks for reporting, that reminds me of another related issue.

That's definitely a bug - I can imagine a template, which includes only tests. We'll fix it in the upcoming version.

@etolstoy etolstoy added this to the Version 0.7.2 milestone Jan 7, 2016
etolstoy added a commit that referenced this issue Jan 7, 2016
…mbafile

Fixed #64: Errors if default path is empty
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