我安装了程序包浏览器,并安装了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用户。
最佳答案
升级您的SublimeCodeIntel副本。在终端中输入:
cd ~/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel
git pull
并重新启动Sublime编辑器。最新版本支持2.0.24版。
不确定在SublimeCodeIntel副本较旧的情况下如何升级数据库;也许您运行了Komodo IDE的副本?它也使用codeintel。实际上,这就是codeintel的来源。