包控制停止工作

时间:2017-09-24 19:00:11

标签: macos sublimetext3 sublimetext package-control

Package Control在OS X(MacOS)的Sublime Text 3上运行良好多年。但是,现在当我尝试从Command Palette启动Package Control时,它的所有命令都会丢失。

我尝试使用https://packagecontrol.io/installation上ST3的安装代码再次安装Package Control。重新启动Sublime Text,但这没有帮助。

已下载Package Control.sublime-package并将其放入/Users/user/Library/Application\ Support/Sublime\ Text\ 3/Packages 并重新启动Sublime Text,但问题仍然存在。

Sublime Text > Preference > Setting - User下,套餐控件未列在"ignored_packages"下。

遇到同样问题的人?

启动时出错

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 678, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "2_bootstrap in /Users/user/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 26, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 678, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "package_control.bootstrap in /Users/user/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 23, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 678, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "package_control.loader in /Users/user/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 57, in <module>
  File "./posixpath.py", line 83, in join
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
reloading plugin Package Control.Package Control
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 678, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "Package Control in /Users/user/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 14, in <module>
  File "./posixpath.py", line 83, in join
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
plugins loaded

1 个答案:

答案 0 :(得分:1)

linux Mint 上安装(新)之后,我遇到了完全相同的类型错误问题。使用apt-get安装了3103版本。 Sublime建议在启动时安装更新的版本。在阅读了大量说明并重新安装后,我决定使用最新版本(不适用于apt-get)。

通过安装版本3143和Sergey these instructions进行一些修改,我得到了Package控件的工作。我没有挖掘出真正的根本原因,但这解决了同样的问题。

apt-get remove 现有安装后,我得到了最新的软件:

# wget http://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2

解压缩到 / opt / sublime_text_3 并创建了一个文本文件。

# nano /usr/bin/subl

含:

#!/bin/sh
exec /opt/sublime_text_3/sublime_text "$@"

使其可执行。

# chmod 777 /usr/bin/subl

通过执行以下命令从命令行运行: subl 启动新安装的版本。