Open zolotov88 opened 4 years ago
Thanks for requesting the feature.
It should be possible to run it with a bash script, I just tried it out with a simple bash script
#!/bin/sh
path-to/phpinsights "$@"
and it worked for me.
The way the plugin runs the tool is simply by running the file you supply to it and passing the arguments to the path specified.
It does not try to execute it as a php script.
Bash script can run phpinsights in container. But it dont works. It even dont validates. I think that there is 2 problems:
When I use remote php from docker in phpstorm it makes phpstorm_helpescontainer[SOME-ADDITIONAL-INFO]. Maybe it needs to to solve these problems.
I cant find this file. Where it can be?
Allright, so I'll try adding support for selecting the php interpreter from the list you have set in phpstorm, that might fix this for you. Something like this I think would be suitable
The way all external tools in intellij works, is that they run themself on a tmp file of the one you want to run on. When the tool has ran on the file, the file is deleted from the tmp folder.
Use it with remoute php interpreter or with bash script
Like that: