Closed codehugger closed 6 years ago
This happens consistently when errors occur in Rails code. To reproduce put the following code in e.g. a model class.
def self.cause_error 1/0 end
Then run it, watch it fail and then call reload!
>> MyModel.cause_error ZeroDivisionError: divided by 0 ... >> reload! Reloading...
and watch it hang for eternity. The only work-around I have found is to restart the Rails console completely.
Hey @codehugger!
Does this still happen with recent versions of Rails and irbtools?
This happens consistently when errors occur in Rails code. To reproduce put the following code in e.g. a model class.
Then run it, watch it fail and then call reload!
and watch it hang for eternity. The only work-around I have found is to restart the Rails console completely.