Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions using writeexcel 0.6.0 with rails 2.3.8 #6

Closed
drsound opened this issue Nov 7, 2010 · 1 comment
Closed

Exceptions using writeexcel 0.6.0 with rails 2.3.8 #6

drsound opened this issue Nov 7, 2010 · 1 comment

Comments

@drsound
Copy link

drsound commented Nov 7, 2010

Lots of exceptions are generated using writeexcel 0.6.0 with rails 2.3.8. Here is a test case for rails 2.3.8:

  1. create a fresh rails application with "rails my_test_app"
  2. add writeexcel gem to config/environment.rb
  3. enter rails console with 'script/console'
  4. use these simple instructions:
    a) workbook = WriteExcel.new('/tmp/test.xls')
    b) worksheet = workbook.add_worksheet
    c) worksheet.write(0, 0, 'test')
  5. You get the first exception
    --- EXCEPTION BEGIN ---

append
/usr/lib/ruby/gems/1.8/gems/writeexcel-0.6.0/lib/writeexcel/worksheet.rb:2756 in store_with_compatibility
/usr/lib/ruby/gems/1.8/gems/writeexcel-0.6.0/lib/writeexcel/worksheet.rb:2747 in write_string
/usr/lib/ruby/gems/1.8/gems/writeexcel-0.6.0/lib/writeexcel/worksheet.rb:2584 in write
/home/drsound/scambio/test/writeexcel_test2/(irb):4 in irb_binding
/usr/lib/ruby/1.8/irb/workspace.rb:52 in irb_binding
FD 00 0A 00 00 00 00 00 0F 00 00 00 00 00

=> 0

--- EXCEPTION END ---

  1. If you try "workbook.close", you will get one million exceptions more!

No problems at all if I use the same instructions within rails 3.0.1 or a plain ruby program.

@cxn03651
Copy link
Owner

thank you for your comment.

those are output for debug, displayed when $debug is defined.

Rails ./script/console under development mode sets $debug, so i chenged writeexcel's debug flag.

wirteexcel-0.6.1.gem has been uploaded. please use this version.

cxn03651.

@cxn03651 cxn03651 closed this as completed Jun 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants