在Sublime Text 3上获取subprocess32错误

时间:2014-09-27 17:59:09

标签: sublimetext3

即使我只是点击文档中的空格,我也会收到以下错误: plugin_host意外退出,插件功能在Sublime Text重新启动之前无法使用

log shows the following:
DPI scale: 1
startup, version: 3065 windows x32 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Users/Асель/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/Асель/AppData/Roaming/Sublime Text 3/Local
hardware concurrency: 4
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Users/Асель/AppData/Roaming/Sublime Text 3/Installed Packages
found 13 files for base name Default.sublime-keymap
found 2 files for base name Default.sublime-mousemap
found 11 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Soda Light 3.sublime-theme
theme loaded
app ready
startup cache, total files: 353 cache hits: 353
pre session restore time: 0.349854
startup time: 0.409854
first paint time: 0.429854
launching: /C/Program Files/Sublime Text 3/plugin_host.exe
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
loaded 1000 snippets
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin AdvancedNewFile.AdvancedNewFile
reloading plugin BracketHighlighter.bh_core
reloading plugin BracketHighlighter.bh_logging
reloading plugin BracketHighlighter.bh_plugin
reloading plugin BracketHighlighter.bh_regions
reloading plugin BracketHighlighter.bh_remove
reloading plugin BracketHighlighter.bh_rules
reloading plugin BracketHighlighter.bh_search
reloading plugin BracketHighlighter.bh_swapping
reloading plugin BracketHighlighter.bh_wrapping
reloading plugin BracketHighlighter.ure
reloading plugin Color Highlighter.ColorHighlighter
reloading plugin Color Highlighter.colors
reloading plugin Emmet.emmet-plugin
reloading plugin EncodingHelper.EncodingHelper
reloading plugin Git.add
reloading plugin Git.annotate
reloading plugin Git.commit
reloading plugin Git.diff
reloading plugin Git.flow
reloading plugin Git.git
reloading plugin Git.history
reloading plugin Git.repo
reloading plugin Git.stash
reloading plugin Git.status
reloading plugin Git.statusbar
reloading plugin HyperlinkHelper.link_to_wikipedia_page_for_selection
reloading plugin HyperlinkHelper.lookup_with_google_and_link
reloading plugin HyperlinkHelper.wrap_selection_as_link
reloading plugin Nettuts+ Fetch.Fetch
reloading plugin Package Control.Package Control
reloading plugin ReadmePlease.ReadmePlease
reloading plugin SideBarEnhancements.Edit
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin SideBarEnhancements.StatusBarFileSize
reloading plugin SideBarEnhancements.StatusBarModifiedTime
reloading plugin HTML-CSS-JS Prettify.HTMLPrettify
reloading plugin SublimeCodeIntel.SublimeCodeIntel
plugins loaded
Emmet: No need to update PyV8
reloading Packages/User/Fetch.sublime-settings
Could not import subprocess32 module, falling back to subprocess module
error: plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted

有没有解决方法,我真的不知道如何解决这个问题。提前谢谢!

2 个答案:

答案 0 :(得分:3)

我注意到你已经安装了插件SublimeCodeIntel。

包的GitHub页面包含一个问题(#328),说明: That message is only a warning. Don't pay attention to it.

我可以想象有更多的包使用相同的subprocess32模块,但错误似乎与SublimeCodeIntel建议的问题完全相同。

由于此错误导致plugin_host崩溃,可能是因为此程序包发生错误,您可能尝试升级或禁用程序包(如果无法启动Sublime,则删除程序包文件)。

如果没有帮助,请尝试更新为the latest version of Sublime Text 3(内置3065或更高版本),这可能只包含修复程序(Fixed a crash in plugin_host)。

如果它不是SublimeCodeIntel,您可能希望逐个禁用(相当多的工作)每个已安装的软件包,看看是否能解决问题。我建议您备份当前设置,以便删除和/或禁用您喜欢的任何内容。或者,您可以创建一个包列表,然后从一个干净的安装开始,然后重新安装一个包。

答案 1 :(得分:0)

另一个没有禁用可用功能的解决方案是安装包控件 https://packagecontrol.io/installation

转到Package Upgrade,然后选择SublimeCodeIntel

然后重启SublimeText3。