Skip to content

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

Description

@YaKazama

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions