Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process with command "aspell --encoding utf-8 -a --lang=en_US" has failed running with exit code 1 on Windows #45

Open
AmilaPriyankara opened this issue Jul 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@AmilaPriyankara
Copy link

when I create execute of aspell its throw an exception

$spell = Aspell::create();
$response = $spell->check('mispell', ['en_US']);
logger(print_r($response, true));

image

image

image

image

image

PHP 8:
Window 10
Laravel 9
xampp

@tigitz
Copy link
Owner

tigitz commented Jul 2, 2022

Hello @AmilaPriyankara, thanks for you report.

I haven't tested the lib on windows to be honest, so I'll try to blindly debug it with you.

In tinker, instead of
image
Could you try var_dump(iterator_to_array($response)))

Also when testing the command line directly, could you try echo 'mispell' | aspell --encoding=utf-8 -a --lang=en_US as it's what is actually executed in the background.

Let me know the output for both please.

@tigitz
Copy link
Owner

tigitz commented Jul 2, 2022

Digging a little further, according to https://superuser.com/questions/1496150/configuring-aspell-to-support-utf-8-encoded-texts it seems like --encoding is only supported in aspell 0.60 which is not available on windows (your version is 0.50 which seems to be concording).

I'm unsure on how to circumvent the problem to support aspell usage for windows users right now. If you tried anything on your hand, let me know.

@tigitz tigitz added the bug Something isn't working label Jul 2, 2022
@tigitz tigitz self-assigned this Jul 2, 2022
@tigitz tigitz changed the title Process with command "aspell --encoding utf-8 -a --lang=en_US" has failed running with exit code 1 Process with command "aspell --encoding utf-8 -a --lang=en_US" has failed running with exit code 1 in Windows Jul 2, 2022
@tigitz tigitz changed the title Process with command "aspell --encoding utf-8 -a --lang=en_US" has failed running with exit code 1 in Windows Process with command "aspell --encoding utf-8 -a --lang=en_US" has failed running with exit code 1 on Windows Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants