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

Unexpected error: Config schema violation: spellcheckerLanguage should match pattern "^[a-z]{2}(?:[-][A-Z]{2})?$" #2280

Closed
Magwit opened this issue Jul 15, 2020 · 4 comments · Fixed by #2410
Labels
🐛 bug Something isn't working 🐹 platform/windows Pull request or issue on Windows
Projects

Comments

@Magwit
Copy link

Magwit commented Jul 15, 2020

Description

An unexpected error occurred in the main process.

Stack Trace

Error: Config schema violation: `spellcheckerLanguage` should match pattern "^[a-z]{2}(?:[-][A-Z]{2})?$"
    at ElectronStore._validate (C:\Program Files\Mark Text\resources\app.asar\node_modules\conf\index.js:154:10)
    at ElectronStore.set store [as store] (C:\Program Files\Mark Text\resources\app.asar\node_modules\conf\index.js:460:8)
    at ElectronStore.set (C:\Program Files\Mark Text\resources\app.asar\node_modules\conf\index.js:339:14)
    at Yt.setItem (C:\Program Files\Mark Text\resources\app.asar\dist\electron\main.js:2:293546)
    at C:\Program Files\Mark Text\resources\app.asar\dist\electron\main.js:2:293633
    at Array.map (<anonymous>)
    at Yt.setItems (C:\Program Files\Mark Text\resources\app.asar\dist\electron\main.js:2:293620)
    at IpcMainImpl.<anonymous> (C:\Program Files\Mark Text\resources\app.asar\dist\electron\main.js:2:294075)
    at IpcMainImpl.emit (events.js:210:5)
    at WebContents.<anonymous> (electron/js2c/browser_init.js:3908:15)

Version

Mark Text: v0.16.2
Operating system: Windows_NT x64 10.0.18362 (win32)

@brainchild0
Copy link
Contributor

Would you please provide the steps that reproduce the error?

@Ayfri
Copy link

Ayfri commented Jul 16, 2020

I have also this error when I activate the spell checker.

@Magwit
Copy link
Author

Magwit commented Jul 17, 2020

The error occured when I activated the spell checker for the very first time. and choosing 'en-029'. I was able to repoduce the error again by deactivating spellckeck and then activating it again with the choice en-029. (As a sidenote I notive there are all kinds of varieties of English except US English to choose from.) I a have now enabled en-GB and it works fine when I use Mark Text.

@brainchild0
Copy link
Contributor

brainchild0 commented Jul 17, 2020

Do you have access to the US dictionary in other applications? Can you check that your system has the dictionary installed?

@Jocs @fxha: It appears Microsoft has once again broken compatibility with standards, though this time claiming to do the opposite, by allowing 029 to occur in the country field, representing the (multinational) Caribbean region. So the regular expression breaks for anyone trying to use the Caribbean dictionary in Windows.

@fxha fxha added 🐹 platform/windows Pull request or issue on Windows 🐛 bug Something isn't working labels Nov 13, 2020
@fxha fxha added this to To do in 0.16.3 Nov 13, 2020
@fxha fxha moved this from To do to Review in 0.16.3 Nov 28, 2020
@fxha fxha moved this from Review to Done in 0.16.3 Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🐹 platform/windows Pull request or issue on Windows
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants