bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q on global/gtags with rust codes


From: Shigio YAMAGUCHI
Subject: Re: Q on global/gtags with rust codes
Date: Wed, 18 Oct 2023 13:16:29 +0900

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 = subprocess.Popen([ctags_command, '-xu', '--filter', ...
|
v
142:     self.process = subprocess.Popen([ctags_command, '-xu',
'--tag-relative=no', '--filter', ...

Harada san, thank you for the report!

Regards,
Shigio

On Tue, Oct 17, 2023 at 4:36 AM Makoto Harada <makotouu@gmail.com> wrote:
>
> Hello,
>
> I'm trying to use global/gtags for rust codes.
> It generates G* files with some sizes.
> However, "-f", "-c" and "-r" does not work as expected.
> only -"g" works.
> I also confirmed pygmetize commands works as expected.
>
> Could anyone help me what's wrong ?
> Anyone successfully make global/gtag works with rust code ?
>
> Below is some info including my trial log.
> I also attached .globalrc and main.rs.
>
> Any help is really appreciated. Thanks a lot !!
>
> Makoto
>
> ======================================================================
> $gtags -v --gtagslabel=pygments
>      [Mon Oct 16 15:25:15 EDT 2023] Gtags started.
>       Using configuration file '/home/hoge/.globalrc'.
>       Using configuration label 'pygments'.
>       Using plug-in parser.
>      [Mon Oct 16 15:25:15 EDT 2023] Creating 'GTAGS' and 'GRTAGS'.
>       [1] extracting tags of main.rs
>      [Mon Oct 16 15:25:15 EDT 2023] Done.
>
> $ll
> total 84K
> drwxrwxr-x 2 makoto makoto 4.0K 10月 16 15:25 .
> drwxrwxr-x 3 makoto makoto 4.0K 10月  6 16:24 ..
> -rw-r--r-- 1 makoto makoto  23K 10月 16 12:17 .globalrc
> -rw-r--r-- 1 makoto makoto  16K 10月 16 15:25 GPATH
> -rw-r--r-- 1 makoto makoto  16K 10月 16 15:25 GRTAGS
> -rw-r--r-- 1 makoto makoto  16K 10月 16 15:25 GTAGS
> -rw-rw-r-- 1 makoto makoto  396 10月  6 16:24 main.rs
>
> $global -f main.rs
> $global -c
> $global -r println
>
> $global -gx  println
> println             4 main.rs              println!("Enter your weight
> (kg): ");
> println            11 main.rs              println!("Weight on Mars:
> {}kg", mars_weight);
> ======================================================================
> - version
>      $global --version
>      global (Global) 6.6.10
>
>      $ pygmentize -V
>      Pygments version 2.11.2, (c) 2006-2021 by Georg Brandl, Matthäus
> Chajdas and contributors.
> ======================================================================
>


-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

[Prev in Thread] Current Thread [Next in Thread]