Link to file from stack trace in console

We are printing some very nicely formatted stack traces to the console from Javascript:

Error: Crashing now, just as you requested!
    at Function.YNABSharedLib.crashNow (../ynab_shared_library/app/scripts/YNABSharedLib.ts:350:19)
    at module.exports.Ember.Route.extend.actions.crashNow (./src/routes/application.coffee:218:26)
    at Object.triggerEvent (./node_modules/ember/ember.js:35579:1)
    at trigger (./node_modules/ember/ember.js:34618:1)
    at Object.Router.trigger (./node_modules/ember/ember.js:33447:1)
    at Ember.Router.Ember.Object.extend.send (./node_modules/ember/ember.js:35098:1)
    at Ember.ActionHandler.Ember.Mixin.create.send (./node_modules/ember/ember.js:18688:1)
    at runRegisteredAction (./node_modules/ember/ember.js:38512:1)
    at Object.Backburner.run (./node_modules/ember/ember.js:6249:1)
    at onerror (./node_modules/ember/ember.js:6670:1)

Note that we're referring there to files and paths that Rubymine should be able to find. However, it doesn't provide hyperlinks for them, so it's not as easy to jump to the source of the problem as I would like. Is there a way for me to apply a filter to the console so that we can get links to our source files?

Many thanks in advance,

Taylor

3 comments
Comment actions Permalink

Hello!

I have the same problem. I run various Selenium tests from gulp tasks. When a test fails, I get stack traces like the one shown below. I would love for IntelliJ to automatically make the filenames associated with my project clickable so I quickly can navigate to them in the IDE.

"C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2.4\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\gulp\bin\gulp.js --color --gulpfile C:\Users\9064\Documents\Code\OWAutotestWDIO\gulpfile.js test-ie
[11:28:49] Using gulpfile ~\Documents\Code\OWAutotestWDIO\gulpfile.js
[11:28:49] Starting 'test-ie'...
[11:30:05] Saved screenshot: ERROR_internetexplorer_2016-10-11T09-30-02.127Z.png
------------------------------------------------------------------
[internet explorer #0a] Session ID: 8db0e20e-263f-4b47-bf1c-d3c29360c3ab
[internet explorer #0a] Spec: C:\Users\9064\Documents\Code\OWAutotestWDIO\tests\dynamic-packaging\packages-travel-to-london-from-stockholm\index.js
[internet explorer #0a] Running: internet explorer
[internet explorer #0a]
[internet explorer #0a] Testing Packages: Travel to London
[internet explorer #0a] √ Start page is open
[internet explorer #0a] √ Booking App is visible
[internet explorer #0a]
[internet explorer #0a] Depart from Stockholm-Arlanda
[internet explorer #0a] √ Can view airports to depart from
[internet explorer #0a] √ Can select Stockholm-Arlanda
[internet explorer #0a]
[internet explorer #0a] Travel to Storbritannien
[internet explorer #0a] √ Can view destinations to travel to
[internet explorer #0a] √ Can select Storbritannien
[internet explorer #0a]
[internet explorer #0a] Travel to London
[internet explorer #0a] √ Is visible
[internet explorer #0a] √ Can view resorts
[internet explorer #0a] √ Can select London as resort
[internet explorer #0a]
[internet explorer #0a] Select a departure date 5 months from now
[internet explorer #0a] √ Datepacker exists
[internet explorer #0a] √ Can view dates
[internet explorer #0a] √ Can select a date 5 months from now
[internet explorer #0a]
[internet explorer #0a] Select the earliest return date 5 months from now
[internet explorer #0a] √ Datepicker exists
[internet explorer #0a] √ Can view dates
[internet explorer #0a] √ Can select a date
[internet explorer #0a] √ Verifies that the return date is later than the departure date
[internet explorer #0a]
[internet explorer #0a] Perform search
[internet explorer #0a] 1) Perform search and make sure it completes within 40 s
[internet explorer #0a]
[internet explorer #0a]
[internet explorer #0a] 16 passing (1m, 14s)
[internet explorer #0a] 1 failing
[internet explorer #0a]
[internet explorer #0a] 1) Perform search Perform search and make sure it completes within 40 s:
[internet explorer #0a] Promise was rejected with the following reason: timeout
[internet explorer #0a] Error: Promise was rejected with the following reason: timeout
[internet explorer #0a] at Object.waitUntil (C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:431:27)
[internet explorer #0a] at _BookingStartApp.waitForSearchToComplete (C:/Users/9064/Documents/Code/OWAutotestWDIO/pages/apps/booking-start-app/index.js:66:17)
[internet explorer #0a] at Context.<anonymous> (C:/Users/9064/Documents/Code/OWAutotestWDIO/tests/dynamic-packaging/packages-travel-to-london-from-stockholm/performSearch.js:16:37)
[internet explorer #0a] at C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:665:26
[internet explorer #0a] at Context.executeSync (C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:663:12)
[internet explorer #0a] at C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:889:34
[internet explorer #0a] at url("http://vingse.acctest.int/boka-paketresa?QueryDepID=2788&QueryCtryID=73&QueryAreaID=0&QueryResID=316&QueryDepDate=20170301&QueryChkInDate=20170301&QueryDur=&QueryRetDate=20170306&QueryChkOutDate=20170306&CategoryId=3&QueryRoomAges=|42,42&QueryUnits=0") - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:375:37
[internet explorer #0a] at url() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\webdriverio\build\lib\commands\getUrl.js:29:28
[internet explorer #0a] at getUrl() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:375:37
[internet explorer #0a] at url() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\webdriverio\build\lib\commands\getUrl.js:29:28
[internet explorer #0a] at getUrl() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:375:37
[internet explorer #0a] at url() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\webdriverio\build\lib\commands\getUrl.js:29:28
[internet explorer #0a] at getUrl() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:375:37
[internet explorer #0a] at url() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\webdriverio\build\lib\commands\getUrl.js:29:28
[internet explorer #0a] at getUrl() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:375:37
[internet explorer #0a] at url() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\webdriverio\build\lib\commands\getUrl.js:29:28
[internet explorer #0a] at getUrl() - C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\index.js:375:37
[internet explorer #0a] at waitUntil(<Function>) - at C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\build\at Object.Future.wait (C:\Users\9064\Documents\Code\OWAutotestWDIO\node_modules\wdio-mocha-framework\node_modules\wdio-sync\node_modules\fibers\future.js:449:15)
[internet explorer #0a]

[11:30:06] 'test-ie' errored after 1.28 min
[11:30:06] Error in plugin 'gulp-webdriver'
Message:
wdio exited with code 1

Process finished with exit code 1
0
Comment actions Permalink

Hello, Taylor,

sorry for keeping you waiting. Could you please check the following issue cause it seems to be related to yours:

https://youtrack.jetbrains.com/issue/WEB-11851 

0
Comment actions Permalink

Yes, I agree. My issue seem to be another example of the parsing problems described in WEB-11851.

0

Please sign in to leave a comment.