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

neovim-editor component freezes when a plugin has an uncaught error #117

Open
htzh opened this issue Jun 4, 2017 · 0 comments
Open

neovim-editor component freezes when a plugin has an uncaught error #117

htzh opened this issue Jun 4, 2017 · 0 comments

Comments

@htzh
Copy link

htzh commented Jun 4, 2017

I am writing a plugin that uses Katex to preview math formulas. What I found is that when Katex throws a uncaught error the editor also freezes. This was solved by catching what Katex threw. However it is unsettling that the editor would freeze from a plugin error.

Expected Behavior

When a plugin has an exception, the plugin may stop working. However the editor should be able to continue to allow the user to save the work and restart, if necessary.

Actual Behavior

The editor component also stops working when a plugin throws.

Steps to Reproduce (including precondition)

Throw a uncaught exception in a plugin function. Use rpcnotify to trigger the said function.

Screenshot on This Problem (if possible)

Your Environment

  • OS: Windows 10
  • NyaoVim version: 0.0.22
  • nvim version: 0.2.1-25
  • Keyboard layout: US En
  • Linux: Window manager: {Please write here}

Additional Comments (if any)

The UI is not frozen. Chrome debugger works fine. That is how I found out it was an uncaught exception. It is possible that the reload through the UI menu could have worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant