Issue during set_heroku_remotes #227

Closed
neiled opened this Issue Sep 18, 2013 · 7 comments

Comments

Projects
None yet
6 participants

neiled commented Sep 18, 2013

Hi,

I know I'm not a thoughtbot employee but I've used suspenders happily in the past 😄

This is the first time I've tried out the 4.0 release and I'm getting the error:

Could not find "templates/bin_setup" in any of your source paths. Your current source paths are:
/Users/neil/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/generators/rails/app/templates
/Users/neil/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/suspenders-1.5.1/templates
/Users/neil/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/suspenders-1.5.1/templates

This is during the set_heroku_remotes action. It looks like it's trying to concatenate bin_setup but it's looking for templates/bin_setup rather than just bin_setup.
I can't figure out why my source paths would be different to whatever you guys are doing...

Feel free to close as a 'will not fix' if it's just some setup that you have as part of the 'laptop' script that I can't figure out.

Contributor

croaky commented Oct 15, 2013

Your source paths look fine. bin_setup should be in /Users/neil/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/suspenders-1.5.1/templates. Can you do an ls of that directory?

dougvk commented Oct 19, 2013

+1

@croaky

drwxrwxr-x 3 dougvk dougvk 4096 Oct 19 19:59 .
drwxrwxr-x 6 dougvk dougvk 4096 Oct 19 19:59 ..
-rw-r--r-- 1 dougvk dougvk 216 Oct 19 19:59 application.css.scss
-rw-r--r-- 1 dougvk dougvk 405 Oct 19 19:59 background_jobs_rspec.rb
-rwxr-xr-x 1 dougvk dougvk 587 Oct 19 19:59 bin_setup
-rw-r--r-- 1 dougvk dougvk 191 Oct 19 19:59 config_locales_en.yml
-rw-r--r-- 1 dougvk dougvk 388 Oct 19 19:59 database_cleaner_rspec.rb
-rw-r--r-- 1 dougvk dougvk 140 Oct 19 19:59 disable_xml_params.rb
-rw-r--r-- 1 dougvk dougvk 736 Oct 19 19:59 errors.rb
-rw-r--r-- 1 dougvk dougvk 188 Oct 19 19:59 factories_spec_rake_task.rb
-rw-r--r-- 1 dougvk dougvk 320 Oct 19 19:59 factories_spec.rb
-rw-r--r-- 1 dougvk dougvk 78 Oct 19 19:59 factory_girl_syntax_rspec.rb
-rw-r--r-- 1 dougvk dougvk 123 Oct 19 19:59 _flashes.html.erb
-rw-r--r-- 1 dougvk dougvk 814 Oct 19 19:59 Gemfile_clean
-rw-r--r-- 1 dougvk dougvk 179 Oct 19 19:59 _javascript.html.erb
drwxrwxr-x 2 dougvk dougvk 4096 Oct 19 19:59 javascripts
-rw-r--r-- 1 dougvk dougvk 206 Oct 19 19:59 postgresql_database.yml.erb
-rw-r--r-- 1 dougvk dougvk 92 Oct 19 19:59 Procfile
-rw-r--r-- 1 dougvk dougvk 62 Oct 19 19:59 rack_timeout.rb
-rw-r--r-- 1 dougvk dougvk 373 Oct 19 19:59 README.md.erb
-rw-r--r-- 1 dougvk dougvk 19 Oct 19 19:59 rspec
-rw-r--r-- 1 dougvk dougvk 58 Oct 19 19:59 sample.env
-rw-r--r-- 1 dougvk dougvk 315 Oct 19 19:59 smtp.rb
-rw-r--r-- 1 dougvk dougvk 601 Oct 19 19:59 spec_helper.rb
-rw-r--r-- 1 dougvk dougvk 148 Oct 19 19:59 suspenders_gitignore
-rw-r--r-- 1 dougvk dougvk 351 Oct 19 19:59 suspenders_layout.html.erb.erb
-rw-r--r-- 1 dougvk dougvk 671 Oct 19 19:59 unicorn.rb

I just had the same issue crop up.

As @neiled pointed out, AppBuilder#set_heroku_remotes is looking for templates/bin_setup, when perhaps it should just be looking for bin_setup...

If I get time later I may experiment with this to confirm my suspicions and, if all goes well, issue a pull request. In the meantime, perhaps this info helps someone else stumbling upon the same.

dougvk commented Nov 13, 2013

my thought as well - i tried switching it to just bin_setup and it still failed (definitely could've missed something). I worked around the issue for now but it occurred every time I started a new suspenders project on 4.0. spin up a linux server and check it out!

thanks for your time and help

croaky added a commit that referenced this issue Nov 25, 2013

Contributor

croaky commented Nov 25, 2013

Should be fixed in #238

@croaky croaky closed this Nov 25, 2013

croaky added a commit that referenced this issue Nov 25, 2013

Set Heroku remotes without using concat_file
* Fix #227
* Fix space between git host and git repo name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment