Code Monkey home page Code Monkey logo

linkify_errors's Introduction

LinkifyErrors

LinkifyErrors is a really ugly hack to turn your in-browser Rails backtraces into clickable links that open in your editor. Each line is turned into a link that, when clicked, opens your editor to that file and line immediately.

The 14 second video demo does a better job explaining than this README.

Requirements

  1. Rails 3.1

  2. OS X

Installation

  1. Add the linkify_errors gem to your Rails 3.1 Gemfile

    gem "linkify_errors"
    
  2. Download the helper application and install it.

  3. Download More Internet and install it. Open the PrefPane, and create a new protocol called “editfile”. Drag your new “EditFile” application onto the box to choose it as the helper for this new editfile protocol.

  4. The application is set up by default to use emacsclient. You can edit “/Applications/EditFile.app/editfile” to change this. It’s a shell script that gets called with “123@/Users/name/path/to/file”. Do whatever you want within. The example below might work for textmate

    $(echo $1 | sed 's/^\([0-9]*\)\@\(.*\)$/mate -l\1 \2/')
  5. Bask in the glory of hyperlinked backtraces.

Is this secure?

No. Don’t use it. A puppy will die.

linkify_errors's People

Stargazers

Nathan Bertram avatar Burke Libbey avatar

Watchers

Burke Libbey avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.