Spring has been nothing but a nuisance for me over the years, to the extent that I now have DISABLE_SPRING=1
in my bash profile. It has cost me far more hours trying to diagnose problems that never really existed than it has saved, including excessive CPU use, not reloading files that have changed and (recently in CI): The user limit on the total number of inotify watches was reached
.
I am currently working with an app that has somehow integrated Spring as a dependency and so my DISABLE_SPRING=1
config doesn’t work, and the only way I can reliably get any Ruby/Rails commands to work is by killing Spring first:
pkill -l spring; bin/rspec …
The thing is, I’m a relatively competent developer and have been doing Rails for years, and this still sometimes bites me, and when it does, it’s really confusing. Spring issues for new developers must be very confusing indeed.
edit I should point out, I don’t use docker or networked filesystems, these issues all happen on the local machine.