You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Built-in spellchecker on mac, params.dictionarySuggestions always empty array #24455
FWIW; Tried all the versions from 9.1.0 to 8.0.0 and I could never* get any suggestions.
* Actually, the first time I tried 8.0.0 I did get suggestions. Then tried a more recent version and since then 8.0.0 has stopped giving me suggestions as well. 🤷
I also noticed that ses.getSpellCheckerLanguages returns ['ru'] even though I haven’t set Russian in my system languages. It returns ['en-US'] if I set it although it’s advertised as being no-op on macOS. Suggestions always empty regardless of this.
On my end changing Spelling from Automatic to a language did work (after restarting electron). And now even when setting Spelling back to Automatic I do get suggestions. I also made sure I would still get suggestions after rebooting, I do. I also tried to re-install the native dependency (atom/node-spellchecker), electron-rebuild and go back to the new built-in spellchecker (without native dependencies), I still get suggestions.
Looks like suggestions always work now. I’m just not 100% sure I can trust that it will be the case for all our users on macOS. Having to ask them to go through the changing Spelling setting steps would be a bit of a blocker.
It seems that it's also working for me now. But it didn't work after restarting electron, then I rebooted my laptop and it does work. Also If it can help, chrome browser also did not show any spellcheck suggestions before and now it does. Unfortunately can't reproduce it back to not working.
I can reproduce this reliably in Electron 9.3.0 on macOS Catalina in my application
When Spelling = "Automatic by language"
When Spelling = "U.S. English" + restarting the app
If I change the setting back to automatic (and restart the app), the same issue will happen
Google Chrome spell checking was fine in both cases
From my testing, it seems that Electron spell checking on macOS will be very inconsistent unless the language to be spell checked is explicitly defined in system preferences
Of course, most users will have the default preference "automatic", so this is a big problem for us. Can anyone please suggest a workaround?
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
EtienneLem commentedon Jul 10, 2020
FWIW; Tried all the versions from 9.1.0 to 8.0.0 and I could never* get any suggestions.
* Actually, the first time I tried 8.0.0 I did get suggestions. Then tried a more recent version and since then 8.0.0 has stopped giving me suggestions as well. 🤷
I also noticed that
ses.getSpellCheckerLanguagesreturns['ru']even though I haven’t set Russian in my system languages. It returns['en-US']if I set it although it’s advertised as being no-op on macOS. Suggestions always empty regardless of this.Just in case this could give some pointers.
MarshallOfSound commentedon Aug 12, 2020
What is your spelling language set to in system preferences?
eugene-pr commentedon Aug 13, 2020
This is my spelling language set
MarshallOfSound commentedon Aug 13, 2020
@eugene-pr If you change "Spelling" from "Automatic by Language" to your preferred language can you see if the spellchecker works?
eugene-pr commentedon Aug 16, 2020
@MarshallOfSound , same behavior.
EtienneLem commentedon Aug 26, 2020
On my end changing Spelling from Automatic to a language did work (after restarting electron). And now even when setting Spelling back to Automatic I do get suggestions. I also made sure I would still get suggestions after rebooting, I do. I also tried to re-install the native dependency (
atom/node-spellchecker),electron-rebuildand go back to the new built-in spellchecker (without native dependencies), I still get suggestions.Looks like suggestions always work now. I’m just not 100% sure I can trust that it will be the case for all our users on macOS. Having to ask them to go through the changing Spelling setting steps would be a bit of a blocker.
eugene-pr commentedon Aug 26, 2020
It seems that it's also working for me now. But it didn't work after restarting electron, then I rebooted my laptop and it does work. Also If it can help, chrome browser also did not show any spellcheck suggestions before and now it does. Unfortunately can't reproduce it back to not working.
EtienneLem commentedon Aug 26, 2020
Interesting. Now that you mention it, I remember not having suggestions on Chrome and now I do.
aabuhijleh commentedon Nov 4, 2020
I can reproduce this reliably in Electron 9.3.0 on macOS Catalina in my application
If I change the setting back to automatic (and restart the app), the same issue will happen
Google Chrome spell checking was fine in both cases
From my testing, it seems that Electron spell checking on macOS will be very inconsistent unless the language to be spell checked is explicitly defined in system preferences
Of course, most users will have the default preference "automatic", so this is a big problem for us. Can anyone please suggest a workaround?
aabuhijleh commentedon Dec 6, 2020
Any updates on this issue?
benjaminfrombe commentedon Jan 14, 2021
+1
still having to change languages manually everytime I change language ...
github-actions commentedon Oct 7, 2022
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
github-actions commentedon Nov 7, 2022
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.