AtomLinter / linter-spell

Multilingual grammar-specific spell checking for Atom and linter using Ispell compatible interface such as GNU Aspell or Hunspell.
https://atom.io/packages/linter-spell
MIT License
14 stars 1 forks source link

Call to hunspell failed with a code of 127. #62

Open SeveNOlogy7 opened 6 years ago

SeveNOlogy7 commented 6 years ago

The error: Call to hunspell failed with a code of 127. shows immediately after I enabled the plugin.

I have compiled hunspell using Cygwin on Windows 10 and tried to make sure the hunspell.exe running properly in CMD. At least some features of hunspell are working. For example:

hunspell.exe -D SEARCH PATH: .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling..\share\hunspell:..\share\myspell:..\share\myspell\dicts::/home/Loren/.openoffice.org/3/user/wordbook:/home/Loren/.openoffice.org2/user/wordbook:/home/Loren/.openoffice.org2.0/user/wordbook:/home/Loren/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo AVAILABLE DICTIONARIES (path is not mandatory for -d option): ..\share\myspell/default ..\share\myspell/en_AG ..\share\myspell/en_AU-large ..\share\myspell/en_AU ..\share\myspell/en_BS ..\share\myspell/en_BW ..\share\myspell/en_BZ ..\share\myspell/en_CA-large ..\share\myspell/en_CA ..\share\myspell/en_DK ..\share\myspell/en_GB-ise ..\share\myspell/en_GB-ize ..\share\myspell/en_GB-large ..\share\myspell/en_GB ..\share\myspell/en_GH ..\share\myspell/en_HK ..\share\myspell/en_IE ..\share\myspell/en_IN ..\share\myspell/en_JM ..\share\myspell/en_MW ..\share\myspell/en_NA ..\share\myspell/en_NG ..\share\myspell/en_NZ ..\share\myspell/en_PH ..\share\myspell/en_SG ..\share\myspell/en_TT ..\share\myspell/en_US-large ..\share\myspell/en_US ..\share\myspell/en_ZA ..\share\myspell/en_ZM ..\share\myspell/en_ZW LOADED DICTIONARY: ..\share\myspell/default.aff ..\share\myspell/default.dic Hunspell 1.6.2

and

hunspell.exe -d en_GB Hunspell 1.6.2

To reach these I only changed some dictionary path strings in hunspell's source codes to Window style, as seen in the SEARCH PATH output.

I set the full path of hunspell.exe manually in linter-spell's preferences with a default language of en_GB, then the error arose.

Windows 10 (16299.64) Atom 1.22.1 x64 linter-spell 0.15.0

SeveNOlogy7 commented 6 years ago

Managed to progress a little and now the error is "Call to hunspell failed with a code of 1."

Previously the hunspell could only run when I cd to the folder containing hunspell.exe while typing the full path of the exe didn't work in another dictionary. Because some dependency was missing.

Also tried using an older version of hunspell (1.3.2-3) , still "Call to hunspell failed with a code of 1."