tm-ctags-tmbundle icon indicating copy to clipboard operation
tm-ctags-tmbundle copied to clipboard

tm-ctags bundle does not work when ruby 1.9 is in path

Open dsidorov opened this issue 15 years ago • 0 comments

I've both ruby-1.9 (/opt/local/bin/ruby) and ruby-1.8 (/usr/bin/ruby) installed, and ruby-1.9 comes first in PATH. Any tm-ctags command fails with ".../tmctags.rb:26: invalid multibyte char (US-ASCII)" error. The TM_RUBY env variable is set to /usr/bin/ruby in TextMate preferences, and that works for other bundled.

As far as I can tell, the convention to workaround ruby 1.8 vs 1.9 incompatibilities in TextMate bundles is to use "${TM_RUBY:-ruby} /path/to/my-script.rb ..." instead of "/path/to/my-script.rb ..." as command string in .tmCommand files.

I can send out a patch that fixes this problem ...

dsidorov avatar Jul 07 '09 13:07 dsidorov