Created
April 14, 2011 09:20
-
-
Save x1B/919180 to your computer and use it in GitHub Desktop.
Add textmate links to Node.JS stacktraces.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
sed -E -e 's_[(]?(/[^:]*/([^ ]*)):([0-9]+):([0-9]*)[)]?_[\2:\3:\4] txmt://open/?url=file://\1\&line=\3\&column=\4_g' |
Changed it so .js extension is not required (e.g. for stack frames from executables).
Example stack trace:
uncaught: TypeError: Bad argument
at new Buffer (buffer.js:139:21)
at Object.encode [hbase-utils.js:7:12] txmt://open/?url=file:///usr/local/lib/node/.npm/hbase/0.0.9/package/lib/hbase-utils.js&line=7&column=12
at [hbase-row.js:125:31] txmt://open/?url=file:///usr/local/lib/node/.npm/hbase/0.0.9/package/lib/hbase-row.js&line=125&column=31
at Array.forEach (native)
at [object Object].put [hbase-row.js:119:11] txmt://open/?url=file:///usr/local/lib/node/.npm/hbase/0.0.9/package/lib/hbase-row.js&line=119&column=11
at [object Object].updateCollectionInfo [hbase_store.js:123:11] txmt://open/?url=file:///Volumes/Work/grouperfish/grouperfish/vendor/rest/lib/storage/hbase_store.js&line=123&column=11
at [hbase-row.js:163:12] txmt://open/?url=file:///usr/local/lib/node/.npm/hbase/0.0.9/package/lib/hbase-row.js&line=163&column=12
at IncomingMessage.<anonymous> [hbase-connection.js:72:4] txmt://open/?url=file:///usr/local/lib/node/.npm/hbase/0.0.9/package/lib/hbase-connection.js&line=72&column=4
at IncomingMessage.emit (events.js:59:20)
at HTTPParser.onMessageComplete (http.js:111:23)
hbase_store.js post document: AssertionError: true == false
at [hbase_store.js:38:16] txmt://open/?url=file:///Volumes/Work/grouperfish/grouperfish/vendor/rest/test_js/unit/hbase_store.js&line=38&column=16
at EventEmitter.<anonymous> [expresso:781:37] txmt://open/?url=file:///usr/local/bin/expresso&line=781&column=37
at EventEmitter.<anonymous> (events.js:39:17)
at EventEmitter.emit [expresso:859:10] txmt://open/?url=file:///usr/local/bin/expresso&line=859&column=10
at report [expresso:805:13] txmt://open/?url=file:///usr/local/bin/expresso&line=805&column=13
at EventEmitter.emit [expresso:856:9] txmt://open/?url=file:///usr/local/bin/expresso&line=856&column=9
Failures: 2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Links can be opened using the the context menu or shift+cmd+dblclick.