Problem/Motivation
> cspell -------------------------------------- ◯ ^8.16.0 ------ ◉ ^8.16.1 ------
Note; This bump, although small, has been given its own issue, because it actually requires changes outside the package.json and/or yarn.lock-file.
@longwave confirmed it's okay (in this specific case) to bundle all JavaScript dependencies that don't have the above changes in a single issue.
This is very welcome, because it means a lot can be done in one issue and basically every extra issue about JavaScript dependencies ends up in reroll-limbo if any of the other JavaScript dependencies gets committed.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Comments
Comment #3
spokjeComment #4
spokjeComment #5
quietone commented@spokje, did you rebuild the dictionary? Both kernighan and richie were removed the dictionary earlier this year in #3449356: Rebuild dictionary.txt. I applied this diff, reinstalled, and rebuilt the dictionary and both those names were removed.
Comment #6
spokje@quietone, Crap I fell into my old nemisis' trap yet again: Running a dictionary rebuild on a non-clean core checkout.
Thanks for noticing, I'll fix that right away.
Comment #7
spokjeReran
$ yarn spellcheck:make-dicton a clean core checkout.Thanks again @quietone!
Comment #8
quietone commented@spokje, Thanks!
Comment #11
longwaveCommitted and pushed to 11.x and 11.1.x, thanks!
Marking for backport to 10.4.x/10.5.x.
Comment #15
spokjeComment #17
longwaveCommitted to 10.5.x, doesn't cherry-pick cleanly to 10.4.x due to conflicts in yarn.lock - although there shouldn't be any, so not sure what's happened there.
Comment #19
quietone commentedThe hash for dict-golang didn't match.
10.4.0-rc1 was tagged with dict-golang at 6.0.17 but then when the branch went 'back to dev' it was 6.0.16. What happened there?
Comment #21
longwaveCommitted 1944dc5 and pushed to 10.4.x. Thanks!
Comment #25
tr commentedMaybe not directly related, but "varchar" is now being flagged as spelled wrong in GitLabCI tests with cspell 8.16.1
My last test where it it ran green was on 14 Dec using cspell 8.13.0
My first test where it failed was on 18 Dec using cspell 8.16.1
There were no commits to the project between these two runs, but of course core 11.1 was released so GitLabCI now automatically uses that, which also changed some of the dependencies I assume.
The line of code (in
hook_schema()in an install file) hasn't changed in almost 9 years. Core uses 'varchar' more than 1000 times.Why is it being flagged in contrib testing? Is this due to a template change? I don't see varchar in the dictionary before or after this change.
Failing cspell job:
https://git.drupalcode.org/project/honeypot/-/jobs/3750200
Passing cspell job:
https://git.drupalcode.org/project/honeypot/-/jobs/3669640
I have other projects that now also have this same cspell error.
Comment #26
spokjeHmmm,
If I search core for "varchar" I get ~1200 results, so I would expect those to fail in the core GitLab CI, which they don't.
So that makes me think it's a GitLab (config of cspell-run) problem, and not a specific cspell version problem?
Comment #27
quietone commentedWhen the dictionary was rebuilt just before the commit to 11.x, the word 'varchar' was removed from the dictionary. Curiously,
yarn cspell trace varchardoes not show the word is in any of the dictionaries Drupal uses.Comment #28
tr commentedOK, so varchar was removed from the dictionary as part of #3460114: Update JavaScript dependencies for Drupal 11.0-rc, back in July in 11.0-rc. Not sure why it's only now causing a problem in 11.1 ?
I guess that was unintentional, because there is no mention of this in the issue comments? Regardless, the changes to the dictionary made in that issue ought to get a second look because varchar may not be the only thing unintentionally removed ...
So where is the appropriate place to open an issue for this?
Comment #29
tr commentedIf this isn't something that can or should be handled here ...
Comment #30
elc commentedCreated an issue: #3498323: CSpell: *.install,*.module etc should be treated as PHP so 'varchar' is not treated as a spelling mistake
Task/Other issue on Drupal Core seems to be the place to discuss and do these things.