Recent

Author Topic: doc (CHM) snapshot updated 2020-12-30  (Read 15137 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: doc (CHM) snapshot updated 2020-12-30
« Reply #30 on: January 18, 2021, 07:35:03 am »
I uploaded a new snapshot (to the url of the first post), but meanwhile Michael committed new patches :-)

The description for the default topic in lazutils.chm has the wrong content It displays the content from lazlistclasses.xml.

That is a parser error on a processing an unit lazlistclasses.pas I know about it.  I even know the line of code when processing which this happens, but no one has yet found why.

Without knowing details, this line looks murky:

  generic TLazFixedRoundBufferListMemBase<TPItemT, TSizeT> = object(specialize TLazRoundBufferListObjBase<TPItemT, TSizeT>)

Andrey Sobol

  • New Member
  • *
  • Posts: 48
Re: doc (CHM) snapshot updated 2020-12-30
« Reply #31 on: January 18, 2021, 07:43:16 am »

Without knowing details, this line looks murky:

  generic TLazFixedRoundBufferListMemBase<TPItemT, TSizeT> = object(specialize TLazRoundBufferListObjBase<TPItemT, TSizeT>)
The full version of that problem...  looks like

>> Fpdoc hanging on exit when it parses such code, I have minimized it.
>>
>> generic TLazFixedRoundBufferListMemBase<TSizeT> = object(specialize
>> TLazBase<TSizeT>)
>>  procedure MoveBytesToOther(AnOther: TLazFixedRoundBufferListMemBase);
>> end;
>>
>> This is happened when the generic TLazFixedRoundBufferListMemBase
>> object uses again itself into a procedure (unit LazListClasses).
>>
>> I tried also a such construction:
>> generic TLazFixedRoundBufferListMemBase<TSizeT> = class (TObject)
>>  procedure MoveBytesToOther(AnOther: TLazFixedRoundBufferListMemBase);
>> end;
>>
>> The result is same, the recursion into the generic template class produces error of fpdoc.
>> I don`t know where is happened. Please, farther organize the process
>> of correcting this yourself.

The strangest thing is that the parser does not say anything
« Last Edit: January 18, 2021, 08:22:58 am by Andrey Sobol »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: doc (CHM) snapshot updated 2020-12-30
« Reply #32 on: January 18, 2021, 09:59:01 am »
The compiler also had heaps of such special cases, Sven had to fix them one by one.

Andrey Sobol

  • New Member
  • *
  • Posts: 48
Re: doc (CHM) snapshot updated 2020-12-30
« Reply #33 on: January 18, 2021, 10:26:09 am »
The compiler also had heaps of such special cases, Sven had to fix them one by one.
Maybe you need to check the error handling also. Someone swallowed the error.

Andrey Sobol

  • New Member
  • *
  • Posts: 48
Re: doc (CHM) snapshot updated 2020-12-30
« Reply #34 on: January 21, 2021, 03:00:12 pm »
News about changes:
1. After that as Matias made some changes inside a parser that I don`t see any errors on a parse process for the lazlistclasses.pas unit (generic templates). Now is missing only one definition:

Code: Pascal  [Select][+][-]
  1. type
  2. TLazPagedListObjParent = specialize TLazPagedListObjBase<Pointer, TLazListClassesVarItemSize>;

2. I found a structure error inside a lazlistclasses.xml. As result of that error a description of the lazlistclasses was placed instead a package description. It is  fixed now.
https://bugs.freepascal.org/view.php?id=38380


The last generated chm`s are here
https://drive.google.com/drive/folders/1ci_GiciVwZei4PTyo_5QE5GLTppszwmI?usp=sharing


 

TinyPortal © 2005-2018