侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

ctags: skipping ***: it is not a regular file.

2023-11-05 星期日 / 0 评论 / 0 点赞 / 29 阅读 / 1358 字

最近在学习用vim,再利用ctags 建立tags 的时候出现问题 ctags -R . ctags: skipping ***: it is not a regular file. 类似这个问题可

最近在学习用vim,再利用ctags 建立tags 的时候出现问题

ctags -R .

ctags: skipping ***: it is not a regular file.

 

类似这个问题可能你运行的ctags 不是  Exuberant Ctags, 而是 GNU Emacsetags

输入

ctags --version 

 

ctags (GNU Emacs 23.1)Copyright (C) 2009 Free Software Foundation, Inc.This program is distributed under the terms in ETAGS.README

 

man ctags可以看到

   -R, --no-regex          Don't  do  any more regexp matching on the following files.  May          be freely intermixed with filenames and the --regex option.

You could probably generate the tags recursively using shell magic, but you may run into problems down the road if you're expecting Exuberant Ctags. So the best solution is probably to install the ctags you want instead:

sudo apt-get install exuberant-ctags

另一种可能是

 

It occurs if you have elvis-tools installed . remove them with something like

sudo apt-get remove elvis-tools 

and then install exuberant-ctags by

sudo apt-get install exuberant-ctags

 

广告 广告

评论区