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
Overview of editorUrl
status and suggestion to make everybody happy :-)
#8519
Comments
Cannot you just use |
I can only speak for me but phpstan/phpstan-src#1013 was simply to shorten output and get clickable links in terminals supporting the hyperlinks (see https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda for an outdated list - as it seemed to be most terminals it seemed fine, and in practice it appears like it mostly did not cause any issue except for you and a few others?) IMO the feature request there should be directed at your terminal author so they support hyperlinks. |
I switched from iTerm to Warp and it does not (yet) support this type of links. But I agree, Warp should fix that instead. Going back to the old style where we just dump the whole URI doesn't make sense to me. And if you really want it, you can use a custom formatter like I did myself. |
Good idea, that works indeed! (Besides some "flickering" which I haven't investigated further) And I found out that hyperlinks are in fact supported by Konsole (=default on KDE Plasma), but you have to enable it manually (deeply hidden in the options). So in fact it comes down to two possible ways:
I can live with both, but I would still prefer 2, for two reasons:
|
I prefer to leave it as it is. Thanks. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature request
History
Out of the box, the output looks like this:
Now, in phpstan/phpstan-src#515 I introduced
editorUrl
:With this in your
phpstan.neon
:...the output changes to:
AFAIK, this line is clickable in any console (if you register the
phpstorm://
protocol). And this is also the documented status at https://phpstan.org/user-guide/output-format#opening-file-in-an-editorBut in phpstan/phpstan-src#1013 @Seldaek (probably to fix a wrapping issue reported in #5013 by @ruudk) changed the output to a different hyperlink format which is not supported by all consoles.
So what I am getting since then is:
This is not clickable anymore (for me); and this is the regression that @Chris53897 reported in #7796 (and this is still not fixed in 1.9.3).
Now in phpstan/phpstan-src#2035 @janedbal changed the visible part of this hyperlink to show the full file path.
At least, that's what I'm guessing from the description, cause hyperlinks aren't working for me, so I can't show you the output ;-)
Solution
Let's summarize what people are wanting:
phpstorm://...
format back, cause that's the only one that's working in their console.phpstorm://...
links can get too long, and if the line gets wrapped, the link is not working anymore (right?).phpstorm://...
would have featured this ;-)1 and 2 look incompatible to me, so I can't see any other way than to support both by introducing a new config option. My suggestion: Use the new
editorUrlTitle
for this: If it is present, use the new hyperlink format (witheditorUrlTitle
s value as visible part); if it's not present, use the oldphpstorm://...
format.The text was updated successfully, but these errors were encountered: