-
Notifications
You must be signed in to change notification settings - Fork 534
TableErrorFormatter: Link path in PhpStorm #4076
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
Conversation
PhpStorm's internal terminal is very peculiar about paths it link. Pretty much only "at path:line" is linked: https://youtrack.jetbrains.com/issue/IJPL-103639/#focus=Comments-27-3994543.0-0. I know that I can write my custom error formatter but I see a value in this working by default. Also replicating all features of TableErrorFormatter is not trivial in custom formatter.
Thank you for the PR. I have an idea: Can we detect we're running in PhpStorm's internal terminal via some environment variable or other means, and output a clickable compatible clickable path regardless of user's |
PhpStorm sets |
Have you tried setting various See the docs: https://phpstan.org/user-guide/output-format#opening-file-in-an-editor I'm pretty sure you could add the word |
As visible at the screenshot, PhpStan doesn't create link if the line doesn't start with at. |
I feel like the root issue in on JetBrains' shoulders and not on PHPStan's. I don't want to compromise the output of table error formatter for everyone because someone didn't fix a bug for 5 years on their side |
Makes sense. |
Would you accept a configuration parameter? |
Configuration parameter for what exactly? Something that would remove all emojis from output? |
I need an |
Could you set |
OK. |
A new one, the implementation will be different. Thanks! 😊 |
PhpStorm's internal terminal is very peculiar about paths it link. Pretty much only "at path:line" is linked: https://youtrack.jetbrains.com/issue/IJPL-103639/#focus=Comments-27-3994543.0-0.
I know that I can write my custom error formatter but I see a value in this working by default. Also replicating all features of TableErrorFormatter is not trivial in custom formatter.
Before:

After:
