Closed sandinmyjoints closed 4 years ago
What's the output of running ctags cli in shell?
It could be you ~/.ctags
setup.
Run the cli in shell and fix all the warnings.
Hmm, I don't have a ~/.ctags file.
If I run just ctags, I get ctags: No files specified. Try "ctags --help".
.
If I run ctags --help
:
$ ctags --help
Universal Ctags 0.0.0(0c78c0c), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: May 26 2020, 09:08:52
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +iconv,
+option-directory, +xpath, +case-insensitive-filenames, +packcc
For completion, this is what I see in the Messages buffer:
Failed to create tags file.
error=exited abnormally with code 1
command=ctags -e -L --exclude="*/.git/*" --exclude=".git/*"
--exclude="*/.svn/*" --exclude=".svn/*" --exclude="*/.cvs/*"
--exclude=".cvs/*" --exclude="*/.bzr/*" --exclude=".bzr/*"
--exclude="*/.hg/*" --exclude=".hg/*" --exclude="*/bin/*" --exclude="bin/*"
--exclude="*/fonts/*" --exclude="fonts/*" --exclude="*/images/*"
--exclude="images/*" --exclude="*/.DS_Store/*" --exclude=".DS_Store/*"
--exclude="*/.npm/*" --exclude=".npm/*" --exclude="*/.tmp/*"
--exclude=".tmp/*" --exclude="*/.sass-cache/*" --exclude=".sass-cache/*"
--exclude="*/.idea/*" --exclude=".idea/*" --exclude="*/node_modules/*"
--exclude="node_modules/*" --exclude="*/bower_components/*"
--exclude="bower_components/*" --exclude="*/.tox/*" --exclude=".tox/*"
--exclude="*/.vscode/*" --exclude=".vscode/*" --exclude="*/.cask/*"
--exclude=".cask/*" --exclude="*.org" --exclude="*.log"
--exclude="rusty-tags.vim" --exclude="rusty-tags.emacs" --exclude="tags"
--exclude="TAGS" --exclude="*.tgz" --exclude="*.gz" --exclude="*.xz"
--exclude="*.zip" --exclude="*.tar" --exclude="*.rar" --exclude="GTAGS"
--exclude="GPATH" --exclude="GRTAGS" --exclude="cscope.files"
--exclude="*bundle.js" --exclude="*min.js" --exclude="*min.css"
--exclude="*.png" --exclude="*.jpg" --exclude="*.jpeg" --exclude="*.gif"
--exclude="*.bmp" --exclude="*.tiff" --exclude="*.ico" --exclude="*.doc"
--exclude="*.docx" --exclude="*.xls" --exclude="*.ppt" --exclude="*.pdf"
--exclude="*.odt" --exclude=".clang-format" --exclude="*.obj"
--exclude="*.so" --exclude="*.o" --exclude="*.a" --exclude="*.ifso"
--exclude="*.tbd" --exclude="*.dylib" --exclude="*.lib" --exclude="*.d"
--exclude="*.dll" --exclude="*.exe" --exclude=".metadata*"
--exclude="*.class" --exclude="*.war" --exclude="*.jar"
--exclude="*flymake" --exclude="#*#" --exclude=".#*" --exclude="*.swp"
--exclude="*~" --exclude="*.elc" --exclude="*.pyc" -e
--exclude="@/Users/william/scm/sd/neodarwin/.gitignore" -R
On Tue, May 26, 2020 at 9:30 PM Chen Bin notifications@github.com wrote:
What's the output of running ctags cli in shell? Could be you ~/.ctags setup.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/redguardtoo/counsel-etags/issues/61#issuecomment-634369910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEUENFPPUADZPKMPEOSNMLRTRUJTANCNFSM4NLHP6IQ .
-- williamjohnbert.com | github.com/sandinmyjoints | twitter.com/williamjohnbert
see -e -L
at the beginning of the cli? What's the value of counsel-etags-tags-program
?
Try (setq counsel-etags-tags-program nil)
to work around the issue.
Or just upgrade to latest version 4123a05 remove dependency on GNU/BSD find (Chen Bin)
counsel-etags-tags-program
is renamed counsel-etags-ctags-program
in this version.
Thanks, it turns out I was adding those flags in my config and had forgotten about it. Removing them seems to have fixed the issue!
On Tue, May 26, 2020 at 10:34 PM Chen Bin notifications@github.com wrote:
see -e -L at the beginning of the cli? What's the value of counsel-etags-tags-program?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/redguardtoo/counsel-etags/issues/61#issuecomment-634390960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEUENHWG6KKP7XRT3MM2BDRTR3ZZANCNFSM4NLHP6IQ .
-- williamjohnbert.com | github.com/sandinmyjoints | twitter.com/williamjohnbert
After recently updating counsel-etags, I'm now seeing this a lot:
ctags: cannot open list file "--exclude=*/.git/*" : No such file or directory
with this in *Messages* buffer:
The project I'm using it in does have a .git directory, fwiw.
I'm using universal ctags (confirmed this is the binary that Emacs finds with
executable-find
):Any ideas?