[Pkg-pascal-devel] Bug#858553: Re Bug#858553: [lazarus-doc-1.6] Package lazarus-doc-1.6 is empty and does not ship documentation files

Paul Gevers elbrus at debian.org
Sat Apr 1 19:45:40 UTC 2017


First shot at debugging from my side.

Because the error says:
Exception at 00000000004BDB6C: EDOMError:
EDOMError in DOMDocument.CreateElement.

I searched for "DOMDocument.CreateElement". Low and behold, I find
something interesting in fpcsrc/packages/fcl-xml/src/dom.pp:

function TDOMDocument.CreateElement(const tagName: DOMString): TDOMElement;
begin
  if not IsXmlName(tagName) then
    raise EDOMError.Create(INVALID_CHARACTER_ERR,
'DOMDocument.CreateElement');
  TDOMNode(Result) := Alloc(TDOMElement);

Result.Create(Self);http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=2042
  Result.FNSI.QName := FNames.FindOrAdd(DOMPChar(tagName), Length(tagName));
  Result.AttachDefaultAttrs;
end;

First idea that pops into my mind is: it looks like the source of
lazarus has characters that fp-docs can't convert. Apparently an error
is raised, but converted by fp-docs into exit code 0.

Interesting to note, is the delta between 2.4.6 and 3.0.0:
-  if not IsXmlName(tagName, FXMLVersion = xmlVersion11) then
+  if not IsXmlName(tagName) then
which was done in this commit:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=20422

Sending now as I am about to stop for today, but summary as I currently
suspect the situation is:
1) fp-doc fails to create error exit code during error
2) lazarus may have xml files that need updating.

Probably the next time I spend time on this will be to bisect the
documentation creation to see which file(s) need fixing -> to
potentially solve issue 2 if that is indeed the issue.

Paul


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20170401/b349d52a/attachment.sig>


More information about the Pkg-pascal-devel mailing list