Show does not work without specific *.xcodeproj #45

Closed
mtitolo opened this Issue Jan 15, 2013 · 0 comments

Comments

Projects
None yet
2 participants
Member

mtitolo commented Jan 15, 2013

From the documentation:

Shows an overview of a project in a YAML representation.'

    $ show [PROJECT]

     If no `PROJECT' is specified then the current work directory is searched
     for one.

Yet when I type xcodeproj show while in a directory with a single *.xcodeproj, I get this error:

can't convert nil into String
/Users/michele/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc9/lib/xcodeproj/command/show.rb:14:in `expand_path'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc9/lib/xcodeproj/command/show.rb:14:in `initialize'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc9/lib/xcodeproj/command.rb:102:in `new'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc9/lib/xcodeproj/command.rb:102:in `parse'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc9/lib/xcodeproj/command.rb:64:in `run'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc9/bin/xcodeproj:13:in `<top (required)>'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/bin/xcodeproj:19:in `load'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/bin/xcodeproj:19:in `<main>'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/Users/michele/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

Specifying a file name works fine, and prints out the file as expected.

fabiopelosin added a commit that referenced this issue Jan 24, 2013

Merge pull request #47 from drodriguez/gh-45-fix-show-no-args
Allow show command without arguments, as its docs say. Fixes #45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment