Comments (11)
Same here. Just updated, deleted tags, gutentags regenerated it, then get same error on saving files. tags
is a real file at the project root, not a symlink.
The first line of tags is weird though:
vagrant@precise64:/geome$ head tags
!== /Users/steve/Development/geome/cloudchief/tmp/bundle/ruby/2.1.0/gems/coffee-script-source-1.7.1/lib/coffee_script/coffee-script.js /^},n.prototype.compilePatternMatch=function(e){var... BLAH BLAH BLAH...
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
... ETC ...
Is Gutentags suddenly prepending into the tags file instead of appending stuff?
from vim-gutentags.
I have the same problem.
> head tags
! /home/ferran/Workspace/dotfiles/vim/plugin/mappings.vim /^ noremap ! :T $/;" m
! /home/ferran/Workspace/dotfiles/vim/plugin/mappings.vim /^ noremap ! :VimuxRunCommand $/;" m
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
The error comes from gutentags#ctags#generate
function in ce4716a. ctags doesn't put tags starting with a bang after those "headers", so checking that might not be a good idea. Maybe the tags file sould be edited after creating/updating it to ensure there are no !
tags?
from vim-gutentags.
Yeah this check was a fix for #37, but it looks like not everybody's tags
file starts with !_TAG_
. I wonder why? Anybody has an idea?
In the meantime, I made the check optional with 3048bf9 so that will at least solve everyone's problem around here.
from vim-gutentags.
FYI this is my ctags --version
on OSX:
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Dec 5 2013, 20:52:19
Addresses: <[email protected]>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
I also checked and Gutentags is still appending new stuff at the bottom of the tags
file.
from vim-gutentags.
Same version here:
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Mar 16 2015, 23:48:18
Addresses: <[email protected]>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
Problem is solved here: thanks for that.
Thanks also @ludovicchabant for the fabulous plugin: good work. :-)
from vim-gutentags.
Same version:
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Mar 16 2015, 23:48:18
Addresses: <[email protected]>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
Just re-installed gutentags and I am still getting the tag format above the !_TAG_
lines. I even deleted the !
lines above and tried saving again, but it still happens.
I'm on Mac OS X 10.10.5, not sure if that makes a difference.
from vim-gutentags.
Interestingly enough, my version was compiled in 2013, but both of yours were compiled in 2015 (even though they're supposedly v5.8 in all cases). I wonder if the version is misleading, and there is really some difference between the binaries.
Sadly, AFAIK ctags is still hosted on Sourceforge, which is at this point listed as a potential malware infected website by most browser security plugins, and the Brew package for MacOSX is stuck to that 2013 version. Anybody knows where I could get a newer version?
from vim-gutentags.
You can get sources for exuberant-ctags from https://github.com/universal-ctags/ctags/commits/sourceforge
from vim-gutentags.
I also have problems with GutenUpdate
, it gives me a black screen. But the plugin is working without any complains.
Here are my ctags/ctags-exuberant (don't know if I really need both) versions:
wm~/.vim [master] M % ctags-exuberant --version
Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Oct 7 2014, 13:52:34
Addresses: <[email protected]>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
wm~/.vim [master] M % ctags --version
Universal Ctags Development(5d4c29b), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Dec 12 2015, 08:13:46
URL: https://ctags.io/
Optional compiled features: +wildcards, +regex, +debug, +option-directory, +coproc
I install ctags with the following command: cd /tmp && git clone https://github.com/fishman/ctags.git && cd ctags && autoreconf && ./configure && sudo make && sudo make install
maybe this can help.
from vim-gutentags.
Finally got around to fiddle with homebrew and get the new Universal-Ctags (which apparently is where Ctags went after SourceForge? Thanks @Coacher!). I still get the !_TAG
lines first (only with now new version numbers and such).
Looks like it's a mystery... either way, I'll leave the tag-check step optional -- I don't care about it personally, it was a feature request from someone else. If other people need it I may either make the check string configurable, or try to figure out exactly what's going on. In the meantime I'll close this since it shouldn't be a problem anymore unless you want that check.
from vim-gutentags.
@ludovicchabant, you are welcome. Universal-ctags is an attempt to modernize the original exuberant-ctags. Among other things they have 'sourceforge' branch where the original code is preserved. Last time I checked universal-ctags team was working towards their first release.
from vim-gutentags.
Related Issues (20)
- ctags_recursive.options permissions HOT 6
- ERROR: Invalid value for argument cmd and update_gtags.sh is not executable HOT 4
- E117: Unknown function: gutentags#on_vim_leave
- Tags stop working for specific file (path disappears from tags option) after manually setting tags once in that file
- Cannot generate the GTAGS at windows platform HOT 5
- Does it support different ctags file chosen dynamically? HOT 2
- Error code 122 & 139 HOT 7
- please support the usage of `vim -t symbol` HOT 9
- use gtags failed HOT 2
- update_gtags.sh lost execution permission
- How do I use different tag files for different directories of a same workspace HOT 1
- Is there a way to force gutentags to generate only one tag file?
- Keep tags values when opening the quickfix
- nvim 0.9 remove cscope how to HOT 1
- Guttentags does not support any file? HOT 1
- Option to generate tags for open windows or buffers only? HOT 3
- the use of .guttags file HOT 1
- Whitelisting instead of blacklisting HOT 2
- Bug in update_scopedb.cmd file prevents creation of cscope.out.files correctly HOT 1
- Very large tags file generated ( > 10GB) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-gutentags.