With my fixtures, I am getting:
Fixture::FormatError: a YAML error occurred parsing /home/hgs/aeg_intranet/csest
ore/config/../test/fixtures/loans.yml. Please note that YAML must be consistentl
y indented using spaces. Tabs are not allowed. Please have a look at http://www.
The exact error was:
SyntaxError: compile error
(erb):65: syntax error, unexpected $end, expecting ')'
Now there are no unmatched parentheses in the one file, but I'm
using fixture_references to make calls to pull info from other
files. I recognize this $end type message as coming from ruby
itself, rather than ERB or rails. I get this running erb on the
files manually, but if I print the output of the script out with
erb -x then there are no such parenthetical errors.
Since this is an apparently missing close bracket, it will be
difficult to get any parser to tell me where the corresponding
opening bracket is. The position of every last parenthesis is not
pushed onto the stack, at least not in normal operation, I imagine.
I've not tried any other implementations of Ruby for anything
(JRuby, Rubinius) so I don't know if is easier to trap this kind of
information in those, but failing that, are there any tools to
assist in tracking this kind of thing down? Maybe there's something
I can interpose to ensure that the strings I get back from the calls
to methods have balanced brackets?
I may be able to use Lua's "%b()" to hunt this bug, but its a while since
I've touched Lua.