Join GitHub today
coffeetags not found? #131
I have the same issue:
sudo make install cp -p ctags /usr/local/bin/ctags && chmod 755 /usr/local/bin/ctags cp -p ./ctags.1 /usr/local/share/man/man1/ctags.1 && chmod 644 /usr/local/share/man/man1/ctags.1 for c in ctags.ctags RFC1213-MIB.txt; do \ cp -p ./data/corpora/$c /usr/local/share/ctags/corpora/$c && chmod 644 /usr/local/share/ctags/corpora/$c; \ done for c in coffee.ctags ctags.ctags mib.ctags rust.ctags ; do \ cp -p ./data/optlib/$c /usr/local/share/ctags/optlib/$c && chmod 644 /usr/local/share/ctags/optlib/$c; \ done for c in coffee.ctags ctags.ctags mib.ctags rust.ctags ; do \ echo "--options=$(basename $c .ctags)" >> /usr/local/share/ctags/preload/default.ctags; \ done; \ chmod 644 /usr/local/share/ctags/preload/default.ctags for x in coffeetags; do \ cp -p ./libexec/drivers/$x /usr/local/libexec/ctags/drivers/$x && chmod 755 /usr/local/libexec/ctags/drivers/$x; \ done cp -p readtags /usr/local/bin/readtags && chmod 755 /usr/local/bin/readtags wm/tmp/ctags [master] % exec $SHELL wm/tmp/ctags [master] % ctags ctags: cannot open option file "/usr/local/share/ctags/optlib/coffee.ctags" : No such file or directory
But the coffee.tags file is there with the following content:
# # # Copyright (c) 2014, Red Hat, Inc. # Copyright (c) 2014, Masatake YAMATO # # Author: Masatake YAMATO <firstname.lastname@example.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # --langdef=coffee --coffee-map=+.coffee --coffee-xcmd=coffeetags
It is working, thanks for the fix. During the
options.c: In function ‘parseConfigurationFileOptions’: options.c:2495:11: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] asprintf (&filename,"/etc/%s.conf", filename_body); ^ options.c:2499:11: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] asprintf (&filename,"/usr/local/etc/%s.conf", filename_body); ^ options.c: In function ‘parseConfigurationFileOptionsInDirectory’: options.c:2367:11: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] asprintf (&leafname,".%s",(Option.configFilename)?Option.configFilename:"ctags");
Do you plan to create tags for releases? I think not everybody wants to pull from master.
I am getting this error and I built it the same way after doing git pull.
lxcmd.o: In function `loadPathKinds': /home/kmodi/downloads/git/ctags/lxcmd.c:292: undefined reference to `WIFEXITED' /home/kmodi/downloads/git/ctags/lxcmd.c:292: undefined reference to `WEXITSTATUS' collect2: ld returned 1 exit status make: *** [ctags] Error 1
The /home/kmodi/usr_local2/libexec/ctags/drivers/coffeetags file is
Also, I don't work with coffeescript. I have this in my .ctags:
Here's the output of the
/home/kmodi/usr_local2/libexec/ctags /home/kmodi/usr_local2/libexec/ctags/drivers /home/kmodi/usr_local2/libexec/ctags/drivers/coffeetags
I get that warning even on doing
km²~/:> ctags --version ctags: Warning: xcmd recognizes /home/kmodi/usr_local2/libexec/ctags/drivers/coffeetags is not available Fishman Ctags Development, Copyright (C) 1996-2009 Darren Hiebert Compiled: Dec 23 2014, 14:17:33 Addresses: , https://github.com/fishman/ctags Optional compiled features: +wildcards, +regex, +option-directory, +coproc
Even if you set something in .ctags, the warning should not be printed if the code I wrote works as expected:-P. My code must works well even in environment where coffeetags is not installed.
Could you try following two commands?
In my environment:
Thank you. I have just remembered that the message means ctags cannot find coffeetags command.
It is nice if you can disable coffeetags related configuration in .ctags, .ctags.d or somewhere.
Instead I'm thinking about preparing --quiet option.