amatsuda / i18n_generators

A pack of Rails generators gem plugin that generates Rails 3 and Rails 2 I18n locale files for almost every known locale.
http://github.com/amatsuda/i18n_generators
MIT License
296 stars 29 forks source link

Translation generator recursive loop in ruby 1.9 #4

Closed memarko closed 13 years ago

memarko commented 13 years ago

I think there could be a problem with some specific gem.

Output: C:\cygwin\home\markok\apachegateway>rails generate i18n_translation sl translating models to sl... script/rails:6: stack level too deep (SystemStackError)

I am using ruby 1.9.2p136 (2010-12-25) [i386-mingw32] on Windows Vista with following gems: C:\cygwin\home\markok\apachegateway>bundle update Fetching source index for http://rubygems.org/ Using rake (0.8.7) Using abstract (1.0.0) Using activesupport (3.0.3) Using builder (2.1.2) Using i18n (0.5.0) Using activemodel (3.0.3) Using erubis (2.6.6) Using rack (1.2.2) Using rack-mount (0.6.13) Using rack-test (0.5.7) Using tzinfo (0.3.25) Using actionpack (3.0.3) Using mime-types (1.16) Using polyglot (0.3.1) Using treetop (1.4.9) Using mail (2.2.15) Using actionmailer (3.0.3) Using arel (2.0.9) Using activerecord (3.0.3) Using activeresource (3.0.3) Using authlogic (2.1.6) Using bundler (1.0.10) Using dynamic_form (1.1.3) Using i18n_generators (1.0.2) Using thor (0.14.6) Using railties (3.0.3) Using rails (3.0.3) Using simple-navigation (3.2.0) Using sqlite3 (1.3.3) Using sqlite3-ruby (1.3.3) Using strongbox (0.4.4) Using timeliness (0.3.3) Using validates_timeliness (3.0.5)

memarko commented 13 years ago

I disabled all gems except rails and sqllite and i am stil getting this error.

memarko commented 13 years ago

I found out there is a problem with ruby 1.9, because it works with ruby 1.8.7

amatsuda commented 13 years ago

Hi, @memarko

Thanks for your report, and sorry for responding so late... I think I finally defeated this bug by this commit e104fb7c455d2e1939ba041897cf2e5206932f85 Could you please try out the current HEAD by bundling this? gem 'i18n_generators', :git => 'git://github.com/amatsuda/i18n_generators'

amatsuda commented 13 years ago

Released 1.0.3 gem with the fix for this issue. Let me close this issue ATM, and please alert me again if the issue reproduces. Thanks!

cis-deepesh commented 12 years ago

Still I am getting this issue.Could you please provide me any solution.

Thanks.