Skip to content

Conversation

harcod
Copy link
Contributor

@harcod harcod commented Feb 27, 2017

PhpStorm 8 (Mac) provided native support for the "phpstorm:" protocol. However, they implemented a different format for the the URL.

PhpStorm Mac uses: phpstorm://open?file=@file&line=@line
This handler uses phpstorm://open?url=file://@file&line=@line

symfony/symfony#21712 is going to change the default format to be the Macintosh format.

This pull request contains the necessary modifications to support both formats simultaneously. This would standardize the system so that you would not need two different configurations if you are working on different platforms (i.e. Linux vs Mac)

Stefan Auditor added 3 commits February 28, 2017 12:04
Removed escapes
Removed first capturing group
@sanduhrs sanduhrs merged commit 3786d33 into sanduhrs:master Feb 28, 2017
@sanduhrs
Copy link
Owner

Added that. Thanks for your contribution!

Copy link
Contributor Author

@harcod harcod left a comment

Choose a reason for hiding this comment

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

I tested the merged code and it failed because "non-capturing groups" (?:) are not supported by sed


arg=${1}
pattern=".*file(:\/\/|\=)(.*)&line=(.*)"
pattern=".*file(?::\/\/|\=)(.*)&line=(.*)"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested the merged code and unfortunately it failed.
Non-capturing groups are not supported by sed
That regex syntax is only supported in PCRE (not BRE or ERE which sed supports)

Copy link
Owner

Choose a reason for hiding this comment

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

Reverted that back to what you suggested first.
Thanks again!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested Release 1.2.1 and it works perfectly! Thanks for making the changes to the master.

@harcod harcod deleted the patch-1 branch March 1, 2017 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants