rails: sqlite3_adapter has conflict with new version of sqlite3 gem
Line 12 of activerecord-6.0.0.beta1/lib/active_record/connection_adapters/sqlite3_adapter.rb is
gem "sqlite3", "~> 1.3.6"
and it conflicts with the new sqlite 1.4.0 gem release.
Getting these two messages:
LoadError: Error loading the 'sqlite3' Active Record adapter.
Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6),
already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
and
Gem::LoadError: can't activate sqlite3 (~> 1.3.6), already activated
sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 27
- Comments: 20 (9 by maintainers)
Commits related to this issue
- Prepare for `4.6.0` release It was necessary to manually set the `sqlite3` Gem version after the release of version `1.4.0`. See https://github.com/rails/rails/issues/35153 for more info. — committed to heartcombo/devise by tegon 5 years ago
- Prepare for `4.6.0` release It was necessary to manually set the `sqlite3` Gem version after the release of version `1.4.0`. See https://github.com/rails/rails/issues/35153 for more info. — committed to heartcombo/devise by tegon 5 years ago
- Pin sqlite to avoid build issue Related: https://github.com/rails/rails/issues/35153 and https://github.com/rails/rails/pull/35154 — committed to benoittgt/rspec-rails by benoittgt 5 years ago
- Pin sqlite to avoid build issue (#2078) Related: https://github.com/rails/rails/issues/35153 and https://github.com/rails/rails/pull/35154 — committed to rspec/rspec-rails by benoittgt 5 years ago
- Pin sqlite Rails 5.2.2 is incompatible with sqlite 1.4 Fixes https://github.com/rails/rails/issues/35153 — committed to sul-dlss/argo by jcoyne 5 years ago
- Pin sqlite to ~> 1.3.13 Rails 5.2.2 is incompatible with sqlite 1.4 Refs [rails/rails#35153](https://github.com/rails/rails/issues/35153) — committed to sul-dlss/pre-assembly by jcoyne 5 years ago
- Pin sqlite to ~> 1.3.13 Rails 5.2.2 is incompatible with sqlite 1.4 Refs [rails/rails#35153](https://github.com/rails/rails/issues/35153) — committed to sul-dlss-deprecated/hydrus by jcoyne 5 years ago
- Limit sqlite lib to 1.3.6. BUmp other deps Rails sqlite_adapter does not work with the latest sqlite gem, as per https://github.com/rails/rails/issues/35153 Bump some deps based on dependabot rec's. — committed to tulibraries/manifold by bibliotechy 5 years ago
- Fix sqlite3 version conflict in active_record See https://github.com/rails/rails/issues/35153. — committed to jgraichen/paginate-responder by franzliedke 5 years ago
- Fix sqlite3 version conflict in active_record See https://github.com/rails/rails/issues/35153. — committed to jgraichen/paginate-responder by franzliedke 5 years ago
- Fix sqlite3 version conflict in active_record (#15) See https://github.com/rails/rails/issues/35153. — committed to jgraichen/paginate-responder by franzliedke 5 years ago
- Pin sqlite3 to fix tests This is to work around rails/rails#35153 — committed to febeling/sequenced by febeling 5 years ago
- Lock sqlite3 gem to version 1.3.6 See issue https://github.com/rails/rails/issues/35153 — committed to nebulab/solidus_reviews by spaghetticode 5 years ago
- Restrict version on sqlite3 gem There is a rails bug which causes compatability issues with 1.4 of this gem: https://github.com/rails/rails/issues/35153 When new rails versions are released we can r... — committed to thoughtbot/clearance by mjankowski 5 years ago
- Pin sqlite to avoid build issue (#2078) Related: https://github.com/rails/rails/issues/35153 and https://github.com/rails/rails/pull/35154 — committed to benoittgt/rspec-rails by benoittgt 5 years ago
- Pin sqlite to avoid build issue (#2078) Related: https://github.com/rails/rails/issues/35153 and https://github.com/rails/rails/pull/35154 — committed to rspec/rspec-rails by benoittgt 5 years ago
- Specify sqlite3 version for CI\nLater version of rails install sqlite3 1.4 but still require 1.3.6. see https://github.com/rails/rails/issues/35153#issuecomment-460455573 — committed to jjcarstens/protobuf-activerecord by jjcarstens 5 years ago
- sqlite3_adapter has conflict with new version of sqlite3 gem https://github.com/rails/rails/issues/35153#issuecomment-460457168 — committed to varyonic/activeadmin-rails by varyonic 5 years ago
- sqlite3_adapter has conflict with new version of sqlite3 gem https://github.com/rails/rails/issues/35153#issuecomment-460457168 — committed to varyonic/activeadmin-rails by varyonic 5 years ago
- Fix issue with `sqlite3` version (in Rails) https://github.com/rails/rails/issues/35153#issuecomment-460455573 — committed to r18n/r18n by AlexWayfer 5 years ago
@jasnow You can specify
gem "sqlite3", "~> 1.3.6"
in your Gemfile explicitly OR wait the new rails version to be released OR use master directly.The original issue was fixed in #35154
@jasnow @sponomarev This solution worked for me https://stackoverflow.com/a/54606137/1960924
@jasnow Yep. The fix will be present in the next manor releases.
(I was not the one who fixed it, I just relay the news)
But yes, the same fix in in
master
, so you should have no problem with this since 6.0.0.beta3 until the final 6.0.0 release.https://github.com/rails/rails/blob/f40860800c231ecd1daef6cf6b5a8a8eda76478d/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13