SublimeText2 CodeIntel Mac问题

时间:2012-08-19 19:43:34

标签: php python osx-lion sublimetext2

我安装了Package Browser并安装CodeIntel自动完成代码,但是当我尝试在控制台中索引代码时显示此错误。

Traceback (most recent call last):
  File "./sublime_plugin.py", line 356, in run_
  File "./SublimeCodeIntel.py", line 878, in run
  File "./SublimeCodeIntel.py", line 233, in guess_lang
  File "./SublimeCodeIntel.py", line 475, in codeintel_manager
  File "/Users/josedx20/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/manager.py", line 155, in upgrade
    self.db.upgrade()
  File "/Users/josedx20/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/database/database.py", line 516, in upgrade
    % curr_ver)
codeintel2.common.DatabaseError: cannot upgrade from db v2.0.24: no upgrader for this version

有什么想法吗?我是用户MacOSX Lion。

1 个答案:

答案 0 :(得分:2)

升级您的SublimeCodeIntel副本。在终端类型中:

cd ~/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel
git pull

并重新启动Sublime编辑器。最新版本支持2.0.24版。

不确定您的数据库是如何升级的,因为SublimeCodeIntel副本较旧;也许你运行了Komodo IDE的副本?它也使用codeintel;事实上,这就是codeintel源于此的地方。