Get ddev working for alt text validation

Created on 31 January 2025, 29 days ago

Problem/Motivation

Being able to checkout the repo and spin up a ddev site to work on the module

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @dmundra
  • Pipeline finished with Success
    29 days ago
    Total: 145s
    #411453
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    Tested locally by comparing ddev config in https://www.drupal.org/project/tragedy_commons β†’ to this module and tested it locally. Changes in https://git.drupalcode.org/project/alt_text_validation/-/merge_requests/26. The test is to check out the branch and run the commands from CONTRIBUTING.md to see if you can spin up the site locally.

  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    I am running into this error on running 'ddev poser'

    17:29:51 Β» ddev poser
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  8538  100  8538    0     0  27324      0 --:--:-- --:--:-- --:--:-- 27365
    drupalConstraint = ^10.3
    core_version=10.3
    Writing output to composer.contrib.json
    PHP Fatal error:  Uncaught Error: Class "Composer\XdebugHandler\XdebugHandler" not found in /var/www/html/vendor/composer/composer/bin/composer:29
    Stack trace:
    #0 /var/www/html/vendor/bin/composer(119): include()
    #1 {main}
      thrown in /var/www/html/vendor/composer/composer/bin/composer on line 29
    
    Fatal error: Uncaught Error: Class "Composer\XdebugHandler\XdebugHandler" not found in /var/www/html/vendor/composer/composer/bin/composer:29
    Stack trace:
    #0 /var/www/html/vendor/bin/composer(119): include()
    #1 {main}
      thrown in /var/www/html/vendor/composer/composer/bin/composer on line 29
    touch: cannot touch 'web/core/.env': No such file or directory
    Failed to run poser : exit status 1
    
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    @swirt try it now. I think the minimum-stability and other composer values is likely what caused the issue so I switched those values and removed some.

  • Pipeline finished with Canceled
    28 days ago
    Total: 243s
    #412198
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    FYI here is example https://git.drupalcode.org/project/svg_image_field/-/merge_requests/26/d... I followed for the contributing file.

  • Pipeline finished with Success
    28 days ago
    #412200
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    @dmundra thank you for working on this again.

    If do the following:

    1. git pull (to pull your new changes
    2. ddev delete (to make sure I have a blank slate)
    3. ddev start

    I get the following error

    PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.30. in /var/www/html/vendor/composer/platform_check.php on line 24
    

    I just pushed up a commit to resolve the php version.

    Repeating the steps above results in a success for 'ddev start'
    However, running `ddev poser` again fails with the same error as I started with

    Writing output to composer.contrib.json
    PHP Fatal error:  Uncaught Error: Class "Composer\XdebugHandler\XdebugHandler" not found in /var/www/html/vendor/composer/composer/bin/composer:29
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    Ya Steve still baffling why you are getting this error. I pulled down your changes, did ddev deleted and was able to get it to work. FYI what is your composer version? Here is mine:

    dmundra in ~/workspace/community/alt_text_validation on branch 3503655-get-ddev-working > composer --version
    Composer version 2.8.4 2024-12-11 11:57:47
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    Mine seems to match yours exactly

    ddev composer -V
    Composer version 2.8.5 2025-01-21 15:23:40
    PHP version 8.2.27 (/usr/bin/php8.2)
    
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    Thank you @dmundra for taking this on. This is all up and running now.

  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    Other than a couple minor tweaks in that last commit, the solution for me was to

    1. ddev delete
    2. delete the entire clone
    3. git clone the repo again.
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    Thank you @swirt.

  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    This went out with 1.0.0-alpha6 β†’ .

Production build 0.71.5 2024