Open flvrone opened 6 years ago
I got the same problem with spring (2.0.2), rails (5.1.3)
. After running bundle update spring
, it works now, but spring
didn't get updated, weird. I'll keep update if the issue comes back again.
Parkers-Wifi:financial_accounting haofuxin$ bundle update spring
Warning: the running version of Bundler (1.16.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://gems.ruby-china.com/.........
Fetching gem metadata from https://gems.ruby-china.com/.
Resolving dependencies.....
Using rake 12.0.0
Fetching concurrent-ruby 1.1.5 (was 1.0.5)
Installing concurrent-ruby 1.1.5 (was 1.0.5)
Using i18n 0.9.5 (was 0.9.1)
Using minitest 5.11.3 (was 5.10.3)
Using thread_safe 0.3.6
Using tzinfo 1.2.5 (was 1.2.4)
Using activesupport 5.1.3
Using builder 3.2.3
Using erubi 1.7.0
Using mini_portile2 2.3.0
Using nokogiri 1.8.1
Using rails-dom-testing 2.0.3
Using crass 1.0.3
Using loofah 2.1.1
Using rails-html-sanitizer 1.0.3
Using actionview 5.1.3
Using rack 2.0.3
Using rack-test 0.6.3
Using actionpack 5.1.3
Using nio4r 2.1.0
Using websocket-extensions 0.1.2
Using websocket-driver 0.6.5
Using actioncable 5.1.3
Using globalid 0.4.0
Using activejob 5.1.3
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using mail 2.6.6
Using actionmailer 5.1.3
Using activemodel 5.1.3
Using case_transform 0.2
Using jsonapi-renderer 0.1.3
Using active_model_serializers 0.10.6
Using arel 8.0.0
Using activerecord 5.1.3
Using public_suffix 3.0.0
Using addressable 2.5.2
Using amq-protocol 2.2.0
Using api-pagination 4.6.3
Using ast 2.3.0
Using bcrypt 3.1.11
Using bindex 0.5.0
Using bundler 1.16.2
Using bunny 2.6.6
Using byebug 9.0.6
Using mini_mime 0.1.4
Using xpath 2.1.0
Using capybara 2.15.1
Using ffi 1.9.18
Using childprocess 0.7.1
Using chronic 0.10.2
Using with_advisory_lock 3.2.0
Using closure_tree 6.6.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.8.2
Using thor 0.20.0
Using railties 5.1.3
Using coffee-rails 4.2.2
Using deep_merge 1.1.1
Using config 1.4.0
Using database_cleaner 1.6.2
Using diff-lcs 1.3
Using docile 1.1.5
Using factory_bot 4.8.2
Using factory_bot_rails 4.8.2
Using faker 1.6.6
Using multipart-post 2.0.0
Using faraday 0.13.1
Using google-protobuf 3.4.1.1 (universal-darwin)
Using googleapis-common-protos-types 1.0.0
Using jwt 1.5.6
Using little-plugger 1.1.4
Using multi_json 1.12.2
Using logging 2.2.2
Using memoist 0.16.0
Using os 0.9.6
Using signet 0.8.1
Using googleauth 0.5.3
Using sprockets 3.7.1
Using sprockets-rails 3.2.0
Using rails 5.1.3
Using graphiql-rails 1.4.4
Using graphql 1.6.7
Using grpc 1.6.7 (universal-darwin)
Using grpc-tools 1.6.7
Using multi_xml 0.6.0
Using httparty 0.15.6
Using jbuilder 2.7.0
Using jquery-rails 4.3.1
Using jquery-ui-rails 6.0.1
Using json 2.1.0
Using kaminari-core 1.0.1
Using kaminari-actionview 1.0.1
Using kaminari-activerecord 1.0.1
Using kaminari 1.0.1
Using rb-fsevent 0.10.2
Using rb-inotify 0.9.10
Using ruby_dep 1.5.0
Using listen 3.1.5
Using request_store 1.3.2
Using lograge 0.7.1
Using logstash-event 1.2.02
Using middleware 0.1.0
Using msgpack 1.1.0
Using parallel 1.12.0
Using parser 2.4.0.0
Using pg 0.21.0
Using plutus 0.13
Using polyamorous 1.3.1
Using powerpack 0.1.1
Using protobuf 3.8.1
Using puma 3.10.0
Using rails-controller-testing 1.0.2
Using rainbow 2.2.2
Using ransack 1.8.3
Using trollop 2.1.2
Using rbtrace 0.4.8
Using redis 3.3.5
Using redis-store 1.4.1
Using redis-rack 2.0.4
Using redis-actionpack 5.0.2
Using redis-activesupport 5.0.4
Using redis-rails 5.0.2
Using redlock 1.0.0
Using rspec-support 3.6.0
Using rspec-core 3.6.0
Using rspec-expectations 3.6.0
Using rspec-mocks 3.6.0
Using rspec-rails 3.6.1
Using ruby-progressbar 1.8.1
Using unicode-display_width 1.3.0
Using rubocop 0.49.1
Using rubocop-rspec 1.15.1
Using rubyzip 1.2.1
Using sass-listen 4.0.0
Using sass 3.5.1
Using tilt 2.0.8
Using sass-rails 5.0.6
Using selenium-webdriver 3.5.1
Using sentry-raven 2.4.0
Using sigdump 0.2.4
Using serverengine 1.5.11
Using simplecov-html 0.10.2
Using simplecov 0.15.0
Using thread 0.1.7
Using sneakers 2.5.0
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using turbolinks-source 5.0.3
Using turbolinks 5.0.1
Using uglifier 3.2.0
Using web-console 3.5.1
Using whenever 0.10.0
Bundler attempted to update spring but its version stayed the same
Bundle updated!
@FX-HAO perhaps it did restart spring though, and that "fixed" an issue :thinking:
Hey Guys, I've recently posted a question on SO, but no one answers, I think that my issue is actually related to spring, here's the question: https://stackoverflow.com/questions/48461291/ruby-on-rails-5-2-0-beta2-initializers-loading Long story short: I have a custom (not from any gem) module in
/lib/my_module.rb
inside a rails (5.2.0.beta2) project, like this:And I have an initializer for it,
/config/initializers/my_module.rb
:But when I run
rails c
I haveMyModule.some_attr
set tonil
always, and only if I change something in MyModule initializer and nothing else after it, and runrails c
immediately I haveMyModule.some_attr
set to'some_val'
.