-
Notifications
You must be signed in to change notification settings - Fork 272
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
Spellcheck on Windows: The Enchant library couldn't be initialized (unknown error(maybe the chosen language is not available)) #939
Comments
We cannot support instructions from other people without knowing why they suggest this.
Hard to say what is causing this but it might all be related to the old Enchant version you have installed. Did you read the instructions on https://plugins.geany.org/spellcheck.html#configuring-custom-dictionaries? |
The steps where listed basically chronologically. I first attempted to follow the instructions posted at https://plugins.geany.org/spellcheck.html#configuring-custom-dictionaries resulting in the "Directory to look for..." being set, as described, to The Enchant version in use currently is: Without the enchant_1.5.0-2_win32.zip it shows up as... The same error persists with a fresh install all around. The full load log:
|
The aspell and voikko providers are not relevant (as far as I know they don't work with custom dictionary directories at all on Windows). In the plugin settings, you need to configure the path as |
This appears as some odd path issue: Indeed the .dll is present, yet the loader apparently can't load it via such a mixed path. Not sure whether it's a build or a configuration issue. Same warning is being reported from GeanyVC plugin (at commit dialog, which uses GTKspell for commit message check). See the issue #1056 |
The aspell und voikko error messages are unrelated to the problem here and they appear always even if the SpellCheck plugin correctly. This is rather a MSYS2 build issue or because we don't install the aspell and voikko libraries. Anyway, both are not required on Windows and they don't support custom dictionary directories. @shawarden if the problem still exists for you and you got more information, just re-open. |
Trying to set up Geany on my home computer and the Spellcheck plugin is refusing to work.
It comes up with "The Enchant library couldn't be initialized (unknown error(maybe the chosen language is not available))."
When I go into the plugin's preferences the "Language to us" field is empty and I can't change it.
I have tried setting the "Directory to look for" path to blank, C:\dictionaries\hunspell, C:\Program Files\LibreOffice\share\extensions\dict-en, C:\Program Files (x86)\Geany\hunspell and C:\Program Files (x86)\Geany\hunspell\dict-en and nothing works.
The Spellcheck menu option remains greyed out and the Enchant library error appears when toggling the plugin or applying the settings.
I have installed enchant_1.5.0-2_win32.zip over the Geany package as suggested on the portable version's site and the only change is that the menu entry is no longer greyed out and there is a "Default (en)" option listed there.
The plugin still doesn't work and interacting with the plugin via the Plugin Manager or plugin Preferences brings up the same error.
Also, if you click away from this error, you can't alt-tab back to the message box, effectively killing Geany since you can't close the window or interact with it in any way. Though that may be a GTK/Windows issue.
The text was updated successfully, but these errors were encountered: