preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.1k stars 485 forks source link

Archlinux. Neovim. Tagbar: Exuberant ctags not found! #802

Closed d-panfilov closed 2 years ago

d-panfilov commented 2 years ago
$ uctags --version
Universal Ctags 5.9.0(e7f2c0571), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Jan  4 2022, 16:42:06
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +gnulib_regex, +iconv, +option-directory, +xpath, +json, +interactive, +sandbox, +yaml, +packcc, +optscript, +pcre2

$ pacman -Qi uctags-git
Name            : uctags-git
Version         : 0.r9302+e7f2c0571-1
Description     : Universal ctags (patched to allow installing alongside original ctags)
Architecture    : x86_64
URL             : https://ctags.io/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : libxml2  jansson  libyaml  bash
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1848.76 KiB
Packager        : Unknown Packager
Build Date      : Tue 04 Jan 2022 06:42:06 PM EET
Install Date    : Tue 04 Jan 2022 06:43:39 PM EET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
alerque commented 2 years ago

This is a problem with the VCS (-git) package you are using. On Arch Linux the standard ctags package is Universal Ctags. Just install that unless you need unreleased features of uctags. If you do the PKGBUILD you installed from the AUR needs to be modified to stop renaming the binary from ctags to uctags, which is a non-standard move and hence not detected by this plugin.

alerque commented 2 years ago

Please feel free to comment and bring my attention to this again if this doesn't solve your issue, but I'm pretty sure those are the cards, hence closing the issue unless something else comes up.

d-panfilov commented 2 years ago

Many thanks! You're right. I removed uctags-git and installed ctags instead and now everything works!