-
Notifications
You must be signed in to change notification settings - Fork 692
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
electron-update fix spellcheck #266
electron-update fix spellcheck #266
Conversation
Spellchecking was working on Windows and Linux but not on Mac OS X. For some reason, in my tests, Mac OS X just wasn't loading the spellchecker module, adding an explicit dependency fixed it.
The code for spellchecking looks for en_US instead of en-US. Since checker.getAvailableDictionaries() was returning en-US and not getting normalized, no default language was being selected on Windows. Now that it's normalized, a default language is automatically selected.
Thanks for the pull request, have you tested this on Linux any? |
I have not. It was mentioned in #242 that spell check was working in Ubuntu 16.04 when re-enabled. I'll go ahead and see if I can't spin up RHEL and Debian setups sometime today to test on and get back to you. |
@graywolf336 I did testing on Ubuntu 16.04.1 LTS tonight, spellchecking is working. I'll likely test on a RPM-based distro tomorrow @engelgabriel That definitely is an interesting and informative write up. I'm glad to see Slack contributing to the Electron community, it looks like there might be one or two things that could be brought into Rocket.Chat.Electron someday. |
@ZedTheYeti I'm getting a black screen when running your branch. Any ideias? Running with |
@rodrigok Hmm I've been testing on Node.js 6.9.2. What OS? |
Tested Fedora 25, spellcheck is working. |
@rodrigok which platform did you get blackscreen on? on OSX I haven't seen the issue so far running on @ZedTheYeti 's branch. |
I tested this in several ways:
All five scenarios worked eventually, and they all have working spellcheck! Finally! Thanks @ZedTheYeti |
@xenithorb that's great news! 😁 |
@ZedTheYeti I'm using MacOS |
@rodrigok how long did it take before the black screen came? In my test I made sure to purge both sets of node_modules. Then fresh npm install. (Mainly because of that spell checker package that seems to be culprit for black screen). I ran it for 2-3 hours with no issues |
@geekgonecrazy I took 0 seconds to show the black screen :( |
@RocketChat/core
Tested on so far: