Skip to content

Commit

Permalink
Handle over-vigilant Sorbet parser
Browse files Browse the repository at this point in the history
Fixes an issue with the Sorbet parser/executor (sorbet/sorbet#1476) causing the tool to unncessarily throw an ExitCalledError exception while processing YARD source when the process is not actually exiting.

Fixes #1401
  • Loading branch information
lsegal committed Sep 10, 2021
1 parent cbd40ea commit d61dac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yard/server/commands/library_command.rb
Expand Up @@ -31,7 +31,7 @@ def each(&block)
# @abstract
class LibraryCommand < Base
begin
Process.fork { exit 0 }
Process.fork { }
CAN_FORK = true
rescue Exception # rubocop:disable Lint/RescueException
CAN_FORK = false
Expand Down

0 comments on commit d61dac0

Please sign in to comment.