Skip to content

'frank compile' fails on fresh install/project using rbenv/1.9.3p194 [x86_64-darwin11.4.0] #76

Description

@jackrusher

I did a 'gem install frank', followed by these steps:

$ frank new thing

Frank is...

  • Creating your project 'thing'

  • Copying default Frank template

    Congratulations, 'thing' is ready to go!
    $ cd thing/
    $ frank compile

Frank is...

  • Creating 'exported'
    /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/compile.rb:12:in join': can't convert nil into String (TypeError) from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/compile.rb:12:incompile_templates'
    from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/compile.rb:84:in export!' from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/cli.rb:134:inrun!'
    from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/cli.rb:99:in run' from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/bin/frank:20:in<top (required)>'
    from /Users/jack/.rbenv/versions/1.9.3-p194/bin/frank:23:in load' from /Users/jack/.rbenv/versions/1.9.3-p194/bin/frank:23:in'

... this is caused by an attempt to join a nil value in Frank.root. The problem is resolved if I add 'compile' to the list of terms that bootstrap with Dir.pwd in cli.rb.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions