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})?$" #1826

Closed
ravish-tech opened this issue Dec 16, 2019 · 2 comments
Labels
🐤 blocked/need info Need more details about this issue or pull request

Comments

@ravish-tech
Copy link

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:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\node_modules\conf\index.js:154:10)
    at ElectronStore.set store [as store] (C:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\node_modules\conf\index.js:448:8)
    at ElectronStore.set (C:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\node_modules\conf\index.js:327:14)
    at yn.setItem (C:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\dist\electron\main.js:2:328216)
    at C:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\dist\electron\main.js:2:328303
    at Array.map (<anonymous>)
    at yn.setItems (C:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\dist\electron\main.js:2:328290)
    at IpcMain.<anonymous> (C:\Users\rkumar323\AppData\Local\Programs\Mark Text\resources\app.asar\dist\electron\main.js:2:328745)
    at IpcMain.emit (events.js:203:13)
    at WebContents.<anonymous> (electron/js2c/browser_init.js:3768:15)

Version

Mark Text: v0.16.0-rc.2
Operating system: Windows_NT x64 10.0.18362 (win32)

@fxha
Copy link
Contributor

fxha commented Dec 19, 2019

Thanks for reporting the issue. Could you please open the application data directory and post the line containing "spellcheckerLanguage" in preferences.json. It should be something like "spellcheckerLanguage": "de-DE", and you could set the value "de-DE" to "en-US" to workaround the validation.

@fxha fxha added the 🐤 blocked/need info Need more details about this issue or pull request label Dec 19, 2019
@ravish-tech
Copy link
Author

It is set as below. but I should mention after above error, I just installed the "v0.16.0-rc.2" version and have been happy about it.
"spellcheckerLanguage": "en-US",
Happy for this to be closed. As you description above should help someone if they do get this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐤 blocked/need info Need more details about this issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants