Hello, I have fixed the problem in the repository by your method. Thank you!
Regards, Shigio Index: libparser/reserved.pl =================================================================== RCS file: /sources/global/global/libparser/reserved.pl,v retrieving revision 1.2 diff -r1.2 reserved.pl 1c1 < #!/usr/bin/perl --- > #!/usr/bin/env perl cvs diff: Diffing libutil cvs diff: Diffing m4 cvs diff: Diffing plugin-factory Index: plugin-factory/maps2conf.pl =================================================================== RCS file: /sources/global/global/plugin-factory/maps2conf.pl,v retrieving revision 1.4 diff -r1.4 maps2conf.pl 1c1 < #!/usr/bin/perl --- > #!/usr/bin/env perl Index: plugin-factory/pygments_parser.py.in =================================================================== RCS file: /sources/global/global/plugin-factory/pygments_parser.py.in,v retrieving revision 1.8 diff -r1.8 pygments_parser.py.in 1c1 < #!@PYTHON@ --- > #!/usr/bin/env python cvs diff: Diffing script 2018年9月7日(金) 21:57 赵映洁 <[email protected]>: > > Hi, > > 1 What is your environment (OS)? > macOS High Sierra Version 10.13.6 > > 2 Which version of GLOBAL are you using? > gtags (GNU GLOBAL) 6.6.2 > > 3 What did you do? (command line) >> >> $ export GTAGSLABEL=native-pygments >> $ export GTAGSCONF=/usr/local/etc/gtags.conf >> $ gtags -v >> [Fri Sep 07 14:22:48 CST 2018] Gtags started. >> Using configuration file '/usr/local/etc/gtags.conf'. >> Using configuration label 'native-pygments'. >> Using plug-in parser. >> [Fri Sep 07 14:22:48 CST 2018] Creating 'GTAGS' and 'GRTAGS'. >> [1] extracting tags of >> OpenRPD/openrpd/rpd_service_suite/service_suite_controller.py >> Traceback (most recent call last): >> File >> "/usr/local/Cellar/global/6.6.2_1/share/gtags/script/pygments_parser.py", >> line 27, in <module> >> import pygments.lexers >> ImportError: No module named pygments.lexers >> gtags: unexpected EOF. > > > 4 What did you expect from it? > This gtags is installed by "brew install global" command, and the dependency > python2 is also installed. > Later, "pip install pygments" was also implemented. > So, I suppose above error should not happened. > > 5 How to fix it? > Just checked file > "/usr/local/Cellar/global/6.6.2_1/share/gtags/script/pygments_parser.py", it > starts with: >> >> #!/usr/bin/python > > Change it to >> >> #!/usr/bin/env python > > Then "gtags -v" can work. > > Because Homebrew installed python into "/usr/local/bin/python", not the > original "/usr/bin/python", so when running "pip install pygments", it refers > to the python that installed by Homebrew. > > _______________________________________________ > Bug-global mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-global -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB _______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global
