V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
theJian
V2EX  ›  Vim

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

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

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

    Tern server is not running(crashed)
    

    这个是错误日志:

    2016-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   ·   我们的愿景   ·   实用小工具   ·   3249 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:51 · PVG 19:51 · LAX 04:51 · JFK 07:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.