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

Error running generator after updating to rails 4.2 #32

Open
dunnston opened this issue Jan 6, 2015 · 4 comments
Open

Error running generator after updating to rails 4.2 #32

dunnston opened this issue Jan 6, 2015 · 4 comments

Comments

@dunnston
Copy link

dunnston commented Jan 6, 2015

I am getting the following error when trying to run the generator after updating ruby to 2.2.0 and rails to 4.2.

gsub /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/designmodo-flatuipro-rails-1.3.2.0.branch/app/assets/less/variables.less
/Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:231:in binread': No such file or directory @ rb_sysopen - /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/designmodo-flatuipro-rails-1.3.2.0.branch/app/assets/less/variables.less (Errno::ENOENT) from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:231:ingsub_file'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/designmodo-flatuipro-rails-1.3.2.0.branch/lib/generators/flatuipro/install/install_generator.rb:103:in patch_assets' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:inblock in invoke_all'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in each' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:inmap'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in invoke_all' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:indispatch'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/generators.rb:157:ininvoke'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/generate.rb:13:in <top (required)>' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:inrequire'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in block in require' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:inload_dependency'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in require' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:123:inrequire_command!'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:130:in generate_or_destroy' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:50:ingenerate'
from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in<top (required)>'
from bin/rails:4:in require' from bin/rails:4:in

'

@reflection
Copy link
Owner

Hi dunnston,

I think you have to re-run the install generator because upgrading ruby means a new gems directory, which also means that the Flat UI Pro assets need to be copied over again.

@dunnston
Copy link
Author

dunnston commented Jan 6, 2015

Thanks for responding so quickly. Unfortunately, that
is where I am running to to trouble. I get the error during the installation when attempting to re-run the generator.

On Jan 6, 2015, at 2:48 AM, reflection [email protected] wrote:

Hi dunnston,

I think you have to re-run the install generator because upgrading ruby means a new gems directory, which also means that the Flat UI Pro assets need to be copied over again.


Reply to this email directly or view it on GitHub.

@dunnston
Copy link
Author

It's been almost a year and I am still getting the same exact error. Any ideas on how to fix this?

@dunnston
Copy link
Author

I think I may have finally figured it out. Looking at this line /Users/ryandunn/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/designmodo-flatuipro-rails-1.3.2.0.branch/app/assets/less/variables.less I suspect it is not able to find the variables.less files. I looked in the directly and it was not there instead there was a Users folder there that restarted the entire file path back to the file. I copied the files into the less directory and tried reinstalling. I did not get an error this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants