Exuberant Ctags 5.8 为特定项目生成不完整的标签文件

Exuberant Ctags 5.8 generating incomplete tags file for specific project

使用 Arch Linux 并且我安装了 Ctag 5.8。

我的 Go 项目有这样的结构:

.
├── apply
│   └── apply.go
├── calculate
│   └── calculate.go
├── coupon.sqlite3
├── Godeps
│   ├── Godeps.json
│   └── Readme
├── main.go
├── Makefile
├── models
│   ├── cupom.go
│   ├── errorMessage.go
│   └── product.go
├── ping
│   └── ping.go
├── README.md
├── routes
│   └── routes.go
├── tags
├── tests
│   ├── apply_test.go
│   ├── calculate_test.go
│   ├── config.go
│   ├── coupon.sqlite3
│   └── fixtures
│       └── calculate.go

运行 命令 ctags -Rctags -R . 我生成了一个 tags 文件,但只有这个内容。

!_TAG_FILE_FORMAT   2   /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED   1   /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR    Darren Hiebert  /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME  Exuberant Ctags //
!_TAG_PROGRAM_URL   http://ctags.sourceforge.net    /official site/
!_TAG_PROGRAM_VERSION   5.8 //

运行 其他项目上的相同命令正确生成 tags 文件。

您安装了 Exuberant Ctags,它不支持开箱即用的 Go (http://ctags.sourceforge.net/languages.html)。

有很多不同的替代程序或方法可以将其添加到您现有的 ctags: