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

Fix the error: plugin_host has exited unexpectedly in 3187 and 3188 #59

Open
YaKazama opened this issue Jan 23, 2019 · 0 comments
Open

Comments

@YaKazama
Copy link

error info:

error: plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted

find the file: style_parser.py, modify the contents of class class CssExtendedCompletionsFileCommand as:

class CssExtendedCompletionsFileCommand(sublime_plugin.TextCommand):

    def run(self, edit, content):
        # add space between any )} chars
        # ST3 throws an error in some LESS files that do this
        content = re.sub(r'\)\}', r') }', content)
        content = re.sub(r'\}', '}\n', content)
        content = re.sub(r'\*/', '*/\n', content)
        panel = get_output_panel()
        # panel.erase(edit, sublime.Region(0, panel.size()))
        panel.run_command("select_all")
        panel.run_command("right_delete")
        panel.insert(edit, 0, content)
        # call size to force ST to acknowledge new content
        # sometimes it seems to fail on knowing new content is there
        panel.size()
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