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: Invalid state: all arguments must be non-null. #3074

Closed
seorimpaek opened this issue Feb 26, 2022 · 2 comments · Fixed by #3032 or #3077
Closed

Unexpected error: Invalid state: all arguments must be non-null. #3074

seorimpaek opened this issue Feb 26, 2022 · 2 comments · Fixed by #3032 or #3077
Labels
🔭 area/editor 🪲 pri/major Bugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT 🐛 bug Something isn't working

Comments

@seorimpaek
Copy link

Description

An unexpected error occurred in the main process.
This error occurred after changing the keyboard bindings, specifically changing the ctrl+1,2,3,4,5,6 to set heading levels.
After saving the settings changed, I immediately closed the window.
simply reinstalling (without uninstalling first) did not fix the issue and it remains unresolved. (haven't tried anything else yet)
Thank you.

Stack Trace

Error: Invalid state: all arguments must be non-null.
    at Object.register (C:\Program Files\Mark Text\MarkText\resources\app.asar\node_modules\@hfelix\electron-localshortcut\src\electron-localshortcut.js:167:11)
    at Object.registerKeyHandlers (C:\Program Files\Mark Text\MarkText\resources\app.asar\dist\electron\main.js:2:288839)
    at Object.addEditorMenu (C:\Program Files\Mark Text\MarkText\resources\app.asar\dist\electron\main.js:2:295113)
    at Xt.createWindow (C:\Program Files\Mark Text\MarkText\resources\app.asar\dist\electron\main.js:2:254198)
    at Object._createEditorWindow (C:\Program Files\Mark Text\MarkText\resources\app.asar\dist\electron\main.js:2:302982)
    at App.<anonymous> (C:\Program Files\Mark Text\MarkText\resources\app.asar\dist\electron\main.js:2:300927)
    at App.emit (node:events:394:28)

Version

MarkText: v0.17.0
Operating system: Windows_NT x64 10.0.22000 (win32)

@fxha
Copy link
Contributor

fxha commented Feb 26, 2022

You can delete the keybindings.json file in the application data directory as a quick workaround.

@fxha fxha added 🪲 pri/major Bugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT 🐛 bug Something isn't working 🔭 area/editor labels Feb 26, 2022
@seorimpaek
Copy link
Author

thank's! Appreciate all the awesome work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔭 area/editor 🪲 pri/major Bugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT 🐛 bug Something isn't working
Projects
None yet
2 participants