Insert Close Tag error #14

Closed
f0000 opened this Issue Nov 21, 2011 · 3 comments

Comments

Projects
None yet
3 participants

f0000 commented Nov 21, 2011

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) from /tmp/temp_textmate.nyIFNL:12:in`

'

All other functions work fine...

Owner

sorbits commented Nov 22, 2011

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)

Owner

sorbits commented Jul 26, 2013

@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).

sorbits closed this Jul 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment