19

我现在用的是Sublime Text 3,今天开始出现这个“插件宿主意外退出”的东西,重启ST几次后,我决定卸载它。现在我重新安装了它,但我什至无法安装包控制,因为“插件主机已意外退出”继续出现。

在控制台中我发现:

import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) 
error: plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted

我正在使用优胜美地,有人可以告诉我如何解决这个问题吗?

4

3 回答 3

5

I believe you have a permissions issue (usually due to copying the app around).

This other StackOverflow question has the solution you're looking for.

In terminal navigate to /path/to/your/Sublime Text.app/Contents/MacOS then change the permissions from whatever they are to 755.
chmod 755 plugin_host
Do the same for the Sublime Text executable as well.
chmod 755 Sublime\ Text

于 2016-02-13T08:27:33.640 回答
2

您的任何插件都可能存在问题,您必须逐个删除每个插件以找出导致问题的插件

我遇到了同样的问题,就我而言,ANACONDA 插件导致了错误。

于 2016-08-09T11:18:29.180 回答
0

您必须具有 css 扩展完成。这就是我的问题的情况。转到首选项>包设置并禁用它。

于 2016-09-06T06:28:32.590 回答