After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783481 - Fail to build anjuta with gtk-doc enabled using gtk-doc git master
Fail to build anjuta with gtk-doc enabled using gtk-doc git master
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: documentation
git master
Other FreeBSD
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-06 14:24 UTC by Ting-Wei Lan
Modified: 2017-06-08 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
manuals: Remove extra - symbols before = (1.40 KB, patch)
2017-06-06 14:28 UTC, Ting-Wei Lan
none Details | Review

Description Ting-Wei Lan 2017-06-06 14:24:04 UTC
It seems that manuals/reference/libanjuta/writing-plugins.sgml puts extra '-' symbols before '=' in attributes of <link> elements in 'Hello World advanced plugin' section, causing gtkdoc-fixxref to crash.

  DOC   Fixing cross-references
Traceback (most recent call last):
  • File "/home/lantw44/gnome/devinstall/bin/gtkdoc-fixxref", line 59 in <module>
    fixxref.Run(options)
  • File "/home/lantw44/gnome/devinstall/share/gtk-doc/python/gtkdoc/fixxref.py", line 113 in Run
    FixCrossReferences(options)
  • File "/home/lantw44/gnome/devinstall/share/gtk-doc/python/gtkdoc/fixxref.py", line 216 in FixCrossReferences
    FixHTMLFile(options, full_entry)
  • File "/home/lantw44/gnome/devinstall/share/gtk-doc/python/gtkdoc/fixxref.py", line 260 in FixHTMLFile
    lines[i] = re.sub(r'<GTKDOCLINK\s+HREF="([^"]*)"\s*>(.*?)</GTKDOCLINK\s*>', repl_func_with_ix(i), lines[i])
  • File "/usr/local/lib/python2.7/re.py", line 155 in sub
    return _compile(pattern, flags).sub(repl, string, count)
  • File "/home/lantw44/gnome/devinstall/share/gtk-doc/python/gtkdoc/fixxref.py", line 256 in repl_func
    return MakeXRef(options, file, i + 1, m.group(1), m.group(2))
  • File "/home/lantw44/gnome/devinstall/share/gtk-doc/python/gtkdoc/fixxref.py", line 312 in MakeXRef
    if re.search(r' class=\"type\"', text) and id[0].islower():
IndexError: string index out of range

Comment 1 Ting-Wei Lan 2017-06-06 14:27:04 UTC
I added gtk-doc maintainers to CC list, so they can be aware of the crash.
Comment 2 Ting-Wei Lan 2017-06-06 14:28:57 UTC
Created attachment 353263 [details] [review]
manuals: Remove extra - symbols before =
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2017-06-07 08:16:40 UTC
Comment on attachment 353263 [details] [review]
manuals: Remove extra - symbols before =

+1 The '-' should be removed that is not valid XML.
Comment 4 Sébastien Granjoux 2017-06-08 20:42:31 UTC
Comment on attachment 353263 [details] [review]
manuals: Remove extra - symbols before =

It's like that since a long time. Thank you for finding and fixing this error. I have just committed your patch in the master branch.