php-speller icon indicating copy to clipboard operation
php-speller copied to clipboard

Failed to execute "hunspell -D": 'hunspell' is not recognized as an internal or external command, operable program or batch file.

Open try-no-cry opened this issue 5 years ago • 1 comments

When I execute the following code in Laravel 5.8 ,the error is shown as in Hunspell.php

` $source = new StringSource('Tiger, tigr, burning bright'); $speller = new Hunspell(); $issues = $speller->checkText($source, ['en_GB', 'en']);

echo $issues[0]->word; // -> "tigr" echo $issues[0]->line; // -> 1 echo $issues[0]->offset; // -> 7 echo implode(',', $issues[0]->suggestions); `

Failed to execute "hunspell -D": 'hunspell' is not recognized as an internal or external command, operable program or batch file.

I checked over the internet but all went vain. Yes I have put name space. I try debugging, and i came to know that process isSuccessful is returning false. Please suggest me something, how can i solve this issue?

try-no-cry avatar Jun 28 '19 09:06 try-no-cry

Hi @try-no-cry. Can you refer to #8 for this. This seems like the exact same problem.

Hope this workaround solves your problem for now until there is a fix implemented in the lib itself.

icanhazstring avatar Jun 29 '19 17:06 icanhazstring

Closing issue. If you couldn't solve the problem. You can reopen the issue.

icanhazstring avatar Apr 14 '23 06:04 icanhazstring