Menu

#263 Mode "comment" do not work.

0.60
closed
true-bug (70)
5
2016-12-11
2012-09-12
Alexey
No

$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
$ echo 'errorX # errorX' >text
$ aspell --mode=none -c text # <-- get both typos
$ aspell --mode=comment -c text # <-- get no typos (!)

It seems, that # character brokes filter "context",
If I change "#" in comment.amf to some one else,
say "//", then everything working properly.

---- cat /usr/lib/aspell-0.60/comment.amf ----
MODE comment

ASPELL >=0.60

DESCRIPTION mode to check any lines starting with a \#

FILTER url
FILTER context
OPTION clear-context-delimiters
OPTION add-context-delimiters \# \0
---- EOF ----

Discussion

  • Kevin Atkinson

    Kevin Atkinson - 2012-09-12

    How are you calling Aspell is it by chance with "aspell -a". If not can you please attach a test file and specify exactly how you are calling Aspell.

     
  • Alexey

    Alexey - 2012-09-13
     
  • Alexey

    Alexey - 2012-09-13

    By the way, this bug disappear in 0.61-cvs. But may be you can propose a workaround for 0.60.6.1 (current stable)?

     
  • Kevin Atkinson

    Kevin Atkinson - 2012-09-13

    Thank you for that extra information. Can you please answer the question I asked earlier:

    How are you calling Aspell is it by chance with "aspell -a". If not can you please attach a test file and specify exactly how you are calling Aspell.

    It can make a difference.

    Thanks.

     
  • Alexey

    Alexey - 2012-09-13

    Similar tests with -a options. The problem does not go away.

     
  • Alexey

    Alexey - 2012-09-13

    I prepare a tests with -a. The problem does not go away.
    First test -- two error. All works well.
    Second test -- no errors. Comments are not checked.
    My output of test-with-a.sh (attached):
    --- CAT ---

    @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
    we going to check file with two errors;
    firts one in code, second one in comments:
    --CAT--
    errorX # errorX
    --EOF--
    test 1: mode=none; get both typos (all right)
    press enter to go
    @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
    & errorX 2 0: error, errors
    & errorX 2 9: error, errors

    test 2: mode=comment; get no typos (aspell do not check comments)
    press enter to go
    @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
    --- END ---

     
  • Kevin Atkinson

    Kevin Atkinson - 2012-09-13

    I'm sorry I missed the fact the fact that you attached a file as a test case.

    You can disregard the last question.

    I will look into it.

     
  • Alexey

    Alexey - 2012-09-13

    I'm sorry too. I made some more tests. It seems this bug reproduced in 0.61-cvs too.

     
  • Kevin Atkinson

    Kevin Atkinson - 2016-12-11

    This issue has moved to GitHub: https://github.com/GNUAspell/aspell/issues/505

     
  • Kevin Atkinson

    Kevin Atkinson - 2016-12-11
    • Status: open --> closed