sublime text 中的 sublimeCodeIntel 无法提示

2014.08.20

SublimeCodeIntel可谓是sublime中最为强大的代码提示工具了,真的没有之一。

不过我发现它最近不提示了。通过/Users/zhuzhichao/.codeintel下面的codeintel.log发现了以下报错(下面是我从作者的issue上复制的,我的log已经删除了,不过报错类型一样):

Unexpected error with evaluator: ‘Test’ at routes.php#23 Traceback (most recent call last): File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/tree.py”, line 317, in eval cplns = self.eval_cplns() File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py”, line 293, in eval_cplns hit = self._hit_from_citdl(self.expr, start_scope) File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py”, line 842, in _hit_from_citdl hits, nconsumed = self._hits_from_first_part(tokens, scoperef) File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py”, line 1195, in _hits_from_first_part hit, nconsumed = self._hit_from_elem_imports(tokens, elem) File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py”, line 1272, in _hit_from_elem_imports curr_buf=self.buf) File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/database/multilanglib.py”, line 161, in hits_from_lpath self.ensure_all_dirs_scanned(ctlr=ctlr) File “/home/koen/.config/sublime-text–3/Packages/SublimeCodeIntel/libs/codeintel2/database/langlibbase.py”, line 69, in ensure_all_dirs_scanned dir, ctlr=ctlr, reporter=lambda msg: None)

来到这个项目的这个Issue可以看到很多同学出现这个问题,解决方法很简单,下载作者的development分支然后覆盖这个插件既可(查看插件具体文件夹位置自行网上搜索)。

不过话说这个插件已经11个月都没有更新了(本文时间:2014.8.20),只在开发分支修复了这个bug,但是没有发布出来。还好在作者去年10月份修复了这个bug然后不知去向了~~!不然用上稍微复杂框架的情况下,不能智能提示是件多么痛苦的事儿。

Comments
Write a Comment