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

2016-05-06 00:25:39 +08:00
 theJian

前两天更新了下 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

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

4114 次点击
所在节点    Vim
5 条回复
congeec
2016-05-06 00:30:10 +08:00
更新不成功吧
去首页看看就会发现以前在 tern 目录下 npm install 现在改成 npm_runtime 目录了
theJian
2016-05-06 00:52:19 +08:00
你是说 tern_runtime 目录吧, 这个我注意到了, 我还手动 npm install 了一下, 但是没有解决
rashawn
2016-05-06 08:16:27 +08:00
你看看 tern_runtime 里文件跟那份什么 tern_conf 文件对应吗 是不是缺文件了
rashawn
2016-05-06 08:19:13 +08:00
应该不是这个原因……
theJian
2016-05-06 13:12:30 +08:00
心好累, 好累啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/276668

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX