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

fix: bring back :line:col format in webpack errors #716

Merged
merged 1 commit into from
May 1, 2022

Conversation

robcrocombe
Copy link
Contributor

@robcrocombe robcrocombe commented Mar 1, 2022

Hello! In 2020 I opened an issue (#481) and subsequent PR (#489) to make error file names clickable with their line location intact, when you use cmd+click in a terminal like iTerm2. E.g. before it was filename.ts 12:5 but we changed it to filename.ts:12:5 to make it one item without space delimiters. This is a huge win for productivity as you don't need to hunt down the line number after opening the file.

I noticed while upgrading to v7 that this behaviour has been reverted by #641. It was mentioned in the GH issue that developer experience was more important than following Webpack convention. Has the stance changed on this or was it just a mistake?

If so, I've made this PR to bring back the clickable location behaviour. If not, is there another way we can fix this? I noticed there was a custom formatter option but that does not allow you to format the file name, and I still want to use codeframe. Thanks

@stale
Copy link

stale bot commented Apr 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 30, 2022
Reimplements TypeStrong#489 so that file links with locations can be clicked in
the terminal.
@robcrocombe robcrocombe force-pushed the fix/error-format-2 branch from 588a8a2 to 81ef6e6 Compare May 1, 2022 16:00
@stale stale bot removed the wontfix label May 1, 2022
Copy link
Collaborator

@piotr-oles piotr-oles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! These changes were removed accidentally :)

@piotr-oles piotr-oles merged commit 4cc5346 into TypeStrong:main May 1, 2022
@piotr-oles
Copy link
Collaborator

🎉 This PR is included in version 7.2.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@robcrocombe
Copy link
Contributor Author

Thanks @piotr-oles!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants