From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 20 09:53:14 2025 Received: (at submit) by debbugs.gnu.org; 20 Sep 2025 13:53:14 +0000 Received: from localhost ([127.0.0.1]:45127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uzy1a-00084y-61 for submit@debbugs.gnu.org; Sat, 20 Sep 2025 09:53:14 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59072) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uzy1X-00084T-DB for submit@debbugs.gnu.org; Sat, 20 Sep 2025 09:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uzy1R-0003FI-21 for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2025 09:53:05 -0400 Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uzy1P-0006DS-3w for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2025 09:53:04 -0400 Received: (qmail 68840 invoked by uid 3782); 20 Sep 2025 15:52:59 +0200 Received: from muc.de (p4fe15935.dip0.t-ipconnect.de [79.225.89.53]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 20 Sep 2025 15:52:59 +0200 Received: (qmail 31949 invoked by uid 1000); 20 Sep 2025 13:52:58 -0000 Date: Sat, 20 Sep 2025 13:52:58 +0000 To: bug-gnu-emacs@gnu.org Subject: Emacs Emacs 31.0.50: ispell-tests.el: "Can't find Hunspell dictionary with a \.aff affix file" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.3; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hello, Emacs. When I run the test suite with make check, I get 25 successes in test/lisp/textmode/ispell-tests/ispell-tests.log. Each of these has the same error message, "Can't find Hunspell dictionary with a .aff affix file". I don't know what a .aff file is, but it seems like my setup is missing one. Despite this, surely ispell-tests.el should cope with this deficiency, rather than emitting 25 error messages. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 20 10:20:26 2025 Received: (at 79477) by debbugs.gnu.org; 20 Sep 2025 14:20:27 +0000 Received: from localhost ([127.0.0.1]:46206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uzyRu-0001dS-H5 for submit@debbugs.gnu.org; Sat, 20 Sep 2025 10:20:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51616) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uzyRq-0001cv-BS for 79477@debbugs.gnu.org; Sat, 20 Sep 2025 10:20:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uzyRj-0003Zp-N9; Sat, 20 Sep 2025 10:20:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2OFPpy2PJTqFMXlvPOMtAmNfNSboxLk8kryctWNdcfM=; b=HGBXQYTVRP8q FY86fDeHu1wyPZUCRuMOEUAEkcHD2+Ce2EXNe4oWYo1LJFUCSAOZPN3NPc67QkMkWwfFaomamG+vq NEtDbR0QY6JjCmPCN7zfjmNeXi7mWswIFs5lLCiFmaCKmA76S5BdfQpgQTG1/9JoSjeuEunOkUmwx hL4iZJgpim7Zd6J3Dr5yNQ5b1NhuFpsU8zYkdlSAhbpEsLbskjFU063gL7qKpOFeKXRXjQ+kt3OEK 3LfkoW6DLo1Nl9WskSB22y/KKcZLdIod1lsBmk+9xhrqsEZoALNwRC5lcVkHadSOcC4IbnonxgwmN Tc5ThH3Z0JN2kCX8Zxn6uA==; Date: Sat, 20 Sep 2025 17:20:12 +0300 Message-Id: <86o6r5gq8z.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-Reply-To: (message from Alan Mackenzie on Sat, 20 Sep 2025 13:52:58 +0000) Subject: Re: bug#79477: Emacs Emacs 31.0.50: ispell-tests.el: "Can't find Hunspell dictionary with a \.aff affix file" References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79477 Cc: 79477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 20 Sep 2025 13:52:58 +0000 > From: Alan Mackenzie > > Hello, Emacs. > > When I run the test suite with make check, I get 25 successes in > test/lisp/textmode/ispell-tests/ispell-tests.log. Each of these has the > same error message, "Can't find Hunspell dictionary with a .aff affix > file". > > I don't know what a .aff file is, but it seems like my setup is missing > one. Despite this, surely ispell-tests.el should cope with this > deficiency, rather than emitting 25 error messages. Are you saying that you have the Hunspell executable, but not its dictionaries? What happens if you invoke Hunspell from the shell prompt -- does it work or does it show some error message? If your Hunspell installation is workable, you should have a /usr/share/hunspell directory with *.aff files. If they are missing, either install them or remove the Hunspell executable. The Emacs test suite is not supposed to cope with installations that don't work, so showing error messages is OK in that case. If all of the above doesn't resolve your problem, please show the exact error messages, with everything else that the test displays (which you should have done in the first place, of course). FWIW, I've just tried renaming the Hunspell executable, and the test suite correctly skipped the relevant ispell tests. So if Hunspell is not installed, I don't expect any error messages. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 20 12:12:34 2025 Received: (at 79477) by debbugs.gnu.org; 20 Sep 2025 16:12:34 +0000 Received: from localhost ([127.0.0.1]:46689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1v00CP-0001hG-Hh for submit@debbugs.gnu.org; Sat, 20 Sep 2025 12:12:33 -0400 Received: from mail.muc.de ([193.149.48.3]:62629) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1v00CM-0001gq-LZ for 79477@debbugs.gnu.org; Sat, 20 Sep 2025 12:12:31 -0400 Received: (qmail 47472 invoked by uid 3782); 20 Sep 2025 18:12:23 +0200 Received: from muc.de (p4fe15935.dip0.t-ipconnect.de [79.225.89.53]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 20 Sep 2025 18:12:23 +0200 Received: (qmail 1409 invoked by uid 1000); 20 Sep 2025 16:12:22 -0000 Date: Sat, 20 Sep 2025 16:12:22 +0000 To: Eli Zaretskii Subject: Re: bug#79477: Emacs Emacs 31.0.50: ispell-tests.el: "Can't find Hunspell dictionary with a \.aff affix file" Message-ID: References: <86o6r5gq8z.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86o6r5gq8z.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79477 Cc: acm@muc.de, 79477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Eli. Thanks for such a quick reply! On Sat, Sep 20, 2025 at 17:20:12 +0300, Eli Zaretskii wrote: > > Date: Sat, 20 Sep 2025 13:52:58 +0000 > > From: Alan Mackenzie > > Hello, Emacs. > > When I run the test suite with make check, I get 25 successes in > > test/lisp/textmode/ispell-tests/ispell-tests.log. Each of these has the > > same error message, "Can't find Hunspell dictionary with a .aff affix > > file". > > I don't know what a .aff file is, but it seems like my setup is missing > > one. Despite this, surely ispell-tests.el should cope with this > > deficiency, rather than emitting 25 error messages. > Are you saying that you have the Hunspell executable, but not its > dictionaries? Yes, that is indeed the case. The Hunspell installation script on Gentoo installs the dictionaries it is specifically asked to install, and if none are requested, none are installed. No sensible default is used. This may be a Gentoo bug. > What happens if you invoke Hunspell from the shell prompt -- does it > work or does it show some error message? I get the error message: Can't open affix or dictionary files for dictionary named "en_GB". .. > If your Hunspell installation is workable, you should have a > /usr/share/hunspell directory with *.aff files. If they are missing, > either install them or remove the Hunspell executable. The Emacs test > suite is not supposed to cope with installations that don't work, so > showing error messages is OK in that case. I have what is arguably a valid installation, even though not useful. I tried reinstalling it, and got no warning message about the lack of languages. After deinstalling hunspell ...., I get a different message in ispell-tests.log: (error "No Ispell process to read output from!") , but I suspect that will go away as soon as I reboot. > If all of the above doesn't resolve your problem, please show the > exact error messages, with everything else that the test displays > (which you should have done in the first place, of course). Maybe later, after I've rebooted. > FWIW, I've just tried renaming the Hunspell executable, and the test > suite correctly skipped the relevant ispell tests. So if Hunspell is > not installed, I don't expect any error messages. OK, thanks. -- Alan Mackenzie (Nuremberg, Germany).