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

Endless loop on require #902

Closed
ruralbrewer opened this issue May 3, 2014 · 2 comments
Closed

Endless loop on require #902

ruralbrewer opened this issue May 3, 2014 · 2 comments

Comments

@ruralbrewer
Copy link

Since upgrading to OSX Mavericks, my RoR is broken. So I started over, and installed a fresh version of RVM, updated everything. I am now running ruby 2.1.1p76 and the latest rails. Bu now if I try to run "rails generate ... " it goes into an endless loop.

I reached out to the RVM community, and with some help created this file.
https://gist.github.com/ruralbrewer/2aa7ccc1c6564ee5bb2b
which is the last several thousand lines of a tracer

It was suggested that this is a rubygems issue

@drbrain drbrain added this to the Future milestone May 8, 2014
@drbrain
Copy link
Member

drbrain commented May 8, 2014

How do you know it is infinitely looping? There is no evidence in your gist:

$ curl -s `pbpaste` | grep " require "
#0:/usr/local/rvm/gems/ruby-2.1.1@myapp/gems/railties-4.1.0/lib/rails/cli.rb:1::-: require 'rails/app_rails_loader'
#0:/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:38:Kernel:>:   def require path
#0:/usr/local/rvm/gems/ruby-2.1.1@myapp/gems/railties-4.1.0/lib/rails/app_rails_loader.rb:1::-: require 'pathname'
#0:/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:38:Kernel:>:   def require path
#0:/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:12::-: require 'pathname.so'
#0:/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:38:Kernel:>:   def require path

@ruralbrewer
Copy link
Author

I have since worked out the issue on my end. I was using the the --pre option when installing Rails and so I think the problem was in that version. But to answer your question when I tried to use "rails generate" nothing would happen. It would hang forever. And though the gist is many lines, it ended there, and from what I understand, that is not where it is supposed to end. Like I said, I reinstalled rails without the --pre option, and mine is working fine now. So if you don't see a problem there, feel free to close this.

@krainboltgreene krainboltgreene removed this from the Future milestone Dec 31, 2015
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

3 participants