Already initialized Constant
goldenking0412 opened this issue · 2 comments
goldenking0412 commented
When I run rails server in local, I see those issues
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-table-0.2.1/lib/prawn/table/cell.rb:200: warning: already initialized constant Prawn::Table::Cell::FPTolerance
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-1.0.0/lib/prawn/table/cell.rb:200: warning: previous definition of FPTolerance was here
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-table-0.2.1/lib/prawn/table/cell/text.rb:18: warning: already initialized constant Prawn::Table::Cell::Text::TextOptions
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-1.0.0/lib/prawn/table/cell/text.rb:18: warning: previous definition of TextOptions was here
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-table-0.2.1/lib/prawn/table.rb:23: warning: already initialized constant Prawn::Errors::InvalidTableData
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-1.0.0/lib/prawn/layout.rb:11: warning: previous definition of InvalidTableData was here
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-table-0.2.1/lib/prawn/table.rb:27: warning: already initialized constant Prawn::Errors::EmptyTable
/home/major/.rvm/gems/ruby-2.7.4/gems/prawn-1.0.0/lib/prawn/layout.rb:15: warning: previous definition of EmptyTable was here
Thank you
gettalong commented
The lines indicate that you are using a very old version of Prawn. Try using the latest versions of prawn.
goldenking0412 commented
Thanks, it's fixed