dropcaster icon indicating copy to clipboard operation
dropcaster copied to clipboard

Issue with new version of activesupport

Open julianhinz opened this issue 4 years ago • 1 comments

After fresh install of dropcaster I get this error:

Traceback (most recent call last):
	13: from /usr/local/lib/ruby/gems/2.7.0/bin/dropcaster:23:in `<main>'
	12: from /usr/local/lib/ruby/gems/2.7.0/bin/dropcaster:23:in `load'
	11: from /usr/local/lib/ruby/gems/2.7.0/gems/dropcaster-1.1.0/bin/dropcaster:29:in `<top (required)>'
	10: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	 9: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	 8: from /usr/local/lib/ruby/gems/2.7.0/gems/dropcaster-1.1.0/lib/dropcaster.rb:6:in `<top (required)>'
	 7: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	 6: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	 5: from /usr/local/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/core_ext/date_time/conversions.rb:5:in `<top (required)>'
	 4: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	 3: from /usr/local/Cellar/[email protected]/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	 2: from /usr/local/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/core_ext/time/conversions.rb:6:in `<top (required)>'
	 1: from /usr/local/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/core_ext/time/conversions.rb:72:in `<class:Time>'
/usr/local/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/core_ext/time/conversions.rb:72:in `alias_method': undefined method `xmlschema' for class `Time' (NameError)

If I manually uninstall activesupport-6.1.0 and install activesupport-6.0.0 all works fine. This issue here seems to be related: https://github.com/rails/rails/issues/40861

julianhinz avatar Jan 04 '21 15:01 julianhinz

Solved this for me by adding explicit version for activesupport in my podcast project Gemfile

source 'https://rubygems.org'

gem 'activesupport', '6.0.0'
gem 'dropcaster'

terotil avatar Jan 06 '21 12:01 terotil

Please re-open if the problem still persists.

nerab avatar Oct 09 '22 17:10 nerab