I've been using TextMate for Rails development for several months now, and am a big fan.
I have recently noticed one annoying bug, which is effecting my TextMate, and my collegue's who is working on the same projects.
When I use the RoR bundle functions for Database migrations to, for example, rename/rename column Textmate inserts this strange string into the document.
]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; rename_column :table_name, :column_name, :new_column_name
I've noticed this string popping up in other places (like at the top of a printout), but the migration issue is the most annoying. Also this problem is recent. I have done the same operations without encountering the bug in the past.
Has anyone else encountered this problem? I can't find any reference to it online.
Thanks Sam
On 23/10/2007, at 02:16, Sam Goldstein wrote:
[...] When I use the RoR bundle functions for Database migrations to, for example, rename/rename column Textmate inserts this strange string into the document.
]0; [...]
What action do you perform to make TextMate insert this set of characters?
When I use some of the Ruby on Rails bundle Database migration functions its inserted.
For example going to Bundles > Rails > Migrations > Columns > Add / Remove Columns will result in output like this:
def self.up
]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; ]0; add_column :table_name, :column_name, :string_name, :column_name, :string
end
def self.down
remove_column :table_name, :column_name
end
end
Any of these migration functions that generate the up and down template cause trigger the bug (add/remove, remove/add, rename/rename). The simpler migration functions (add column, remove column) do not. I've also noticed the same odd string popping up in other places. If I print out a page of code I get the "]0;"'s in the header of the printed page. I've also seen it appear other places although I'm not sure exactly where.
Let me know if there are more details I can provide, or if my explanations are unclear.
Much Thanks, Sam
Allan Odgaard wrote:
On 23/10/2007, at 02:16, Sam Goldstein wrote:
[...] When I use the RoR bundle functions for Database migrations to, for example, rename/rename column Textmate inserts this strange string into the document.
]0; [...]
What action do you perform to make TextMate insert this set of characters?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 24/10/2007, at 21:59, Sam Goldstein wrote:
When I use some of the Ruby on Rails bundle Database migration functions its inserted. [...]
Okay, these characters are likely written from your shell startup files, which are executed when running (shell) commands from TextMate.
You can alter your shell startup files to only output stuff for interactive terminal sessions, see http://macromates.com/wiki/Troubleshooting/ShellCommands
Thanks Allan. You're absolutely right.
I'd installed a line in bashrc which traps each command and prints it in iterm's window title: trap 'printf "\033]0; `history 1 | cut -b8-` \007"' DEBUG
commenting this out solves the problem.
thanks again, Sam
Allan Odgaard wrote:
On 24/10/2007, at 21:59, Sam Goldstein wrote:
When I use some of the Ruby on Rails bundle Database migration functions its inserted. [...]
Okay, these characters are likely written from your shell startup files, which are executed when running (shell) commands from TextMate.
You can alter your shell startup files to only output stuff for interactive terminal sessions, see http://macromates.com/wiki/Troubleshooting/ShellCommands
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate