【问题标题】:Exuberant Ctags 5.8 generating incomplete tags file for specific projectExuberant Ctags 5.8 为特定项目生成不完整的标签文件
【发布时间】:2017-07-31 21:41:56
【问题描述】:

使用 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 -R 或ctags -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文件。

【问题讨论】:

    标签: ctags exuberant-ctags


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多