Re: Q on global/gtags with rust codes
Shigio YAMAGUCHI <[email protected]> Thu, 19 Oct 2023 12:17:32 +0900
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <CADJmJYrttAw10zrWf5Ch2aTH+N1zP2bBEJYNKrj7naahn_WrtQ@mail.gmail.com> |
Perhaps the following command will work correctly, I think. Would you please try this? $ global -f main.rs --gtagslabel=3Dpygments $ global -r 'println!' Instead of '--gtagslabel=3Dpygments', you can use GTAGSLABEL environment variable. I have no idea about 'global -c'. Regards, Shigio On Thu, Oct 19, 2023 at 11:00=E2=80=AFAM Harada Makoto <[email protected]>= wrote: > > Shigio-san, > > Tried adding '--options=3DNONE' to the beginning, however got the same re= sult, unfortunately... > (Tested with different environment this time. (Version 6.6.4)) > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $gtags -v > [Wed Oct 18 21:55:26 EDT 2023] Gtags started. > Using configuration file '/Users/makoto/.globalrc'. > Using configuration label 'default'. > Using plug-in parser. > [Wed Oct 18 21:55:26 EDT 2023] Creating 'GTAGS' and 'GRTAGS'. > [1] extracting tags of main.rs > No options will be read from files or environment > [Wed Oct 18 21:55:27 EDT 2023] Done. > > $global -c > $global -f main.rs > No options will be read from files or environment > $global -r println > $global -gx println > println 4 main.rs println!("Enter your weight (k= g): "); > println 14 main.rs println!("Weight on Mars: {}kg= ", mars_weight); > > $global --version > global (GNU GLOBAL) 6.6.4 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Makoto > > > 2023/10/18 21:24=E3=80=81Shigio YAMAGUCHI <[email protected]>=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB: > > > > Could you please try adding '--options=3DNONE' to the beginning? > > > > [/usr/local/share/gtags/script/pygments_parser.py] > > 142: self.process =3D subprocess.Popen([ctags_command, '-xu', > > '--tag-relative=3Dno',... > > | > > v > > 142: self.process =3D subprocess.Popen([ctags_command, '--options=3DNON= E', > > '-xu', '--tag-relative=3Dno',... > > > > Regards, > > Shigio > > > > On Wed, Oct 18, 2023 at 11:19=E2=80=AFPM Makoto Harada <makotouu@gmail.= com> wrote: > >> > >> Shigio-san, > >> > >> Thanks for your prompt reply and your help here. > >> > >> I made the change /usr/local/share/gtags/script/pygments_parser.py as > >> you suggested, > >> and did the same test, however it did not help unfortunately. > >> I got the same result before the change. > >> I also confirmed that /usr/local/share/gtags/script/pygments_parser.py > >> is called and executed. > >> > >> > >>> The cause of the problem was not in Universal Ctags, but in my insuff= icient > >>> bug fixes for the following issues: > >>> > >>> Universal Ctags: Don't read config files; New 'ctagsoptfile' configur= ati > >>> Date: Fri, 07 Apr 2023 13:07:07 +0200 > >>> > >>> The workaround is still valid. > >> > >> I also tried with global older version, 6.6.7 and got the same result. > >> In my understanding, 6.6.7 was released before the fix above. > >> So, I'm suspecting that there might be another root cause... > >> > >> Makoto > >> > >> On 10/18/2023 2:39 AM, Shigio YAMAGUCHI wrote: > >>> Hello, > >>> I will correct my wrong statement. > >>> > >>>> The cause seems to be a change in Universal Ctags. > >>> The cause of the problem was not in Universal Ctags, but in my insuff= icient > >>> bug fixes for the following issues: > >>> > >>> Universal Ctags: Don't read config files; New 'ctagsoptfile' configur= ati > >>> Date: Fri, 07 Apr 2023 13:07:07 +0200 > >>> > >>> The workaround is still valid. > >>> > >>> Regards, > >>> Shigio > >>> > >>> On Wed, Oct 18, 2023 at 1:16=E2=80=AFPM Shigio YAMAGUCHI <shigio@gnu.= org> wrote: > >>>> Hello, > >>>> It found out that Pygments plug-in parser does not work now. > >>>> It's not limited to Rust. The cause seems to be a change in > >>>> Universal Ctags. > >>>> > >>>> To get it running, do the following: > >>>> > >>>> [/usr/local/share/gtags/script/pygments_parser.py] > >>>> 142: self.process =3D subprocess.Popen([ctags_command, '-xu', '-= -filter', ... > >>>> | > >>>> v > >>>> 142: self.process =3D subprocess.Popen([ctags_command, '-xu', > >>>> '--tag-relative=3Dno', '--filter', ... > >>>> > >>>> Harada san, thank you for the report! > >>>> > >>>> Regards, > >>>> Shigio > > > > > > > > -- > > Shigio YAMAGUCHI <[email protected]> > > PGP fingerprint: > > 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB > --=20 Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB