Problem/Motivation
Two things:
1. Merge Requests in SVG Image Field's issue queue are failing automated tests, due to the `cspell` step, caused by the site studio submodule using the British "colour".
Error message:
$ echo "Executing $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/cspell -c .cspell.json --show-suggestions --show-context $CSPELL_PROGRESS $_CSPELL_EXTRA ."
Executing /builds/project/svg_image_field/web/core/node_modules/.bin/cspell -c .cspell.json --show-suggestions --show-context --no-progress .
$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/cspell -c .cspell.json --show-suggestions --show-context $CSPELL_PROGRESS $_CSPELL_EXTRA . || EXIT_CODE=$?
modules/svg_image_field_media_bundle/config/pack_svg_components/cohesion_elements.cohesion_component.cpt_vector_image_card.yml:4107:31 - Unknown word (Colour) -- "type": "cohColourPickerOpener",
Suggestions: [Color, Dolour, Cooler, colo, Colo]
modules/svg_image_field_media_bundle/config/pack_svg_components/cohesion_elements.cohesion_component.cpt_vector_image_card.yml:4108:20 - Unknown word (colour) -- "colourPickerOptions": {
Suggestions: [color, cooler, colo, calor, cloud]
modules/svg_image_field_media_bundle/config/pack_svg_components/cohesion_elements.cohesion_component.cpt_vector_image_card.yml:4306:31 - Unknown word (Colour) -- "type": "cohColourPickerOpener",
Suggestions: [Color, Dolour, Cooler, colo, Colo]
modules/svg_image_field_media_bundle/config/pack_svg_components/cohesion_elements.cohesion_component.cpt_vector_image_card.yml:4307:20 - Unknown word (colour) -- "colourPickerOptions": {
Suggestions: [color, cooler, colo, calor, cloud]
CSpell: Files checked: 43, Issues found: 4 in 1 file.
$ WORDS_FILE=_cspell_unrecognized_words.txt
$ UPDATED_PROJECT_DICTIONARY=_cspell_updated_project_words.txt
$ touch $_CSPELL_DICTIONARY $WORDS_FILE $UPDATED_PROJECT_DICTIONARY
$ if [ "$EXIT_CODE" != "" ]; then # collapsed multi-line command
_CSPELL_EXTRA=
CSpell: Files checked: 43, Issues found: 4 in 1 file.
The number of distinct unrecognised/misspelled words is 1
------------
colour
------------
2. using `ddev cspell` is broken when using Drupal 11.2 or higher.
It looks like by default, yarn install, now uses plug-n-play which no longer installs the "cspell" binary into web/core/node_modules/.bin/
Steps to reproduce
Proposed resolution
1. Add "colour" to our .cspell-project-words.txt file, Since we have zero control over Site Studio's internal naming schemes.
2. Fix .ddev/commands/web/cspell to detect binary executable location (be that via the newer Yarn PnP location, or the old node_modules/.bin/ folder location.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork svg_image_field-3567360
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
jwilson3