From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32471: 26.1; ispell throwing wrong-type-argument stringp nil on Windows 10, with emacs 26.1 and hunspell Date: Sat, 18 Aug 2018 21:35:11 +0300 Message-ID: <83efevfrq8.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1534617247 9986 195.159.176.226 (18 Aug 2018 18:34:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Aug 2018 18:34:07 +0000 (UTC) Cc: 32471@debbugs.gnu.org To: Didier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 18 20:34:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fr630-0002Vc-C6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Aug 2018 20:34:02 +0200 Original-Received: from localhost ([::1]:40059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr656-0005YQ-Rl for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Aug 2018 14:36:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr651-0005YL-2x for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fr64w-0008Go-5i for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:36:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fr64w-0008Gi-2v for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fr64v-0005g3-Rb for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Aug 2018 18:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32471-submit@debbugs.gnu.org id=B32471.153461733321713 (code B ref 32471); Sat, 18 Aug 2018 18:36:01 +0000 Original-Received: (at 32471) by debbugs.gnu.org; 18 Aug 2018 18:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:54228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fr64S-0005e9-S7 for submit@debbugs.gnu.org; Sat, 18 Aug 2018 14:35:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fr64R-0005df-25 for 32471@debbugs.gnu.org; Sat, 18 Aug 2018 14:35:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fr64G-0007yZ-TA for 32471@debbugs.gnu.org; Sat, 18 Aug 2018 14:35:25 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr64G-0007yB-3w; Sat, 18 Aug 2018 14:35:20 -0400 Original-Received: from [176.228.60.248] (port=2663 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fr64E-0001Cu-Ua; Sat, 18 Aug 2018 14:35:19 -0400 In-reply-to: (message from Didier on Sat, 18 Aug 2018 00:11:17 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149571 Archived-At: > From: Didier > Date: Sat, 18 Aug 2018 00:11:17 -0700 > > I'm trying to get ispell working on Windows 10, with Emacs 26.1. Aspell > 0.60 is now required, and there are no Windows 10 release for it yet. I > thus switched to hunspell. But, it seems ispell is not able to find the > dictionaries for hunspell, and throws an error: > > (wrong-type-argument stringp nil) > > This is caused by spell-parse-hunspell-affix-file(nil) getting a nil > dict input which in turn is caused by > ispell-hunspell-fill-dictionary-entry not properly parsing my hunspell > dicts. No, it's because your Hunspell dictionaries seem to be misconfigured. > To help with the issue, here's the result of the call to hunspell to get > the dict path: > > ("JKLRCH PATH:" > ".;;C:\\Hunspell\\;C:\\Users\\didibus\\.openoffice.org\\3\\user\\wordbook;c:\\Users\\didibus\\hunspell\\bin\\..\\share\\hunspell;C:\\Program > files\\OpenOffice.org 2.4\\share\\dict\\ooo\\;C:\\Program files\\OpenOffice.org > 2.3\\share\\dict\\ooo\\;C:\\Program files\\OpenOffice.org 2.2\\share\\dict\\ooo\\;C:\\Program > files\\OpenOffice.org 2.1\\share\\dict\\ooo\\;C:\\Program files\\OpenOffice.org 2.0\\share\\dict\\ooo\\" > "AVAILABLE DICTIONARIES (path is not mandatory for -d option):" > "c:\\Users\\didibus\\hunspell\\bin\\..\\share\\hunspell\\default" > "c:\\Users\\didibus\\hunspell\\bin\\..\\share\\hunspell\\en_GB" > "c:\\Users\\didibus\\hunspell\\bin\\..\\share\\hunspell\\en_US" "Can't open affix or dictionary files for dictionary > named \"ENU\".") This list doesn't include a single .aff file, and Emacs needs that to initialize the dictionaries properly. What does Hunspell display if you invoke it from the shell prompt with the -D switch? And where did you download this port of Hunspell from?