spring sometimes hangs rails console

People have noticed that we have to kill spring on occasion when running a rails console:

dblessing [7:57 AM] 
Since yesterday my local `bundle exec rails console` hangs on start. Not even sure how to debug it

jameslopez [8:00 AM] 
@dblessing: does it work after killing the process and running `spring stop` ?

dblessing [8:01 AM] 
@jameslopez: Sure does. Why’s that?

kamilt [8:01 AM] 
often because of bundle install

dblessing [8:01 AM] 
bundle is all good

jameslopez [8:02 AM] 
I would blame `spring`, but haven’t investigated it. I think @kamilt might be right and its’ related to some changes in the gem libraries (edited)

dblessing [8:03 AM] 
good to know. thanks @jameslopez

godfat [8:06 AM] 
when in doubt, kill spring and restart everything. code reloading in ruby can't be 100% reliable, random bugs could happen

kamilt [8:07 AM] 
they do happen, often :confused: (edited)

godfat [8:08 AM] 
and spring is quite sneaky

jacobvosmaer [8:25 AM] 
when in doubt, don't worry about spring because you turned it off

[8:25] 
`export DISABLE_SPRING=1`
1

kamilt [8:36 AM] 
spring is handy, because it speeds up running ruby processes :slightly_smiling_face: but you need to be aware of doing `bin/spring stop` periodically...

It'd be nice to avoid this and/or figure out why this is necessary.

Assignee Loading
Time tracking Loading