question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

custom file prefix in error stack

See original GitHub issue

When you “translate” an error stack line with source maps here you add a file:/// prefix to the file path. This makes it impossible to use “CTRL+Click” to open the file at line/column which would be incredibly useful. I dont know why you do this but i suppose it is to get this to work on another IDE.

Can you make this customizable ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rosen-vladimirovcommented, Feb 19, 2020

Hey @farfromrefug , I’ve used file: (note the space at the end), just to keep the output as similar as possible to the current one. I’ve also tested it in VSCode’s terminal and I was able to click on the link and it navigated to the correct file and even the exact line.

0reactions
farfromrefugcommented, Feb 25, 2020

@rosen-vladimirov found another issue Screen Shot 2020-02-25 at 14 16 17 the file in webpack is ../../src/opencv.android.ts. Though the cli still adds app/ in front so vscode cant pick up the link

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord Python Rewrite - Custom Server Prefixes Error
Float is a function, not the file. I edited the code you posted, try using this: def get_prefix(client, message): with open('prefixes.json', ...
Read more >
How to choose an appropriate error prefix? [closed]
How can I figure out appropriate error prefixes to use when reporting various kinds of errors? Is there are guideline or overview of...
Read more >
Update a CloudFormation stack when a custom-named ... - AWS
This error typically occurs when a stack update tries to replace resources that have properties with custom names. AWS CloudFormation doesn't replace a ......
Read more >
Error.prototype.stack - JavaScript - MDN Web Docs - Mozilla
The non-standard stack property of an Error instance offers a trace of which functions were called, in what order, from which line and...
Read more >
Error handling and messages for Community Connectors
To provide user-friendly error messages to non-admin users include the DS_USER: prefix with error messages. This prefix is used to identify safe ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found