![]() Yeah, me neither, until I solved the problem as described. You can override this behavior by using an environment variable: `COMPOSER_ALLOW_XDEBUG=1`. To improve performance when the xdebug extension is enabled, Composer automatically restarts PHP without it. I needed to get step debugging working in PhpStorm and this is the approach I took. Problem solved_! BTW, did you notice this was explained in the Composer vendor/composer/composer/doc/articles/troubleshooting.md documentation ? One project I’m working on has multiple separate parts in different git repositories that are brought into the main project using linked composer directories. In practice, this means all we need it to pass a COMPOSER_ALLOW_XDEBUG environment variable with a non-empty value in the PhpStorm run configuration, like this. In which case, as shown above, it won't cause the new command to be built, and Composer will just proceed with our script and allow our debugging to work. So, if COMPOSER_ALLOW_XDEBUG is not empty, needsRestart($allow) will return FALSE. : The new social network features of Le Figaro are now powered by an OSInet-designed MongoDB implementation.Either its still trying to find and use a composer on my host Windows install (which doesnt exist) or Im missing a path which I have to map for WSL. Im not sure how to determine which terminal or composer file PHPStorm is using. : Completed migration of FranceInfo.FR from SPIP to Drupal Additionally, running composer install within my project, on WSL works without issue. ![]() : Sotchi Olympics traffic not a problem for, which I rearchitected on Drupal 7 in 2013.: 400% speedup in 3 weeks for : who said Drupal back-offices had to be slow ?.: Our first Drupal 8 production site at France Télévisions is live I have recently configured my windows 10 laptop with an additional SSD, so I could experiment with Linux.: 50% less server load with MongoDB on the Drupal 7 site factory at France Télévisions.: New Drupal 8 site galaxy (+/- 70 sites) for Agences Régionales de Santé architected and tech-led by OSInet, delivered by Klee.: New headless Drupal 8 / Symfony 3 site at FranceTV Sport, architected and tech-led by OSInet, with RabbitMQ.: New Drupal 8 site at Rue du Commerce, architected and tech-led by OSInet, just went throught Black Friday week with flying colors thanks to RabbitMQ.Problem solved_! BTW, did you notice this was explained in the Composer vendor/composer/composer/doc/articles/troubleshooting.md documentation ? Use the shortcut links on top of the composer.json editor panel to quickly install or update the project dependencies, open the Composer Log, and access additional commands. In practice, this means all we need it to pass a COMPOSER_ALLOW_XDEBUG environment variable with a non-empty value in the PhpStorm run configuration, like this. PhpStorm provides comprehensive coding assistance for working with composer.json and lets you perform many Composer-related tasks directly from the code editor. Errors received in my 'Event Log': 12: 21 PM Composer Failed to install packages for./composer.json. And unfortunately, the errors are not very indicative of the cause or offer a link for additional details. However, when I initiate any Composer commands from PHPStorm, I get errors. Install the extension for ext-dom, then reload/restart your server and run 'composer install' again. Remote being my Windows Subsystem for Linux (WSL) installation. ![]() So, if COMPOSER_ALLOW_XDEBUG is not empty, needsRestart($allow) will return FALSE. You are missing an extension in your php.ini setting. Let's go back to the beginning of this check() method: So how does one fix the problem ? The solution Certain fields only apply when in the root package context. Now, since this command no longer runs with Xdebug, there is no way a debugging tool can use it. It is the main composer.json that defines your project requirements. Here's the crux of the problem: in order to alleviate the extreme slowdown caused by XDebug when running Composer commands, any time Composer is run, it checks for the presence of Xdebug in the running PHP configuration, and if it finds it (the needsRestart() check), it rebuilds a command line with a different PHP configuration ( $command = $this->getCommand() ), which does not include the xdebug extension, and runs it in the $this->restart($command) call, which actually runs the new command using the passthru mechanism. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |