-
Notifications
You must be signed in to change notification settings - Fork 37
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
Crashes extension host when parsing unescaped unicode characters, e.g 💩 #223
Comments
I done some more digging around trying to isolate the issue. Firstly some info: OS: Ubuntu 18.10; Normally I work with the insiders build but I installed stable to debug so I had a clean install. As it turns out, for small files the extension works as expected, however interesting things happen for larger files. In my quick tests openning a folder or workspace + a larger file results in a crash: Also, when opening the file directly (no folder/worspace) it results in every word being marked as incorrect: I suspect it would be for any document language type but I only tested For a sample document, please try this readme: https://raw.githubusercontent.com/WeAreGenki/minna-ui/master/README.md. Not sure what's going on but it feels like the extension is hitting some resource constraint and VS Code kills it. Please let me know if there's anything else I can provide to help debug. |
Thank you for investigation. The issue should be resolved in just published version 3.0.6. Please let me know if it works for you! |
Confirmed your fix has solved the issue. Thank you very much! So nice to have spell check ❤️ |
@bartosz-antosik - I have the same error, but for the flag emojis, for eg. 🇮🇳. For other emoji, it seems to work fine. |
That sounds like a different case. Instead of posting on a closed issue, please create a new one and provide a link back to old issues. |
When there are emoji unicode characters in the editor it causes the entire extension host to crash with the error:
To reproduce, simply insert an emoji character into an editor with spell check enabled, e.g.
💩💩💩
.I tried to use
spellright.ignoreRegExps
option with a emoji matching regex from https://github.com/mathiasbynens/emoji-regex/blob/master/es2015/text.js but there was an error of a malformed regex.The text was updated successfully, but these errors were encountered: