Textmate Version 1.5.10 (1623), Mac OS X 10.7.2
Insert Close Tag function doesn't work. Tried reinstall, delete all custom plugins, delete/tmp/temp_textmate*, etc..
this is what I get when I press alt-cmd-. or select it from Bundles menu:
/tmp/temp_textmate.nyIFNL:12:in `match': invalid byte sequence in US-ASCII (ArgumentError)
All other functions work fine...
You should not have TextMate use ruby 1.9 for running its bundled commands.
Most likely you have set PATH in Preferences → Advanced → Shell Variables. If so, simply unset it.
You can set TM_RUBY to your custom ruby install if you want script execution, validation, etc. to use a non-default ruby.
That said, making this particular command ruby 1.9 compatible is likely just adding an encoding comment (based on your quoted error), but this won’t be the only command failing when you replace the default ruby, hence why we strongly discourage the use of ruby 1.9 for bundled commands.
I have aprobrel that is alike to this, when writing HTML and try to use the command cmd+alt+. but not when choosing it from the menu (bundles > HTML > Insert Closing Tag) i get:
/tmp/temp_textmate.d6iwre:12: undefined method `' for nil:NilClass (NoMethodError)
@axelintu If you are still having issues then see https://github.com/textmate/textmate/wiki/Reverting-To-Defaults
And you can do a key equivalent search via Bundles → Select Bundle Item… (to figure out what command is actually bound to the key you press).