Skip to content

Commit c6d9bc3

Browse files
committed
Fix build error when using Ruby LSP >= 0.24
Follow-up to rubocop/rubocop-ast#382. This PR fixes the following build error on when using Parser gem with `prism_result` and Ruby LSP >= 0.24. https://github.com/rubocop/rubocop/actions/runs/15497886582/job/43638843391?pr=14251
1 parent 304f507 commit c6d9bc3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Gemfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ gem 'rubocop-performance', '~> 1.25.0'
1616
gem 'rubocop-rake', '~> 0.7.0'
1717
gem 'rubocop-rspec', '~> 3.6.0'
1818
# Ruby LSP supports Ruby 3.0+.
19-
# FIXME: This is a workaround to avoid build errors in the Ruby LSP add-on with Ruby LSP 0.24.
20-
# Once https://github.com/rubocop/rubocop-ast/pull/382 is released,
21-
# please specify `~> 0.24` instead of `~> 0.23.0`.
22-
gem 'ruby-lsp', '~> 0.23.0', platform: :mri if RUBY_VERSION >= '3.0'
19+
gem 'ruby-lsp', '~> 0.24', platform: :mri if RUBY_VERSION >= '3.0'
2320
gem 'simplecov', '~> 0.20'
2421
gem 'stackprof', platform: :mri
2522
gem 'test-queue'

rubocop.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
4040
s.add_dependency('parser', '>= 3.3.0.2')
4141
s.add_dependency('rainbow', '>= 2.2.2', '< 4.0')
4242
s.add_dependency('regexp_parser', '>= 2.9.3', '< 3.0')
43-
s.add_dependency('rubocop-ast', '>= 1.45.0', '< 2.0')
43+
s.add_dependency('rubocop-ast', '>= 1.45.1', '< 2.0')
4444
s.add_dependency('ruby-progressbar', '~> 1.7')
4545
s.add_dependency('unicode-display_width', '>= 2.4.0', '< 4.0')
4646
end

0 commit comments

Comments
 (0)