标签列表:在 PATH 中找不到丰富的 ctag

发布于 2024-12-05 03:13:09 字数 307 浏览 0 评论 0原文

今天早上,当我尝试在 Vim 中打开文件时,我开始收到该消息。 Vim 是我选择的配置文件、git 提交消息等编辑器,但不是我的日常代码编辑器。我显然做了什么来邀请这个消息,但我不知道是什么。我最近确实从 /Developer-3.2.6 卸载了旧版本的 XCode,但这是唯一想到的似乎与此无关的事情。

我正在运行 OSX Lion。 Excuberant ctags 是基本安装的一部分吗?我知道我不是故意安装它的,但如果它不是本机的,那么也许它附带了其他东西?关于如何恢复插件或删除对其的引用以便我不会收到警告消息有什么想法吗?

谢谢。

This morning, I started getting that message when I attempt to open a file in Vim. Vim is my editor of choice for config files, git commit messages and the like, but is not my day to day code editor. I clearly did something to invite this message, but I have no idea what. I did recently uninstall an older version of XCode from /Developer-3.2.6, but that's the only thing that comes to mind that seems even tangentially related.

I'm running OSX Lion. Is Excuberant ctags part of the base install? I know I didn't install it intentionally, but if it's not native, then maybe it came along with something else? Any ideas about how to either get the plugin back or remove references to it so I don't get the warning message?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

池予 2024-12-12 03:13:09

对于 Ubuntu 及其衍生版本:

sudo apt-get install exuberant-ctags

使用 yum:

sudo yum install ctags-etags

For Ubuntu and derivatives:

sudo apt-get install exuberant-ctags

With yum:

sudo yum install ctags-etags
草莓酥 2024-12-12 03:13:09

FWIW我在Ubuntu上有同样的错误消息,我只是安装了ctags和一切都很好。谢谢 :)

FWIW I had the same error message on Ubuntu, I simply installed ctags and everything hunky dory. Thanks :)

菩提树下叶撕阳。 2024-12-12 03:13:09

这看起来很像 taglist 插件在可以时发出的消息'找不到 ctags 程序。如果您运行 :scriptnames,您是否在源文件列表中看到 plugin/taglist.vim ?如果这样做,那么您可能需要将其和同一目录结构下的 doc/taglist.txt 删除。

That looks a lot like the message the taglist plugin emits when it can't find a ctags program. If you run :scriptnames, do you see plugin/taglist.vim in the list of sourced files? If you do, then you'll probably want to remove that and doc/taglist.txt under the same directory structure.

夜无邪 2024-12-12 03:13:09

如果你在Windows系统中使用Gvim,你应该下载一个ctag Windows程序(即ctag.exe)并将ctag.exe放在vim74文件目录中,然后重新启动Gvim,它就会找到它并使用它!我希望这有帮助。

看看这个:http://vim-taglist.sourceforge.net/installation.html

If you are using Gvim in a Windows system, you should download a ctag Windows program (that is ctag.exe) and put the ctag.exe in the vim74 file dir, then reboot Gvim, and it will find it and use it! I hope this is helpful.

Take a look at this: http://vim-taglist.sourceforge.net/installation.html

若有似无的小暗淡 2024-12-12 03:13:09

谢谢,伙计们。我最终重新安装了 XCode,看起来问题已经消失了。我不知道我是如何让它进入原来的状态的,但现在它又回来了,一切看起来都恢复正常了。

Thanks, guys. I ended up reinstalling XCode and it looks like the problem has gone away. I have no idea how I got it into whatever state it was in, but it's back now and everything looks to be back to normal.

凉城凉梦凉人心 2024-12-12 03:13:09

升级到 Mountain Lion 后我遇到了同样的问题。我通过从 XCode 首选项 > 重新安装 CLI 工具来修复它下载。我在升级之前安装了 CLI 工具。不知道发生了什么,但现在可以了。

I encountered the same issue after upgrading to Mountain Lion. I fixed it by reinstalling the CLI tools from XCode preferences > Downloads. I had the CLI tools installed before upgrading. Not sure what happened, but it works now.

欢你一世 2024-12-12 03:13:09

我在主机上遇到了这个问题,但我没有安装任何软件包的权限。

但我确实发现该系统上存在 gctags

我在 PATH 环境变量中包含的位置为 gctags 二进制文件创建了一个软链接。

$ln -s /usr/bin/gctags ~/bin/ctags**

如果您在系统中发现 etags 二进制文件,并且无法安装任何软件包,您也可以执行相同的操作。

I encountered this issue on a host, but I didn't have permission to install any packages.

But i did find out the gctags was present on that system.

I created a softlink for the gctags binary in a location that was included in my PATH environment variable.

$ln -s /usr/bin/gctags ~/bin/ctags**

You can do the same if you find etags binary in your system, and have no way to install any packages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文