drnic / ruby-on-rails-tmbundle

Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
http://groups.google.com/group/rails-textmate
MIT License
895 stars 182 forks source link

Autocomplete Foreign Key Fixture Reference runtime error #8

Open mattheworiordan opened 14 years ago

mattheworiordan commented 14 years ago

When I use the Autocomplete Foreign Key Fixture Reference, a runtime error and trace is pasted into TextMate as follows:

--- Code --- test "autocomplete" do countries([CURSOR_HERE]) end --- /Code ---

When I select the Autocomplete option, or use Alt-Esc, I get the following error message:

/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/lib/rails/inflector.rb:109:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 1: syntax error: unexpected end of fileempty?' for nil:NilClass (NoMethodError) from /Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/fixture_auto_complete.rb:22:in

My Fixtures YAML is definitely valid as it works within my tests, unless you are parsing the YAML not using the standard YAML processor.

Any help would be appreciated. If you could even point me in the direction of what to look for and where to start, I'm happy to try and fix the issue and send you a patch...

This bundle is fantastic btw!

Thanks, Matt

drnic commented 14 years ago

Thanks for reporting the bug - I'm no longer using fixtures so I don't use this feature. This might also hinder my personal interest in fixing the bug asap. I'll see how we go.

drnic commented 14 years ago

BTW, are you using ruby18 or ruby19?

mattheworiordan commented 14 years ago

I am using version 1.8.7, thanks for the help.