-
Notifications
You must be signed in to change notification settings - Fork 83
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
Replace dependency on deprecated electron-remote package #152
Comments
disclaimer: I am author of listed modules below. To resolve issues listed around, I have wrote https://github.com/kwonoj/cld3-asm / https://github.com/kwonoj/electron-hunspell (and https://github.com/kwonoj/hunspell-dict-downloader as bonus module) This separated module resolves each feature of spellchecker, notably
for downloading dictionary, in the renderer process you really won't need main process - simple |
While OJ's modules are probably the better solution for people in the long-term, I strongly agree that we should
I think we could just use
That's the biggie and the one place where doing the work in another process actually made sense - the other two were basically just using that process because "Hey, we have another process already anyway". If you'd like to stick with cld2, Node integration will indeed be a must. I wonder if we could just plug in OJ's module though. @kwonoj This is possibly a silly question, but would replacing
Can totally be removed. |
Currently, electron-spellchecker uses electron-remote for some of its functionality. Though electron-remote is deprecated, this still worked. However, in Electron 5, node integration has been turned off by default (electron #4362), which is something that electron-remote implicitly relied on (#148).
I didn't realize this when I first submitted PR #149, so although that PR gets electron-spellchecker working in Electron 5 on MacOS, it still doesn't work on Windows and Linux, hence #151 😞.
I think there are two options for resolving this problem:
BrowserWindow
s it creates, and make electron-spellchecker use that. If this is the last thing needed to get electron-spellchecker working in Electron 5, then this is the fastest path to Electron 5 support.I created this issue to track option 2 above. From what I can tell, there are 3 places where electron-remote is used in electron-spellchecker. I've been doing some research into how to replace these instances with something else. Here's what I've found.
remote
API in electron-dl.) Alternatively, maybe it's better to implement this without using any other package.'context-menu'
events from a window (context-menu-listener.js). I don't quite understand the motivation for using it here. Why is this necessary, and can this usage be removed?What are people's thoughts on all this? I'm curious to learn more from the maintainers of this project. I'm working on a project that would like to use electron-spellchecker with Electron 5, so I've been trying to clear these hurdles. Thanks!
The text was updated successfully, but these errors were encountered: