We are using flog on a ruby 1.9.1 on rails project and while processing some code it quits raising the exception:
ruby/1.9.1/racc/parser.rb:349:in `on_error': (Racc::ParseError)
parse error on value nil (tNL)
I’ve had previous problems with this related to flog not recognizing the new Ruby sintax, but I can’t find where the problem lies now.
Any help on knowing what is originating the problem is welcome, I can’t find a way to know on which line flog is failing.
The problem lies with the syntax as I said.
So this problem arises when you have variables with default values before other variables while defining a method.
This is valid code in ruby 1.9.x but not in previous ruby versions and since flog has no ruby 1.9.x syntax support it will raise an exception. As with any other incompatible syntax.
So if you are using flog you will have to use the ruby 1.8 syntax.