Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Linking to files in CF error messages
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Russ Johnson  
View profile  
 More options Jul 20, 12:42 pm
From: Russ Johnson <russ.cfco...@gmail.com>
Date: Mon, 20 Jul 2009 09:42:26 -0700 (PDT)
Local: Mon, Jul 20 2009 12:42 pm
Subject: Linking to files in CF error messages
I just blogged about how you can create links on the error messages in
ColdFusion and Railo so that when you click the error in the browser,
it will open that file in Textmate and jump to the line that the error
was caused on.

http://angry-fly.com/post.cfm/linking-to-files-in-coldfusion-errors

I dont know if this works on E but I would assume it would be the
same. I have it working on all of my error files in Railo and it took
about 2 minutes to do. I cant believe how simple this is but how much
time it saves digging through files.

If any of you try this with E or with the default ColdFusion 8 or 9
files, let me know and I can update the post with your results.

- Russ


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ross  
View profile  
 More options Jul 20, 12:50 pm
From: Steve Ross <nowhid...@gmail.com>
Date: Mon, 20 Jul 2009 12:50:46 -0400
Local: Mon, Jul 20 2009 12:50 pm
Subject: Re: Linking to files in CF error messages

Nice, I'd like to see a call in TM that if you have an include that it will
grab the file name and you could hit a hot key and open that file.... that
would be nice.

On Mon, Jul 20, 2009 at 12:42 PM, Russ Johnson <russ.cfco...@gmail.com>wrote:

--
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] (912) 344-8113 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ross  
View profile  
 More options Jul 23, 7:57 pm
From: Steve Ross <nowhid...@gmail.com>
Date: Thu, 23 Jul 2009 19:57:29 -0400
Local: Thurs, Jul 23 2009 7:57 pm
Subject: Re: Linking to files in CF error messages

Here ya go... this will open up any linked file, preferable if you have a
project defined otherwise it probably isn't going to find your file. But, it
will try, works with cfinclude, javascript src=, and href= (for css
files)... let me know if there are anymore types i should include.
create a new command, give it a shorcut paste the command in below:

#!/usr/bin/env ruby
require "rexml/document"
require "#{ENV['TM_SUPPORT_PATH']}/lib/textmate.rb"
include REXML

string = ENV['TM_CURRENT_LINE'].dup
if !string.empty?
  if !string.include?('script')
    r = string.scan(/\/\>/)
    if r.length == 0
      string.chop!
      string << "/>"
    end
  end

  if ENV['TM_FILEPATH']
    current_path = File.dirname(ENV['TM_FILEPATH'].dup)
    puts ENV['TM_PROJECT_DIRECTORY']

    doc = Document.new string
      if doc.root
        path = doc.root.attributes['href'] || doc.root.attributes['src'] ||
doc.root.attributes['template']

        if ENV['TM_PROJECT_DIRECTORY']
          current_path = ENV['TM_PROJECT_DIRECTORY'].dup
        end
        puts file_path =  current_path + '/' + path
        TextMate.go_to :file => file_path
      end
  end
end

#===========

--
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] (912) 344-8113 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ross  
View profile  
 More options Jul 23, 7:59 pm
From: Steve Ross <nowhid...@gmail.com>
Date: Thu, 23 Jul 2009 19:59:48 -0400
Local: Thurs, Jul 23 2009 7:59 pm
Subject: Re: Linking to files in CF error messages

to clarify: put your cursor on any of these lines and hit the command you
just created:
<script type="text/javascript"
src="jscripts/jquery/js/jquery-ui-togglebox.js"></script>
<link type="text/css" href="style/jquery_custom.css" rel="stylesheet" />
<cfinclude template="/somefile.cfm">

just realized it isnt going to work with relative paths like
../../something.cfm I'll work on a fix

--
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] (912) 344-8113 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russ Johnson  
View profile  
 More options Aug 14, 3:59 pm
From: Russ Johnson <russ.cfco...@gmail.com>
Date: Fri, 14 Aug 2009 15:59:57 -0400
Local: Fri, Aug 14 2009 3:59 pm
Subject: Re: Linking to files in CF error messages

Im not able to get this to work for some reason. I have tried absolute  
paths on files and everything.

On Jul 23, 2009, at 7:59 PM, Steve Ross wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ross  
View profile  
 More options Oct 15, 10:27 am
From: Steve Ross <nowhid...@gmail.com>
Date: Thu, 15 Oct 2009 10:27:06 -0400
Local: Thurs, Oct 15 2009 10:27 am
Subject: Re: Linking to files in CF error messages

I'm going to work on a fix for this... been extremely busy

On Fri, Aug 14, 2009 at 3:59 PM, Russ Johnson <russ.cfco...@gmail.com>wrote:

--
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] (912) 344-8113 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google