-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
code spelling checker causes install crash #364
Comments
Thank you for reporting this. I can reproduce this issue and we will work on fixing it soon. |
Ok . I was going to work on it and then realised that it of course needs a spelling repository of data to work against. Each OS offers one but then I was thinking that a custom service that is OS agnostic might be better. I use pocketbase with cogent and was thinking about a simple sql system. what do you think though ? |
@gedw99 We have our own spelling data embedded into the app (see https://github.com/cogentcore/core/blob/6fac9e04d921b414dbb2a25f8e5f3259e3c5fa1b/spell/dict_en_us), so that isn't the issue; there is just some initialization timing issue with the spelling object. You are of course free to work on a fix, or we will do it once we have the time. |
Thanks @kkoreilly Good now the architecture approach. I will try to work on a fix and let you know here if I start work on it so we don’t double up . Eventually this will need to be to be decoupled in some way as it’s not sustainable to just add languages to an embedded file ? |
Yes, we will use a new approach in time for internationalization, likely involving an HTTP call to some collection of spelling dictionaries that can then be cached to the filesystem. The spelling dictionaries have a small enough file size now for that work. See also cogentcore/core#711 and cogentcore/core#698 for some older discussion of the spelling and internationalization approach. However, those spelling improvements are not directly related to this crash and can be done separately. |
Makes sense now . Thanks @kkoreilly |
Describe the bug
Both Mac and web fail
just compile cogent code and then run it.
when you click "spell" in the top menu, it crashes.
How to reproduce
Both Mac and web fail
just compile cogent code and then run it.
when you click "spell" in the top menu, it crashes.
Example code
No response
Relevant output
The text was updated successfully, but these errors were encountered: