Skip to content

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

Closed

Description

@Magwit

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)

Activity

  1. brainchild0 commented on Jul 15, 2020

    @brainchild0
    Contributor

    Would you please provide the steps that reproduce the error?

  2. Ayfri commented on Jul 16, 2020

    @Ayfri

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

  3. Magwit commented on Jul 17, 2020

    @Magwit
    Author

    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.

  4. brainchild0 commented on Jul 17, 2020

    @brainchild0
    Contributor

    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.

  5. added
    🐹 platform/windows
    🐛 bug
    on Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐹 platform/windows🐛 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions