-
Notifications
You must be signed in to change notification settings - Fork 34
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
"error: plugin_host has exited unexpectedly" #99
Comments
I've been trying to diagnose this - unfortunately it seems to have appeared with one of the more recent builds of Sublime Text. |
/cc @Varriount also, just curious, was that message sent by accident and then deleted on gitbhub? |
/cc @Varriount looks like I found a reproducible test case. It always crashes with "error: plugin_host has exited unexpectedly" when I open this file and press command+S to save it. Please let me know whether you can reproduce it on your end. #[
# plugin_host bug: https://github.com/Varriount/NimLime/issues/99
open this in sublime text
when use saves this file (eg on OSX: via command + S), the plugin_host will die
seems like a minimal-ish test case: variations of this file won't trigger that bug (eg removing =0, commenting a line, removing {.strdefine.} etc)
]#
const testCase {.strdefine.}: string=0
when false: discard
elif testCase == "test1": /cc @Varriount EDIT looks like the root cause is that that's progress! |
WORKAROUND:
obviously not a good workaround since it'd disable a lot of features of NimLine, but at least syntax highlighting for nim would still work |
@timotheecour thank you, a lifesaver |
closing since nim-lang/nimsuggest#83 seems fixed now |
re-opening because of a new case that causes the crash: nim-lang/Nim#9610 |
ok that bug was fixed; but to prevent future similar bugs, how about following:
|
/cc @Varriount I found a great workaround:
and I verified it fixes this issue on OSX so I'll close this |
I'm getting a lot of these "error: plugin_host has exited unexpectedly" when editing nim files ; probably nimsuggest failing and the plugin not properly handling errors
full error:
"error: plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted"
The text was updated successfully, but these errors were encountered: