Skip to content
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

implement improved camel case #630

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

feckertson
Copy link
Contributor

Addresses #629

Copy link
Member

@kevina kevina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code crashes on me when checking any camel case word:

Starting program: /home/kevina/devel/aspell/inst/bin/aspell -a --camel-case
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.9-git)
theBuild

Program received signal SIGSEGV, Segmentation fault.
0x000055555556733e in status_fun (d=0x7fffffffd710, correct=1) at ../prog/aspell.cpp:677
677         if (ci->compound)
(gdb) bt
#0  0x000055555556733e in status_fun (d=0x7fffffffd710, correct=1) at ../prog/aspell.cpp:677
#1  0x00005555555af66b in acommon::DocumentChecker::next_misspelling (this=0x5555556d2d90) at ../common/document_checker.cpp:86
#2  0x00005555555686b7 in pipe () at ../prog/aspell.cpp:867
#3  0x0000555555565cdb in main (argc=3, argv=0x7fffffffe158) at ../prog/aspell.cpp:419
(gdb) p ci
$1 = (const acommon::CheckInfo *) 0x0

@kevina
Copy link
Member

kevina commented Dec 25, 2022

Please let me know when this is ready for me to look at it again by using the re-request review feature. It will likely be sometime early January before I am able to look at.

@feckertson
Copy link
Contributor Author

aPipeCheckNowWorksEvenOnCamelCaseStringsHavingNUMEROUSComponents

build_jessie fails even if there are no code changes.

Apologies for extraneous commits, but I have had trouble getting all the automated checks to run in Cygwin.

test/sanity Outdated
@@ -32,3 +32,20 @@ else
exit 1
fi

echo 'itIsOKForACamelCaseWordToContainNumerousCOMPONENTS' | aspell --camel-case -d en_US -a > tmp/res
if cat tmp/res | fgrep '-'; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sanity is meant for a few quick tests to make sure Aspell functions at all. Specific unit tests should be in a separate file. Please move these into the file test/camel_case and add a target for it in the Makefile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants