[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output
From: |
Jason Hood |
Subject: |
Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output (C language) function names into GTAGS |
Date: |
Sat, 11 Mar 2017 12:46:48 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
On 9/03/2017 23:16, ishigane wrote:
> When run "gtags" with "--gtagslabel=pygments" option, GTAGS file don't have
> any function names.
> CTagsParser (at "share/gtags/script/pygments_parser.py") failed to
> initialize, gtags only use pygments.
I can confirm this occurs with Win7 and Python 3.4.
> if p.wait() == 0:
> path = p.stdout.readline().rstrip()
> + if sys.version_info >= (3, ):
> + path = path.decode()
I would suggest indenting the new lines, since there's no need to do it for the
empty string. Should probably also add "encoding='latin1'" to match what's
used elsewhere, but it's doubtful the command would be anything other than
ASCII, anyway.
--
Jason.
Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output (C language) function names into GTAGS,
Jason Hood <=