tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

Compiling .rbi for sixarm_ruby_unaccent goes on indefinitely (infinite loop?)

Open atanbt opened this issue 3 years ago • 3 comments

This is a fairly small gem so not sure if there's an infinite loop issue going on. It is in our gemfile because it's a dependency of the countries gem. I discovered this by editing tapioca to print the gem name before it compiles. Running tapioca gem --all -V results in output like this:

Compiling sinatra
  Compiled sinatra
       force  sorbet/rbi/gems/[email protected]

Compiling sixarm_ruby_unaccent

where it appears to stay indefinitely.

This is on version 0.8.0. Previously generating the .rbi succeeded without any issue.

atanbt avatar May 14 '22 00:05 atanbt

👋 Hey Alex,

I'm curious if the RBI generates faster if you pass the --no-doc option?

Thanks for reporting this problem!

Morriar avatar May 16 '22 17:05 Morriar

Hi @Morriar, yes that generates the .rbi without any issues.

atanbt avatar May 16 '22 18:05 atanbt

Just to add to this, had the same issue with v1.2.0 of sixarm_ruby_unaccent. Adding --no-doc flag made the process run to completion without missing a beat.

janklimo avatar Jun 30 '22 15:06 janklimo

Closing this issue in favor of a more general solution: https://github.com/Shopify/tapioca/issues/1361.

Morriar avatar Jan 18 '23 16:01 Morriar