Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] reporter: hyperlink file paths when printing stacks #957

Open
2 tasks done
isaacs opened this issue Oct 10, 2023 · 1 comment
Open
2 tasks done

[FEATURE] reporter: hyperlink file paths when printing stacks #957

isaacs opened this issue Oct 10, 2023 · 1 comment
Labels
feature a thing you'd like to see

Comments

@isaacs
Copy link
Member

isaacs commented Oct 10, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Have you read the CONTRIBUTING guide on posting issues, and CODE_OF_CONDUCT?

  • yes I read the things

Description

It'd be cool if you could click on a filename in a reported stack trace to jump straight to the file.

Just putting file:// urls in there would be ok, but it'd be cool if it could somehow format it so that common terminals would know to open vim or whatever.

Might look godawful on github actions or other CI displays, so that's another concern.

Example

No response

@isaacs isaacs added the feature a thing you'd like to see label Oct 10, 2023
@isaacs
Copy link
Member Author

isaacs commented Oct 10, 2023

Hmm, would have to somehow make Ink clever enough to ignore the added characters, or we get this:

    Test.<anonymous> 
        (t.mjs:8:5)

which doesn't look great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a thing you'd like to see
Projects
None yet
Development

No branches or pull requests

1 participant