Skip to content

Commit

Permalink
Merge pull request #35 from ruby/debugger_no_deadlock
Browse files Browse the repository at this point in the history
Require rbs outside of thread to avoid deadlock
  • Loading branch information
tompng committed Sep 9, 2024
2 parents f906170 + 442964a commit f2fc343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/repl_type_completor/types.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'rbs'
require 'rbs/cli'
require_relative 'methods'

module ReplTypeCompletor
Expand All @@ -22,8 +24,6 @@ def self.preload_rbs_builder

def self.load_rbs_builder
@load_started = true
require 'rbs'
require 'rbs/cli'
loader = RBS::CLI::LibraryOptions.new.loader
loader.add path: Pathname('sig')
@rbs_builder = RBS::DefinitionBuilder.new env: RBS::Environment.from_loader(loader).resolve_type_names
Expand Down

0 comments on commit f2fc343

Please sign in to comment.