Prevent abort
call within gem from breaking tapioca gem
command
#1826
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
I was encountering a
Parallel::DeadWorker
exception when runningtapioca gem
on a new project:With @Morriar's help we determined that the generation for the
rdoc
gem was failing:bundle exec tapioca gem rdoc
(
rdoc
is a dependency of bothirb
anddebug
so this may impact a lot of people).It outputs
webrick is not found. You may need to `gem install webrick` to install webrick.
and no RBI file is generated.This is due to the
abort
here: https://github.com/ruby/rdoc/blob/d0074a23cc835b09d72ddd2f98d10eee4d23e1ab/lib/rdoc/servlet.rb#L10(the
Servlet
class is autoloaded here).Implementation
We re-used the
with_disabled_exits
mechanism Tapioca already had. But we're unsure if where we added it is at the right level.Tests
None yet... may be tricky.