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

Generators (like sprout-as3) should not fail with a trailing slash in project name #72

Open
lukebayes opened this issue Jul 22, 2011 · 0 comments
Labels

Comments

@lukebayes
Copy link
Owner

The following command should create a new project named "TempProject", rather than failing:

$ sprout-as3 TempProject/

Created directory: ./TempProject/
Created file: ./TempProject/rakefile.rb
Created file: ./TempProject/Gemfile
Created directory: ./TempProject/src
[Errno::ENOENT] No such file or directory - ./TempProject/src/
TempProject/.as
Skipped remove directory: ./TempProject/bin
Skipped remove directory: ./TempProject/lib
Skipped remove missing file: ./TempProject/assets/skins/
DefaultProjectImage.png
Skipped remove directory: ./TempProject/assets/skins
Skipped remove directory: ./TempProject/assets
Skipped remove missing file: ./TempProject/src/TempProjectRunner.as
Skipped remove missing file: ./TempProject/src/TempProject/.as
Removed directory: ./TempProject/src
Removed file: ./TempProject/Gemfile
Removed file: ./TempProject/rakefile.rb
Skipped remove directory: ./TempProject/
/Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/lib/
sprout/generator/file_manifest.rb:46:in initialize': No such file or directory - /Users/office/Documents/TempProject/src/TempProject/.as (Errno::ENOENT) from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/file_manifest.rb:46:inopen'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/file_manifest.rb:46:in write_file' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/file_manifest.rb:20:increate'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:44:inselect'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:19:increate'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:44:inselect'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:19:increate'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:44:inselect'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:19:increate'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/command.rb:57:in execute' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/base.rb:82:inexecute'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/flashsdk-1.0.27.pre/
bin/sprout-as3:8
from /Users/office/.rvm/gems/ruby-1.8.7-p299/bin/sprout-as3:19:in
`load'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/bin/sprout-as3:19

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

1 participant