"Failed to parse validation script output" for remote Docker compose CLI interpreter Follow
I'm getting the following error in PhpStorm 2022.2.3:
When I execute:
docker compose exec app /usr/local/bin/php -v
It shows PHP version correctly.
And here's an excerpt from the logs:
2022-11-03 14:43:05,019 [30752053] FINE - #c.j.p.c.p.PhpInfoUtil - Loaded helper: /opt/.phpstorm_helpers/phpinfo.php
2022-11-03 14:43:06,773 [30753807] FINE - #c.j.p.c.p.PhpInfoUtil - Parsing validation output: Could not open input file: /opt/.phpstorm_helpers/phpinfo.php
2022-11-03 14:43:06,776 [30753810] INFO - STDERR - [Fatal Error] :1:1: Content is not allowed in prolog.
2022-11-03 14:43:06,777 [30753811] WARN - #c.j.p.c.p.PhpInfoUtil - Failed to parse validation output: Could not open input file: /opt/.phpstorm_helpers/phpinfo.php
2022-11-03 14:43:19,416 [30766450] WARN - #c.i.o.o.e.ConfigurableCardPanel - auto-dispose 'PHP' id=reference.webide.settings.project.settings.php
2022-11-03 14:43:19,416 [30766450] WARN - #c.i.o.o.e.ConfigurableCardPanel - auto-dispose 'PHP' id=reference.webide.settings.project.settings.php
2022-11-03 14:43:20,013 [30767047] INFO - #c.i.c.ComponentStoreImpl - Saving appeditorConfigEncodings took 68 ms
Please sign in to leave a comment.
That typically means there's something in your docker-compose config that prevents the container that IDE creates to communicate with your app. Is it possible to share your docker-compose & all related config files?
You can share them privately at https://uploads.jetbrains.com/, just let us know the upload ID.
Hello!
Have you an solution about this error?
I am exatally the same error :/
Same problem here after updating to 2022.2.3
There's still no solution to this because the details of the issue are unclear. It would be great if you could send us more info about your setup/project via Help | Contact Support or describe it here.
Would it help if you re-add this PHP Interpreter?
Would it help if you change the lifecycle of the interpreter to "docker-compose run" instead of "docker-compose exec"?
Dmitry Tronin hi!


Both options, run and exec, are have the same error. See into my print screens.
This is my docker-compose.yml:
Docker configuration on PHP Storm > Settings:
I am using the Rancher Desktop on version 1.6.2 with dockerd as container engine.
My PHP Storm version/build:
The generated log is the same sent by Mr Wolowski.
Do you need some information more?
Thanks. I can see your docker-compose.yml file is in a subfolder.
Would it work if you move it inside the root of your project? Volume mappings inside the file itself would have to be adjusted in that case.
2022.3 Beta fixed the issue for me
Dmitry Tronin


I try it, but doesnt work too :/
So, I installed 2022.3 Beta like Matt was mensioned, but doesnt work again.
Can you share your entrypoint and Dockerfile files?
Does running docker compose run api_cadastrodasorte php -v manually in terminal work?
I managed to fix it, but the unfortunate thing is that I don't really know how.
Yesterday I did some testing because it worked for some of my projects and for some it didn't. My projects tend to have similar docker-compose configurations, but I established that it was a docker-compose.yml value
that somehow made the difference. It's the only place where the PROJECT_NAME variable was used so basically it was down to PHP_IDE_CONFIG. But I don't know why it would work for some values and for others not.
Today I opened the project in question and found that it now works (regardless of the PHP_IDE_CONFIG value).
The other thing that could be a factor is that I'm managing my PhpStorm settings using a GitHub repository and a couple of days ago my PAT token that is used in communication with GitHub expired. Earlier today I generated a new one and synced IDE settings using Overwrite Remote option. I'm not sure how this could be related, but just for the record.
Thanks! Looks similar to https://youtrack.jetbrains.com/issue/WI-59878. If that happens again - feel free to submit that as a new bug report at https://youtrack.jetbrains.com/newIssue attaching some files that reproduce the issue - we'll investigate that closely.
Exact output than Diego at https://intellij-support.jetbrains.com/hc/en-us/community/posts/8402591953554/comments/8519244465426 a few comments before.
I'm using two separated projects with `docker-compose` in `network_mode` set to `bridge`. Having two windows with PHPStorm on each project, one connect without any problem while the other shows same output on log file, as well as in the UI.
The version of PHPStorm I'm using is:
`docker-compose` version is `v2.14.0` and `docker` daemon and cli is `20.10.21 build baeda1f`.
My `docker-compose.yml` are extremely simple, using `version: '3.4'`. For the record, an example:
Any idea here?
I made it work. Based in some other tickets in YouTrack, a env variable was missing under the desired CLI. So, in my case, the `COMPOSE_PROJECT_NAME` should be set as the same value than the key `name` in your `docker-compose.yml` file.
I was dealing with the same error. I managed to fix that by changing a configuration on: Settings > Build, Execution, Deployment > Docker > Tools and checking the box "Use Compose V2"
After that, I went to the PHP CLI configuration and just pushed the refresh button, and it works