-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add extension .phar to installed tools #439
base: master
Are you sure you want to change the base?
Add extension .phar to installed tools #439
Conversation
It's actually very much intentional we drop the extension. And one of the reaons is exactly that PHPStorm does NOT "see" them. Because you exactly do NOT want to have autocomplete for code that just happens to be used by your tools. I see that there is at least one valid edge case: PHPUnit, which happens to be a tool as well as a framework for which you'd want autocomplete when writing tests. But then again, you do NOT want auto complete for all of PHPUnit but only the relevant framework components. Thanks for providing this PR though anyway. I have to think about this change. It feels like the wrong solution to the problem. |
On my point of view, it is useful not only for PHPUnit, but for all scripts which works with configs in php-files. |
1a20241
to
f8b1ab5
Compare
f8b1ab5
to
7ce133c
Compare
I'm still not fully convinced but am considering to add this, as you made it a configurable thing. Did you test this on windows? Because adding |
Second question: Is the |
This config affects only new installs case all aspects of installation of packages added before handled by |
I don't quite understand why you talk about |
On a unix'ish OS, we use symlinks per default to map a shared phar from the location we store them into the respective project. We can, of course, easily control the target name in the project as your patch suggests. On Windows, a Your implementation seems to be unaware of this and thus would potentially only work when the phar is copied along, e.g. wenn And I'm not sure if the changed name is reflected in the phive.xml / .phive/phars.xml file when |
PHPStorm don't understand content of PHAR file and cannot autocomplete when tool installed via link and without extension. Currently, we have to do it manually. So, this update should help to solve this issue.