Hello all.
I¹ve looked through the archives and didn¹t see anything resembling this problem so I¹m sorry if it has already been addressed elsewhere.
When using the autocomplete feature (option-escape) or other certain snippets in Textmate via either Ruby or Ruby on Rails, I receive the following error:
/usr/local/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as argument prefix /tmp/temp_textmate.0sHwXc:38:in `<main>': undefined method `to_a' for "":String (NoMethodError)
What I¹ve tried so far: 1. Reinstalled Textmate 2. Reinstalled both Ruby and Ruby on Rails bundles. I tried the bundles from both the SVN and the github sources. 3. Set the TM_RUBY variable to point to my system installed 1.8.7 folder
It¹s worth noting that snippets and autocomplete fails in other languages as well PHP comes to mind. I¹m new to using Textmate fulltime for development so this error is beyond confusing for me. This did not start happening until after I updated ruby from 1.8.7 to 1.9.1.
Thanks in advance for any help you can offer.
On Mon, Jan 11, 2010 at 2:29 PM, Jeff Andrews jeff.andrews@nuulogic.comwrote:
Hello all.
I’ve looked through the archives and didn’t see anything resembling this problem so I’m sorry if it has already been addressed elsewhere.
When using the autocomplete feature (option-escape) or other certain snippets in Textmate via either Ruby or Ruby on Rails, I receive the following error:
/usr/local/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as argument prefix /tmp/temp_textmate.0sHwXc:38:in `<main>': undefined method `to_a' for "":String (NoMethodError)
What I’ve tried so far:
- Reinstalled Textmate
- Reinstalled both Ruby and Ruby on Rails bundles. I tried the bundles
from both the SVN and the github sources. 3. Set the TM_RUBY variable to point to my system installed 1.8.7 folder
Jeff, what did you set the TM_RUBY variable to?
-Conrad
It’s worth noting that snippets and autocomplete fails in other languages as well – PHP comes to mind. I’m new to using Textmate fulltime for development so this error is beyond confusing for me. This did not start happening until after I updated ruby from 1.8.7 to 1.9.1.
Thanks in advance for any help you can offer.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jan 11, 2010, at 4:29 PM, Jeff Andrews wrote:
Hello all.
Hello.
When using the autocomplete feature (option-escape) or other certain snippets in Textmate via either Ruby or Ruby on Rails, I receive the following error:
/usr/local/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as argument prefix /tmp/temp_textmate.0sHwXc:38:in `<main>': undefined method `to_a' for "":String (NoMethodError)
We used a Ruby library to get the autocomplete feature, but it's not 1.9 compatible and I doubt it will be updated. I've actually considered removing that commands since it just doesn't work in enough contexts.
What were the "other snippets" you were referring to though?
James Edward Gray II
Thanks to both of you for the answers.
Conrad, I set the variable to /usr/bin/ruby. I think that's the OS X default location. It did not seem to have any effect one way or the other.
James, the other errors come from seemingly random snippet completions. Good example:
mtab-> in a Ruby on Rails migration Choose option 1 (Create / Drop Table)
/Users/jandrewz/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby on Rails.tmbundle/Support/bin/intelligent_migration_snippet.rb:71:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 1: syntax error: unexpected end of fileto_a' for "\n\n def self.down\n drop_table :tags\n end\nend\n":String (NoMethodError) from /Users/jandrewz/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby on Rails.tmbundle/Support/bin/intelligent_migration_snippet.rb:96:in
The above error isn't cut off by copy / paste - that's literally where it ends.
Similarly, if I navigate through the menus while in any Ruby on Rails file, I can select the option Ruby on Rails -> Fixtures -> Authcomplete Fixture Reference and find this gem:
/Users/jandrewz/Library/Application Support/TextMate/Pristine Copy/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 /Users/jandrewz/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby on Rails.tmbundle/Support/bin/fixture_auto_complete.rb:22:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 2: syntax error: unexpected end of file<main>'
Now, I commonly use mtab and the others so that one is actually useful to me. I found the fixtures command while looking to see what else wasn't working. I commonly write out most of that stuff by hand anyway.
Thanks again for the replies,
Jeff
On 1/11/10 5:00 PM, "James Edward Gray II" james@graysoftinc.com wrote:
On Jan 11, 2010, at 4:29 PM, Jeff Andrews wrote:
Hello all.
Hello.
When using the autocomplete feature (option-escape) or other certain snippets in Textmate via either Ruby or Ruby on Rails, I receive the following error:
/usr/local/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as argument prefix /tmp/temp_textmate.0sHwXc:38:in `<main>': undefined method `to_a' for "":String (NoMethodError)
We used a Ruby library to get the autocomplete feature, but it's not 1.9 compatible and I doubt it will be updated. I've actually considered removing that commands since it just doesn't work in enough contexts.
What were the "other snippets" you were referring to though?
James Edward Gray II
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jan 11, 2010, at 5:32 PM, Jeff Andrews wrote:
James, the other errors come from seemingly random snippet completions. Good example:
mtab-> in a Ruby on Rails migration Choose option 1 (Create / Drop Table)
That's the Rails bundle, so it's out of my area.
Similarly, if I navigate through the menus while in any Ruby on Rails file, I can select the option Ruby on Rails -> Fixtures -> Authcomplete Fixture Reference and find this gem:
Again, you need to talk to the Rails bundle guys about this one.
James Edward Gray II
On 1/11/10 5:43 PM, "James Edward Gray II" james@graysoftinc.com wrote:
Again, you need to talk to the Rails bundle guys about this one.
James Edward Gray II
Perfect, thanks. Is this the right place to contact those guys or should I try elsewhere?
On Jan 11, 2010, at 5:54 PM, Jeff Andrews wrote:
On 1/11/10 5:43 PM, "James Edward Gray II" james@graysoftinc.com wrote:
Again, you need to talk to the Rails bundle guys about this one.
James Edward Gray II
Perfect, thanks. Is this the right place to contact those guys or should I try elsewhere?
I'm not sure if they watch this list or not. You might try posting "Issues" here:
http://github.com/drnic/ruby-on-rails-tmbundle
James Edward Gray II
On 1/11/10 7:20 PM, "James Edward Gray II" james@graysoftinc.com wrote:
I'm not sure if they watch this list or not. You might try posting "Issues" here:
http://github.com/drnic/ruby-on-rails-tmbundle
James Edward Gray II
Many thanks. I'll report there and see what they have to say.
On 11 Jan 2010, at 23:29, Jeff Andrews wrote:
What I’ve tried so far:
- Reinstalled Textmate
- Reinstalled both Ruby and Ruby on Rails bundles. I tried the
bundles from both the SVN and the github sources. 3. Set the TM_RUBY variable to point to my system installed 1.8.7 folder
You need to set PATH to find your system ruby first (default), see http://wiki.macromates.com/Troubleshooting/RubyVersionIssue