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

spellCheckHandler.attachToInput breaks on electron 5.0.0 #144

Closed
robsonhermes opened this issue Apr 30, 2019 · 12 comments · Fixed by #149
Closed

spellCheckHandler.attachToInput breaks on electron 5.0.0 #144

robsonhermes opened this issue Apr 30, 2019 · 12 comments · Fixed by #149

Comments

@robsonhermes
Copy link

Hello

Starting from Electron 5.0.0, the method spellCheckHandler.attachToInput breaks with:

image

I guess this happens cause parameters of method webFrame.setSpellCheckProvider changed in version 5.0.0 -> link.

@smithalan92
Copy link

This is still an issue in 2.0.4

Looks like its a bigger issue than the setSpellCheckProvider signature changing though.

Correcting the passed params here and here , solves the processing error, but introduces a new error

image

@mlalkaka
Copy link
Contributor

I'm working on fixing this. Will have a fork + PR up soon.

mlalkaka added a commit to mlalkaka/electron-spellchecker that referenced this issue Jun 11, 2019
Starting with Electron 5.0.0, the function `webFrame.setSpellCheckProvider` has a different signature, in order to support asynchronous spell checkers. For more information on this change in Electron, see electron/electron#14032.

This diff updates `SpellCheckHandler` to use the new interface if running on Electron 5.0.0 and above. However, it still checks the spelling synchronously like before.

If running on Electron versions below 5.0.0, the `SpellCheckHandler` still works.

Closes electron-userland#144.
mlalkaka added a commit to mlalkaka/electron-spellchecker that referenced this issue Jun 11, 2019
Starting with Electron 5.0.0, the function `webFrame.setSpellCheckProvider` has a different signature, in order to support asynchronous spell checkers. For more information on this change in Electron, see electron/electron#14032.

This diff updates `SpellCheckHandler` to use the new interface if running on Electron 5.0.0 and above. However, it still checks the spelling synchronously like before.

If running on Electron versions below 5.0.0, the `SpellCheckHandler` still works.

Closes electron-userland#144.
@mlalkaka
Copy link
Contributor

@robsonhermes and @smithalan92, I've created a branch and PR to fix this. If you're still interested, could you try the change in your environments and/or provide feedback? The branch is mlalkaka/electron-spellchecker.

@robsonhermes
Copy link
Author

@mlalkaka will try that in my first open slot and update you here. Many thanks!

@smithalan92
Copy link

smithalan92 commented Jun 11, 2019

Thats great @mlalkaka , I gave that a test using Electron v5 and it works nicely 👌 Hopefully @felixrieseberg will have some time to approve the PR and deploy a new version

@robsonhermes
Copy link
Author

Hm, I had the problem below.

Source code of my test is robsonhermes/electron-spellchecker-test

Just mind package.json, I used "electron-spellchecker": "0.0.1", cause this is how I built/published it locally. Did I miss anything? Not sure if this is somehow related to issue 148.

error

@felixrieseberg
Copy link
Collaborator

Fixed and released as 2.1.0 🙇

@robsonhermes
Copy link
Author

robsonhermes commented Jun 13, 2019

Still not working for me.

Could anyone please tell me if you had the same problem?

https://github.com/robsonhermes/electron-spellchecker-test

npm install && .\node_modules\.bin\electron-rebuild.cmd
npm start

results in the error I posted in my last msg.

@smithalan92
Copy link

Your example works fine for me @robsonhermes ( I'm on MacOS though )

@robsonhermes
Copy link
Author

Just tried on Linux (Ubuntu). fails with the same error. But I guess it´s not related to this fix.
Will open a separate issue.

Thanks for trying it out, @smithalan92

@mlalkaka
Copy link
Contributor

mlalkaka commented Jun 13, 2019 via email

@robsonhermes
Copy link
Author

No problem @mlalkaka , I am the one to thank you for your efforts on fixing compatibility with Electron 5.

I believe this is a separate problem, thus decided to raise another issue to keep the discussion separated. Please see 151.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants