Remote docker-compose php interpreter configuration throws error

Ubuntu 20.04
A Remote php interpreter configuring throws error when pointing the docker-compose.yml .


Same project, same docker-compose.yml was working just fine on my computer so it's definitely parcable. I had to replace my computer with the current one and suddenly it stops working.
Any ideas what might be the problem? 10x

0

Would it be possible to share a copy of your Docker Compose file?

Also, please try this super-simple docker-compose.yml on your setup: 

version: "2"
services:
service01:
image: phpstorm/php-71-apache-xdebug-26
working_dir: "/opt/project"
volumes:
- .:/opt/project

Would it also fail to parse?

0

I meet the same issue . Here is my docker-compose.yml 

version: '2'
services:
  test-image:
    image: php:8.2.10-fpm
    container_name: php8.2
    restart: always
    extra_hosts:
      - "docker:127.0.0.1"
    privileged: true
    tty: true

 

And Here is the version info

xxMBP:ai xx$ /usr/local/bin/docker-compose -v
Docker Compose version v2.21.0-desktop.1
xxMBP:ai xx$ /usr/local/bin/docker -v
Docker version 24.0.6, build ed223bc

 

phpstorm:

PhpStorm 2021.1.4
 

 

0

PhpStorm 2021.1.4
Build #PS-211.7628.25, built on June 30, 2021

I would suggest updating PhpStorm to the latest build (2023.2.3) as lot of things in Docker Compose support were changed since then.

ps. Also, it is not a good idea to use eval reset “solutions”. 
Abstracting from moral judgments, there is technical side to consider as these “solutions” may change the way how IDE performs thus making it unpredictable.

0

请先登录再写评论。