From 635a122cc7be4c68597ccd42af4e4cd62bbacce9 Mon Sep 17 00:00:00 2001 From: Volodymyr Radchenko Date: Tue, 19 Sep 2023 23:40:54 +0200 Subject: [PATCH] FIX: make sure to specify sorbet-runtime version older versions, e.g 0.5.5510 result in "Server initialization failed" error Refs: https://github.com/Shopify/vscode-ruby-lsp/issues/778 --- Gemfile.lock | 2 +- ruby-lsp.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 91d32942a..27e48ac85 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,7 @@ PATH specs: ruby-lsp (0.11.0) language_server-protocol (~> 3.17.0) - sorbet-runtime + sorbet-runtime (>= 0.5.5685) syntax_tree (>= 6.1.1, < 7) yarp (>= 0.12, < 0.13) diff --git a/ruby-lsp.gemspec b/ruby-lsp.gemspec index 35eb8065b..e3ab60dcf 100644 --- a/ruby-lsp.gemspec +++ b/ruby-lsp.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.add_dependency("language_server-protocol", "~> 3.17.0") - s.add_dependency("sorbet-runtime") + s.add_dependency("sorbet-runtime", ">= 0.5.5685") s.add_dependency("syntax_tree", ">= 6.1.1", "< 7") s.add_dependency("yarp", ">= 0.12", "< 0.13")