Displaying 4 results from an estimated 4 matches for "txmt".
Did you mean:
tmt
2006 Feb 11
9
Textmate Backtracer 1.0
Originally posted at http://blog.inquirylabs.com/2006/02/11/textmate-
backtracer-10/
== Announcing Version 1.0 ==
The backtracer has been around for a while now, and seems to have
done its job well enough to deserve a 1.0 mark.
== What Is It? ==
Whenever a Rails exception occurs, it spits out a backtrace full of
filenames and line numbers. I?ve often thought, ?Wouldn?t it be nice
if I
2008 Jan 04
1
patch for html display
...formatter/text_mate_formatter.rb
(working copy)
@@ -6,8 +6,9 @@
# Formats backtraces so they''re clickable by TextMate
class TextMateFormatter < HtmlFormatter
def backtrace_line(line)
- line.gsub(/([^:]*\.rb):(\d*)/) do
- "<a
href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a>
"
+ line.gsub!(/^(On line #([0-9]+) of )(.+)$/) {
"app/views/#{$3}:#{$2}"}
+ line.gsub(/([^:]*\.(rb|rhtml|erb)):(\d*)/) do
+ "<a
href=\"txmt://open?url=f...
2006 Jan 20
2
Rails and TextMate
Hi,
I was reading the manual for TextMate yesterday, and saw that you can
open documents via URL (i.e.
txmt://open/?url=file://~/.bash_profile&line=11&column=2). Would it be
possible to tweak Ruby/Rails so that the application stack traces could
use TextMate links so you could easily open the file with the error in
it?
Just a thought I had. Not sure if it''s even possible.
Thanks!...
2007 Dec 07
9
Merb-style development exception pages for Mac OS X
I like the merb-style exception pages where there''re links to open the
files listed in the stack trace in TextMate and the source around each
line a lot so I stole the idea (and the code!) and made a patch for
Rails: http://dev.rubyonrails.org/ticket/10401
Here''s how it looks like in Merb: http://yehudakatz.com/wp-content/uploads/stacktrace.gif
What do you guys think?