8000 Ruby 2.6 isn't really supported · Issue #721 · castwide/solargraph · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ruby 2.6 isn't really supported #721

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

Closed
alagos opened this issue Jun 18, 2024 · 4 comments
Closed

Ruby 2.6 isn't really supported #721

alagos opened this issue Jun 18, 2024 · 4 comments

Comments

@alagos
Copy link
alagos commented Jun 18, 2024

According to the gemspec it is, but in practice I'm getting:

ERROR:  Error installing solargraph:
	There are no versions of rubocop-ast (>= 1.31.1, < 2.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
	rubocop-ast requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.

I tried installing rubocop 1.50.2 as 1.51.0 dropped the 2.6 support and that worked.
So it should be dropped ruby 2.6 support or added to the gemspec:

s.add_runtime_dependency 'rubocop', '~> 1.50.0'
@kevgathuku
Copy link

Same issue here with Ruby 2.6.
Thanks for the workaround @alagos 🎉🎉🎉🎉🎉🎉

@castwide
Copy link
Owner

I'd say that Ruby 2.6 is supported, but requires some manual dependency management. Workarounds like this are a common requirement when working with older versions of Ruby. It's also worth noting that Bundler is smart enough to find a compatible Rubocop dependency on its own if you add Solargraph to your project's Gemfile.

Regardless, it won't be long before 2.6 gets dropped in a future release. Probably less than a year.

@castwide
Copy link
Owner

Due to an issue with RBS < 3.3, the next release is likely to drop support for Ruby < 3.

@castwide
Copy link
Owner

Version 0.53.0 released requiring Ruby >= 3.

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

3 participants
0