Hello, I have 1.5.7 (1464) running on MacOs 10.5.5. I've been trying to use the Code Completion command in the CSS bundle. First, With the default key equivalent activation (Option+Esc) nothing happened, I then changed the activation keys to (Cmd+Esc) and I get the following error when I run the command:
##################################### /Users/rvega/Library/Application Support/TextMate/Support/lib/codecompletion.rb:318:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 1: syntax error: unexpected end of filemap' for nil:NilClass (NoMethodError) from /Users/rvega/Library/Application Support/TextMate/Support/lib/codecompletion.rb:87:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 2: syntax error: unexpected end of filenew' from /Users/rvega/Library/Application Support/TextMate/Support/lib/codecompletion.rb:59:in #####################################
I also checked out the latest version of the css bundle and the TM support folder fro svn but the error is the same.
I noticed that the html bundle uses the same completions ruby script but the html code completion command works fine.
In case someone knows how the codecompletion script works, here are the Code Completion commands in my css bundle:
#####################################
########################## #CODE COMPLETION CSS: ########################## #!/usr/bin/env ruby require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion" preference = 'Completions' choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope => :css).to_ary choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new( "#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences" ).to_ary choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read, :scope => :css).to_snippet
##################################### #CODE COMPLETION CSS PROPERTIES: ##################################### #!/usr/bin/env ruby require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion" TextmateCodeCompletion.plist('Property Completions')
########################################### #CODE COMPLETION CSS PROPERTY VALUES: ########################################### #!/usr/bin/env ruby require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion" preference = 'Property Value Completions' choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope => :css_values).to_ary choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new( "#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences" ).to_ary choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read).to_snippet
#####################################
Thanks for any help!