-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error on words that were previously passing using acronyms in variables #6065
Comments
Thank you. I'll take a look at the CamelCase splitter. It changed slightly recently. |
It looks like #6032 made the splitter a bit stricter to get consistent results. TL;DR The spell checker has a two pass word splitter. The first pass is a simple camel case splitter. The second pass is more extensive. The goal of the first pass is speed. It handles over 90% of the splitting needs.
Very short words like If the first pass fails to find (or skip too short words) all the words, then the second pass is used. The second pass will not skip short words. It expects all the words to be found. It tries all possible word breaks.
#6032 fixed an issue where during the first pass, short words were added to the found list while checking a document. If earlier in your document, you had a function called |
Related to #6065. - Try standard word breaks before using English suffix endings. - Make sure the API doesn't change when adding functions to `text.ts`. - Fix possible accent issue with wordSplitter (note, not an issue with Normalized strings).
Thank you @Jason3S for looking into this and the background on how the bug occurred! I'm excited to try it out the fix! |
Related to #6065. - Try standard word breaks before using English suffix endings. - Make sure the API doesn't change when adding functions to `text.ts`. - Fix possible accent issue with wordSplitter (note, not an issue with Normalized strings).
I'm sorry for the misunderstanding, but there isn't a "fix". The bug hid an issue that has been there for a long time. The fix is to add I'll release a new version of CSpell soon with the updated dictionary, but you might have the same issue with other words. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Kind of Issue
Change in behavior / Regression
Tool or Library
cspell
Version
8.13.2
Supporting Library
Not sure / None
OS
macOS
OS Version
14.5
Description
We have existing code that was passing with 8.13.1, now with 8.13.2 we are failing.
Steps to Reproduce
markUIAsReady
Observe error
Unknown word (UIAs)
Expected Behavior
should pass cSpell check.
Additional Information
No response
cspell.json
No response
cspell.config.yaml
Example Repository
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: