Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error accessing spell checkers under Ruby 3.4.x #895

Open
ged opened this issue Jan 27, 2025 · 0 comments
Open

Error accessing spell checkers under Ruby 3.4.x #895

ged opened this issue Jan 27, 2025 · 0 comments

Comments

@ged
Copy link

ged commented Jan 27, 2025

When I run any mine command under Ruby 3.4.x, I get the following error:

❯ mine --version                                                                                                                                                                                                                                                                                                                                                 /path/to/ruby/lib/ruby/gems/3.4.0/gems/thor-0.20.3/lib/thor/error.rb:109:in '<class:Thor>': uninitialized constant DidYouMean::SPELL_CHECKERS (NameError)

    DidYouMean::SPELL_CHECKERS.merge!(
              ^^^^^^^^^^^^^^^^
Did you mean?  DidYouMean::SpellChecker
	from /path/to/ruby/lib/ruby/gems/3.4.0/gems/thor-0.20.3/lib/thor/error.rb:1:in '<top (required)>'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from /path/to/ruby/lib/ruby/gems/3.4.0/gems/thor-0.20.3/lib/thor/base.rb:4:in '<top (required)>'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from /path/to/ruby/lib/ruby/gems/3.4.0/gems/thor-0.20.3/lib/thor/group.rb:1:in '<top (required)>'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from /path/to/ruby/lib/ruby/gems/3.4.0/gems/ore-0.11.0/lib/ore/generator.rb:6:in '<top (required)>'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from <internal:/path/to/ruby/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
	from /path/to/ruby/lib/ruby/gems/3.4.0/gems/ore-0.11.0/bin/mine:6:in '<top (required)>'
	from /path/to/ruby/bin/mine:25:in 'Kernel#load'
	from /path/to/ruby/bin/mine:25:in '<main>'
	from /path/to/ruby/bin/ruby_executable_hooks:22:in 'Kernel#eval'
	from /path/to/ruby/bin/ruby_executable_hooks:22:in '<main>'

I tried altering the code in question to use DidYouMean.spell_checkers instead, but it's frozen by the time Thor tries to alter it, so I opted to just comment it out instead. This works if you also install the sorted_set gem and invoke it using ruby -r sorted_set -S mine [...].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant