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

Most upvoted comments

@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 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