|
From: | Gis Ochre |
Subject: | Re: bug: gtags not respecting .ctags files |
Date: | Sat, 10 Aug 2019 21:58:16 +0300 |
User-agent: | Mutt/1.9.4 (2018-02-28) |
Shigio, there does appear to be an issue after all ) Attaching following files: ~/issue $ ll total 46 drwxrwxr-x 2 hero hero 4096 2019-08-10 21:41 . drwxr-xr-x 48 hero hero 4096 2019-08-10 21:42 .. -rw-r--r-- 1 hero hero 10525 2019-08-10 17:51 FileTreeWalk.kt -rw-r--r-- 1 hero hero 23016 2019-08-10 21:39 gtags.conf -rw-rw-r-- 1 hero hero 2676 2019-08-10 21:38 issue.log -rw-r--r-- 1 hero hero 2307 2019-08-10 21:41 kt.ctags 1. FileTreeWalk.kt - sample kotlin file from kotlin stdlib. 2. kt.ctags - located in ~/.ctags.d/ in this scenario. 3. gtags.conf - my $GTAGSCONF 4. issue.log - scenario console commands.log As you can see from issue.log, gtags doesn't use kt.ctags if `gtagslabel' is set to `new-ctags', `ctags', irrespective of gtags.conf entries for `--langmap=kotlin...`. But it works with `gtagslabel' set to `pygments'. When set to `pygments', gtags is affected by presence of custom kt.ctags file in ~/.ctags.d/. - its removal removes the found tags. On Sat, Aug 10, 2019 at 09:25:17PM +0900, Shigio YAMAGUCHI wrote: > Don't worry. > > First of all, could you create a set of sample files using the > --langdefs option? > > o A simple source file (Kotlin?) > o A command line of uctags using the --langdefs option (+ custom.ctags file). > > These are necessary for me to reproduce the situation. > > Next, let's make it available from gtags. > > Regards, > Shigio > > 2019年8月10日(土) 20:57 Gis Ochre <address@hidden>: > > > > Just for hitstory. Sorry for not looking at > > https://lists.gnu.org/archive/html/help-global/ first. > > That was dumb. > > > > сб, 10 авг. 2019 г. в 14:33, Shigio YAMAGUCHI <address@hidden>: > >> > >> Would you please repost this issue to the help mailing list? > >> I think I can help you. > >> > >> Regards, > >> Shigio > >> > >> 2019年8月10日(土) 18:55 gisochrewhb <address@hidden>: > >> > > >> > Shigio, no code issue. Gtags just lacks documentation on how to use > >> > custom --langdefs of uctags. It would save gtags users frustration. > >> > Anyway, thx for help! > >> > > >> > > >> > ОтправленоMeizu M3 note > >> > > >> > -------- Исходное сообщение -------- > >> > От: Shigio YAMAGUCHI <address@hidden> > >> > Время: сб 10/8 01:52 > >> > Кому: Gis Ochre <address@hidden> > >> > Копия: bug-global <address@hidden> > >> > Тема: Re: bug: gtags not respecting .ctags files > >> > > >> > >Sicne here is bug mailing list (not help mailing list), I am not > >> > >interested > >> > >in your problem. Could you describe gtags issue briefly? > >> > > > >> > >Regards, > >> > >Shigio > >> > > > >> > >2019年8月9日(金) 21:54 Gis Ochre <address@hidden>: > >> > >> > >> > >> Hello, Shigio! > >> > >> Sorry, my bad. I didn't describe my particular issue in detail. > >> > >> My particular issue was that gtags didn't respect `--langdef=kotlin` > >> > >> config from > >> > >> ~/.ctags.d/custom.ctags file. > >> > >> On second thought, it doesn't require changing exuberant-ctags.c. > >> > >> Adding line > >> > >> ``` > >> > >> :langmap=kotlin\:.kt:\ > >> > >> ``` > >> > >> under `universal-ctags|setting to use Universal Ctags plug-in > >> > >> parser:\` in gtags.conf > >> > >> fixes the issue for me and ctags start using that langdef when called > >> > >> by gtags. > >> > >> > >> > >> But maybe you should consider adding smth like > >> > >> ``` > >> > >> +:options=~/.ctags.d/mycustom.ctags,~/.ctags.d/anothercustom.ctags:\ > >> > >> ``` > >> > >> to gtags.conf to support arbitrary ctags options, not just --langmap > >> > >> and -exlude. > >> > >> > >> > >> > >> > >> пт, 9 авг. 2019 г. в 04:39, Shigio YAMAGUCHI <address@hidden>: > >> > >>> > >> > >>> Hello, > >> > >>> File exclusion should be specified in gtags.conf. GLOBAL uses uctags > >> > >>> only > >> > >>> as an parser. If you want to skip 'foo' file, please write like > >> > >>> follows: > >> > >>> > >> > >>> [gtags.conf] > >> > >>> :skip=foo:\ > >> > >>> > >> > >>> If 'foo' is a directory, it should be 'foo/'. > >> > >>> Please see gtags(1) for the detail. > >> > >>> > >> > >>> Regards, > >> > >>> Shigio > >> > >>> > >> > >>> 2019年8月9日(金) 8:58 Gis Ochre <address@hidden>: > >> > >>> > > >> > >>> > Hello, everyone! > >> > >>> > > >> > >>> > Problem described in detail in > >> > >>> > https://github.com/universal-ctags/ctags/issues/1608. > >> > >>> > Can confirm that cornercase patch.diff fixed the issue for me. > >> > >>> > > >> > >>> > _______________________________________________ > >> > >>> > Bug-global mailing list > >> > >>> > address@hidden > >> > >>> > https://lists.gnu.org/mailman/listinfo/bug-global > >> > >>> > >> > >>> > >> > >>> > >> > >>> -- > >> > >>> Shigio YAMAGUCHI <address@hidden> > >> > >>> PGP fingerprint: > >> > >>> 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB > >> > > > >> > > > >> > > > >> > >-- > >> > >Shigio YAMAGUCHI <address@hidden> > >> > >PGP fingerprint: > >> > >26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB > >> > >> > >> > >> -- > >> Shigio YAMAGUCHI <address@hidden> > >> PGP fingerprint: > >> 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB > > > > -- > Shigio YAMAGUCHI <address@hidden> > PGP fingerprint: > 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB
FileTreeWalk.kt
Description: Text document
kt.ctags
Description: Text document
gtags.conf
Description: Text document
issue.log
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |