anjuta-tags for vala language produces bad tags
I'm trying to contribute to vala-based app (Geary mail client), and I'd like to have vala-code navigation. Acc. to vala docs it's provided by anjuta-tags, however running them results in a bad TAGS file.
Steps to reproduce (in terms of terminal commands)
$ mkdir test
$ cd test
$ wget https://gitlab.gnome.org/GNOME/geary/raw/f5933b8b1fc43bbfa82c59efb6559489ada6dc9d/src/engine/rfc822/rfc822-utils.vala
--2019-02-26 00:17:55-- https://gitlab.gnome.org/GNOME/geary/raw/f5933b8b1fc43bbfa82c59efb6559489ada6dc9d/src/engine/rfc822/rfc822-utils.vala
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving gitlab.gnome.org (gitlab.gnome.org)... 209.132.180.181
Connecting to gitlab.gnome.org (gitlab.gnome.org)|209.132.180.181|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16824 (16K) [text/plain]
Saving to: ‘rfc822-utils.vala’
rfc822-utils.vala 100%[===============================================================================================================================>] 16.43K 84.8KB/s in 0.2s
2019-02-26 00:17:57 (84.8 KB/s) - ‘rfc822-utils.vala’ saved [16824/16824]
$ anjuta-tags -Re
$ grep create_utf8_filter_charset TAGS
Expected
public GMime.FilterCharset create_utf8_filter_charset(string? from_charset){create_utf8_filter_charset27,846
(note: parts of the line are separated with non-printable characters that obviously I can't show. But those are set correctly anyway).
Actual
/* Copyright 2016 Software Freedom Conservancy Inc.create_utf8_filter_charset27,0
Note: the are 2 problems:
- First part of the text should be exactly the line where definition was found. Instead it's just an arbitrary string from the beginning of the file
- The number in the end signifies index from the beginning of the file to the place with definition. It's currently
0
.
Version
anjuta 3.28.0