任何想法为什么ctags不会递归Cygwin? [英] Any idea why ctags won't recurse on Cygwin?

查看:204
本文介绍了任何想法为什么ctags不会递归Cygwin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次运行 ctags -R XXX 时,我都会跳过XXX:它不是常规文件。由于某种原因,Cygwin上的ctags不是递归目录。



每当我尝试事实上的标准 ctags -R 在我的项目根目录,它抱怨说我没有指定任何输入文件。当我指定一个目录,它似乎认为它的一个文件。



我很累。我上周从头开始安装了一个新的Cygwin构建。我安装了一切。我很少使用Cygwin。 ctags在我的所有BSD,Linux,Mac和Solaris盒子上都能正常工作。



我认为Perforce的只读权限可能是罪魁祸首,



任何想法?是否应该从源代码重新编译?

解决方案

正如 ,xemacs-tags和ctags软件包都安装了 / bin / ctags 。您看到的行为来自xemacs版本。



开发人员会将其排除,虽然这可能需要一段时间。在此期间,请执行以下操作以获取Exuberant Ctags(及其工作 -R 选项):


  1. 再次运行Cygwin安装程序(如果需要,请再次下载 setup.exe


  2. 在程序包列表中,搜索tags,然后单击ctags和xemacs-tags他们说跳过或卸载(一个在Devel下,另一个在编辑下。


  3. >


  4. 安装完成后,点击返回而不是完成(如果您这样做错误,只需重新启动安装程序)。


  5. 在软件包列表中,选择仅安装ctags。截至今天(2012年12月12日),将指定版本5.8-1。


  6. 点击下一步并安装完成。


没有xemacs-tags包的ctags包,你应该很好。


I'm getting "skipping XXX: it is not a regular file" every time I run ctags -R XXX. For one reason or another, ctags on Cygwin isn't recursing directories. Surely, I must be doing something stupid.

Whenever I try the de-facto standard ctags -R in my project root, it complains that I didn't specify any input files. When I specify a directory, it seems to think its a file.

I'm a tad stumped. I installed a fresh Cygwin build last week from scratch. I installed everything. I rarely use Cygwin. ctags works perfectly on all my BSD, Linux, Mac and Solaris boxes.

I thought Perforce's read-only permissions might have been the culprit, but chmod 777 changes nothing.

Any ideas? Should I recompile from source?

解决方案

As is currently being discussed on the Cygwin mailing list, the xemacs-tags and ctags packages both install /bin/ctags. The behaviour you're seeing is from the xemacs version.

The developers will sort it out, although that may take a little while. In the meantime, do the following to get Exuberant Ctags (with its working -R option) installed:

  1. Run the Cygwin installer again (download setup.exe again if you need to).

  2. At the package list, search for "tags" and click the "New" column for both "ctags" and "xemacs-tags" until they say either "Skip" or "Uninstall" (one's under "Devel", the other under "Editors".

  3. Hit "Next".

  4. Once the install has completed, click "Back" instead of "Finish" (if you do this wrong, just restart the installer).

  5. At the package list, select to install "ctags" only. As of today (12 December 2012), that'll specify version 5.8-1.

  6. Click Next and let the install finish.

That'll give you the "ctags" package without the "xemacs-tags" package, and you should be good to go.

这篇关于任何想法为什么ctags不会递归Cygwin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆