vim 更新了一下插件 YCM, 然后 js 补全就出问题了 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
theJian
V2EX    Vim

vim 更新了一下插件 YCM, 然后 js 补全就出问题了

  •  
  •   theJian 2016-05-06 00:25:39 +08:00 4611 次点击
    这是一个创建于 3526 天前的主题,其中的信息可能已经有所发展或是发生改变。

    前两天更新了下 YCM, 重新编译 ./install.py --tern-completer, 然后 js 补全就出问题了 看了下 YcmDebugInfo:

    Tern server is not running(crashed) 

    这个是错误日志:

    216-05-06 00:18:31,216 - INFO - Received health request 2016-05-06 00:18:31,224 - INFO - Received debug info request 2016-05-06 00:19:23,704 - INFO - Received event notification 2016-05-06 00:19:23,717 - INFO - Received event notification 2016-05-06 00:19:23,718 - INFO - Adding buffer identifiers for file: /home/jian/0x00/kanban-app/webpack.config.js 2016-05-06 00:19:23,724 - INFO - Received event notification 2016-05-06 00:19:23,732 - INFO - Received event notification 2016-05-06 00:19:23,742 - INFO - Received event notification 2016-05-06 00:19:23,743 - INFO - Adding buffer identifiers for file: /home/jian/0x00/kanban-app/webpack.config.js 2016-05-06 00:19:23,791 - INFO - Using node binary from: /usr/bin/node 2016-05-06 00:19:23,791 - INFO - Starting Tern.js server... 2016-05-06 00:19:23,795 - INFO - Tern.js Server started with pid: 18781 listening on port 54985 2016-05-06 00:19:23,795 - INFO - Tern.js Server log files are: /tmp/ycm_temp/tern_54985_stdout.log and /tmp/ycm_temp/tern_54985_stderr.log 2016-05-06 00:19:23,796 - INFO - Detected .tern-project file at: /home/jian/.tern-config 2016-05-06 00:19:23,803 - INFO - Starting new HTTP connection (1): 127.0.0.1 2016-05-06 00:19:23,810 - INFO - Starting new HTTP connection (1): 127.0.0.1 2016-05-06 00:19:29,631 - INFO - Received debug info request 2016-05-06 00:19:50,054 - INFO - Received filetype completion available request 2016-05-06 00:20:08,442 - INFO - Received debug info request 2016-05-06 00:20:40,026 - INFO - Received completion request 2016-05-06 00:20:40,113 - INFO - Received completion request 2016-05-06 00:20:40,335 - INFO - Received completion request 2016-05-06 00:20:40,416 - INFO - Received completion request 2016-05-06 00:20:41,045 - INFO - Received event notification 2016-05-06 00:20:41,046 - INFO - Adding ONE buffer identifier for file: /home/jian/0x00/kanban-app/webpack.config.js 2016-05-06 00:20:41,055 - INFO - Received completion request 2016-05-06 00:20:41,057 - ERROR - Exception from semantic completer (using general): Traceback (most recent call last): File "/home/jian/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 99, in GetCompletions .ComputeCandidates( request_data ) ) File "/home/jian/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/completers/completer.py", line 218, in ComputeCandidates candidates = self._GetCandidatesFromSubclass( request_data ) File "/home/jian/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/completers/completer.py", line 234, in _GetCandidatesFromSubclass raw_completiOns= self.ComputeCandidatesInner( request_data ) File "/home/jian/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/completers/Javascript/tern_completer.py", line 181, in ComputeCandidatesInner request_data ).get( 'completions', [] ) File "/home/jian/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/completers/Javascript/tern_completer.py", line 357, in _GetResponse return self._PostRequest( { 'query': full_query }, request_data ) File "/home/jian/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/completers/Javascript/tern_completer.py", line 303, in _PostRequest raise ValueError( 'Not connected to server' ) ValueError: Not connected to server 2016-05-06 00:20:41,933 - INFO - Received event notification 2016-05-06 00:20:41,933 - INFO - Adding buffer identifiers for file: /home/jian/0x00/kanban-app/webpack.config.js 2016-05-06 00:20:41,940 - INFO - Received event notification 2016-05-06 00:20:42,258 - INFO - Received event notification 2016-05-06 00:20:42,258 - INFO - Adding buffer identifiers for file: /home/jian/0x00/kanban-app/webpack.config.js 2016-05-06 00:20:55,703 - INFO - Received debug info request 

    有什么好的建议吗? 谢谢.

    第 1 条附言    2016-05-07 14:12:35 +08:00
    5 条回复    2016-05-06 13:12:30 +08:00
    congeec
        1
    congeec  
       2016-05-06 00:30:10 +08:00 via iPhone
    更新不成功吧
    去首页看看就会发现以前在 tern 目录下 npm install 现在改成 npm_runtime 目录了
    theJian
        2
    theJian  
    OP
       2016-05-06 00:52:19 +08:00
    你是说 tern_runtime 目录吧, 这个我注意到了, 我还手动 npm install 了一下, 但是没有解决
    rashawn
        3
    rashawn  
       2016-05-06 08:16:27 +08:00
    你看看 tern_runtime 里文件跟那份什么 tern_conf 文件对应吗 是不是缺文件了
    rashawn
        4
    rashawn  
       2016-05-06 08:19:13 +08:00
    应该不是这个原因……
    theJian
        5
    theJian  
    OP
       2016-05-06 13:12:30 +08:00
    心好累, 好累啊
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1196 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 17:43 PVG 01:43 LAX 09:43 JFK 12:43
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86