Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarDumper] Use hyperlinks in CliDescriptor#29613

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromogizanagi:var_dumper/cli_descr_file_link
Dec 20, 2018
Merged

[VarDumper] Use hyperlinks in CliDescriptor#29613

nicolas-grekas merged 1 commit intosymfony:masterfromogizanagi:var_dumper/cli_descr_file_link
Dec 20, 2018

Conversation

@ogizanagi
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsPart of#29585
LicenseMIT
Doc PRN/A

Leverages#29168 to add the hyperlink directly on the source text instead of printing below:

Before (or withsymfony/console < 4.3)

capture d ecran 2018-12-14 a 16 37 18

After

capture d ecran 2018-12-14 a 16 12 13

alexislefebvre, ostrolucky, mablae, apfelbox, maidmaid, and TomasVotruba reacted with thumbs up emojiyceruto reacted with heart emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

cool :)

@ostrolucky
Copy link
Contributor

ostrolucky commentedDec 15, 2018
edited
Loading

Problem with this is that link will be now inaccessible for users not using terminal which supports hyperlinks

@nicolas-grekas
Copy link
Member

@ostrolucky true. I think that's fine personally: most common terminals handle the links already and windows didn't make it clickable anyway.

@ostrolucky
Copy link
Contributor

yeah not a big deal in this one case, it's really minor inconvenience

@nicolas-grekas
Copy link
Member

Thank you@ogizanagi.

@nicolas-grekasnicolas-grekas merged commite54e219 intosymfony:masterDec 20, 2018
nicolas-grekas added a commit that referenced this pull requestDec 20, 2018
This PR was merged into the 4.3-dev branch.Discussion----------[VarDumper] Use hyperlinks in CliDescriptor| Q             | A| ------------- | ---| Branch?       | master <!-- see below -->| Bug fix?      | no| New feature?  | yes <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | Part of#29585   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/ALeverages#29168 to add the hyperlink directly on the source text instead of printing below:#### Before (or with `symfony/console < 4.3`)![capture d ecran 2018-12-14 a 16 37 18](https://user-images.githubusercontent.com/2211145/50012891-1e2efe00-ffc0-11e8-9e07-b5358cb057bd.png)#### After![capture d ecran 2018-12-14 a 16 12 13](https://user-images.githubusercontent.com/2211145/50012921-25560c00-ffc0-11e8-92cd-d6efd43419f9.png)Commits-------e54e219 [VarDumper] Use hyperlinks in CliDescriptor
@ogizanagiogizanagi deleted the var_dumper/cli_descr_file_link branchDecember 20, 2018 13:00
@TomasVotruba
Copy link
Contributor

I wonder how this could be leveraged withawesome console PHPStorm plugin

@ogizanagi
Copy link
ContributorAuthor

ogizanagi commentedDec 21, 2018
edited
Loading

Well, using this plugin, there's nothing much to do: bothsource andfile sections will already be interpreted by the plugin as links and allow to jump to the source. But only the full file link would allow to jump to the source & line nb.

Problem is though the hyperlink feature used here breaks the whole PhpStorm terminal emulator :/

Perhaps we could maintain a list of terminals actually supporting this feature to avoid such issues (at least ignore hyperlinks for PhpStorm terminal emulator, i.e:TERMINAL_EMULATOR=JetBrains-JediTerm).

fabpot added a commit that referenced this pull requestDec 23, 2018
This PR was merged into the 4.1 branch.Discussion----------[VarDumper] Add descriptors tests| Q             | A| ------------- | ---| Branch?       | 4.1 <!-- see below -->| Bug fix?      | yes| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | N/A   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/AJust adding some tests for these classes & fixing a small issue with the optional `project_dir` entry from `source` context provider.If merged before#29613, I'll update tests in it (796ca6b) (otherwise could be picked on merge).Commits-------8570b8a [VarDumper] Add descriptors tests
chalasr pushed a commit that referenced this pull requestDec 29, 2018
…lator (ogizanagi)This PR was merged into the 4.3-dev branch.Discussion----------[Console][VarDumper] Ignore href for PhpStorm terminal emulator| Q             | A| ------------- | ---| Branch?       | master <!-- see below -->| Bug fix?      | yes| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |#29613 (comment)   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/ASo, as explained in#29613 (comment), the hyperlink feature currently breaks the PhpStorm terminal (the output stops abruptly, sometimes the whole terminal emulator freezes). Currently, a simple `dump(new \Exception());` would be enough to break it.Hence I think we should at least ignore hyperlinks for this terminal emulator.📝https://youtrack.jetbrains.com/issue/IDEA-204536 feature request has been opened on JetBrains YouTrack.Commits-------0f65a76 [Console][VarDumper] Ignore href for PhpStorm terminal emulator
@nicolas-grekasnicolas-grekas modified the milestones:next,4.3Apr 30, 2019
@fabpotfabpot mentioned this pull requestMay 9, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

6 participants

@ogizanagi@ostrolucky@nicolas-grekas@TomasVotruba@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp