So there isn’t anything harder to take then a subtle bug with little apparent cause. That’s why this sort of thing kills me:
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/errors.rb:94:in `check': cannot rollback - no transaction is active (SQLite3::SQLException)
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:76:in `check'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:68:in `commence'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:61:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/statement.rb:158:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:211:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:186:in `prepare'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:210:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:620:in `rollback'
... 13 levels...
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:200:in `run'
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
from /usr/local/lib/ruby/1.8/test/unit.rb:285
from test/unit/workout_test.rb:10
There are time when I’ll just get fed up with the damn computer, and this caused me to wrap up last night and go try to learn to read music1. There was even less information in that error as there is in musical notation! I can almost deal with sound visually on a staff, but it’s real troubling to deal with a bug that won’t leave the slightest clue.
But I think I’ve got it scrubbed out. Commenting things out strategically leads me to not want fixtures with nil values. Changing this:
invalid_exercise:
id: 4
name:
description:
into this:
invalid_exercise:
id: 4
name: ""
description: ""
mopped things up real well for me. Now there’s just one more thing that is making me want to bash my laptop with a rock, as soon as I can find it, I’ll be for smooth sailing.
1 Quite the feat actually: I quit piano in 6th grade because although I could play whatever anyone threw at me by ear, no way did I have the patience to learn to read those goddamned notes.
← GHA 2 CZE 0 | World Cup 06 →