Mac/PHPStorm - CLI Interpreter Creation Issue #1375
Replies: 6 comments 4 replies
-
Hi @GreatOakMike! I'm Dosu and I’m helping the docker-magento team. Your error suggests two main issues:
Once both the files are in place and Docker is running, try setting up the interpreter again. For the service, you should be able to select To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
I should have added that this is (except for setting up PHPStorm so far!), absolutely awesome! Easy, consistent, and successful to run one command and have a Magento setup on my local machine. (Apple M2Max Silicon, MacBook Pro). Tried almost everyting else to run Magento on my Mac - nothing but this works! Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I verified that the two files were in the /magento subdirectory. To be safe, I even copied them in the /magento/src subdirectory and neither option worked.
I verified that the /usr/local/bin entries were symlinks to the proper locations in the Docker.app location.
I verified docker —version from my /magento location.
I still get the same error after closing and reopening both Docker and PHPStorm.
I can’t see why docker can’t run in the right directory - it exists, the docker app exists and is running…..
Thanks for any help you can give.
|
Beta Was this translation helpful? Give feedback.
-
Closer….
It turns out the PHPStorm didn’t like the symlinks for whatever reason. But I got the CLI set up. Now I get the following:
"[docker-compose://[/Users/myUser/Sites/magento/compose.yaml, /Users/myUser/Sites/magento/compose.dev.yaml]:phpfpm/]:php" /opt/.phpstorm_helpers/phpunit.php --configuration /Users/myUser/Sites/magento/src/dev/tests/unit/phpunit.xml.dist
Testing started at 10:58 AM ...
The value of autoloader is specified, but file doesn't exist '/Users/myUser/Sites/magento/src/vendor/autoload.php'
Process finished with exit code 1
The file exists at the location specified so I’m not sure why docker-compose doesn’t like it….
|
Beta Was this translation helpful? Give feedback.
-
Still closer, but not quite there yet. All commands run from container, CLI created, but still fizzles when I try to debug. |
Beta Was this translation helpful? Give feedback.
-
When I click Debug, what I get is a browser window running |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got an issue when trying to create the CLI Interpreter in PHPStorm for debugging my Magento 2.4.8-p2 platform. Following all direction in the setup page, I get an error that it can't find the "compose.yaml" and "compose.dev.yaml" files, nor the Service. I've chosen:
Error while parsing "/Users/myUser/Sites/magento/compose.yaml:": com.intellij.docker.agent.ApiTaskException: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "usr/local/bin/docker" (in directory"/Users/myUser/Sites/magento") error=2, No such file or directory
Everything in /usr/local/bin points back to the /Applications/Docker.app directory, so it should "find" what it needs. But....
How do I solve this one?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions