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

Racc::ParseError #42

Open
taf2 opened this issue Feb 5, 2015 · 3 comments
Open

Racc::ParseError #42

taf2 opened this issue Feb 5, 2015 · 3 comments

Comments

@taf2
Copy link

taf2 commented Feb 5, 2015

parse error on value ":" (error)
from /usr/local/lib/ruby/2.1.0/racc/parser.rb:529:in on_error' from /usr/local/lib/ruby/2.1.0/racc/parser.rb:258:in_racc_do_parse_c'
from /usr/local/lib/ruby/2.1.0/racc/parser.rb:258:in `do_parse'

on a line of code like:
worksheet.write(row_index, col_index, col_value.to_s)

where col_value is a String similar to

word : word : word\nword : ....

@cxn03651
Copy link
Owner

cxn03651 commented Feb 5, 2015

thank you for using writeexcel gem.

worksheet.write(row_index, col_index, col_value.to_s)

can you send me col_value.to_s which causes exception, please.

cxn03651

@taf2
Copy link
Author

taf2 commented Feb 5, 2015

I did find a work around using write_string instead of write. In the meantime, I can share the content but it needs to be over a private channel.

@cxn03651
Copy link
Owner

cxn03651 commented Feb 5, 2015

Worksheet#write calls write_formula when string matches /^=/. write_formula call parse_formula to parse string as formula. If string is not excel formula, racc causes error. It is recommended for you to use write_string if you want to store string.

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