PhpStorm and Docker - Unable to configure the Remote PHP interpreter (Failed to parse script validation output)
minalsharma888 opened this issue · comments
I'm using Docker composer with a PHP. When trying to set the interpreter I choose Docker compose and connecting with existing container and then it fails with the error "Failed to parse script validation output".
If I execute php -v inside the container everything seems fine,
What is the expected result? An installed php version should be shown
What happens instead? Failed to parse validation script output message and PHP version: not installed label
It's working fine with docker-compose run lifecycle
PS:
PhpStorm 2023.1.2
Docker version 24.0.2, build cb74dfc
Settings > Build, Execution, Deployment > Docker > Tools and checking the box "Use Compose V2" didn't work for me.
Getting below error in ide.log
2023-06-15 11:30:07,860 [1825374] FINE - #c.j.p.c.p.PhpInfoUtil - Parsing validation output: Could not open input file: /opt/.phpstorm_helpers/phpinfo.php
2023-06-15 11:30:07,861 [1825375] INFO - STDERR - [Fatal Error] :1:1: Content is not allowed in prolog.
2023-06-15 11:30:07,861 [1825375] WARN - #c.j.p.c.p.PhpInfoUtil - Failed to parse validation output: Could not open input file: /opt/.phpstorm_helpers/phpinfo.php
2023-06-15 11:30:07,862 [1825376] FINE - #c.j.p.c.p.PhpInfoUtil -
com.intellij.execution.ExecutionException: Failed to parse validation script output
Hello @minalsharma888
This repository concern the Compose Specification and the file format associated and not issue you may face using Docker Compose.
I saw you already opened an issue in the docker/compose repository, so I'll close this one