Re: [fpc-devel] FPDoc improvements

2012-01-29 Thread Graeme Geldenhuys
On 28 January 2012 15:08, Michael Van Canneyt wrote: > But if I tell you that order matters, please be so kind to assume that I > know what I'm talking about: Michael, maybe this "difference of opinion" can be resolved if you post your example of the 2 units the reproduces the error (like you me

Re: [fpc-devel] FPDoc improvements

2012-01-29 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: Well, you have the sources, you can look up the actual implementation. Then you would see that: Please don't confuse syntax and semantics. Reading source code reveals only *what* is done, but not *why* it's done, and what are the consequences. * The fpdoc engin

Re: [fpc-devel] FPDoc improvements

2012-01-29 Thread Michael Van Canneyt
On Sun, 29 Jan 2012, Hans-Peter Diettrich wrote: Marco van de Voort schrieb: In our previous episode, Michael Van Canneyt said: The question you asked: "How is that related to documentation and the order of input files?" I've the feeling that Dodi assumes all references are fully qualifie

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Marco van de Voort schrieb: In our previous episode, Michael Van Canneyt said: The question you asked: "How is that related to documentation and the order of input files?" I've the feeling that Dodi assumes all references are fully qualified and not just the inter-package ones? No. I'm fami

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Michael Van Canneyt
On Sat, 28 Jan 2012, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: The question you asked: "How is that related to documentation and the order of input files?" I've the feeling that Dodi assumes all references are fully qualified and not just the inter-packag

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > The question you asked: > > "How is that related to documentation and the order of input files?" I've the feeling that Dodi assumes all references are fully qualified and not just the inter-package ones?

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Michael Van Canneyt
On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: I still don't understand this requirement, and how documentation writers should establish the correct order :-( Simple. The same order as the compiler uses: it

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: I still don't understand this requirement, and how documentation writers should establish the correct order :-( Simple. The same order as the compiler uses: it is 100% determined by the uses clause. How is that

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Michael Van Canneyt
On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: should first document dependent units. It currently does not know how to do

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: should first document dependent units. It currently does not know how to do this by itself. Again, what are you talking about?

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Sven Barth
On 28.01.2012 12:59, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: Otherwise funny things will happen with duplicate identifiers. I know. The problem will get only worse with nested type declarations, which are next on my todo list. One more problem introduced by uneducated Delph

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: The LCL documentation build sorts the units alphabetically, and this also seems to work. Of course it produces documentation, but cross-links can and will fail because the correct target is not found. For cross-links to be correct, the order must be correct. P

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: Otherwise funny things will happen with duplicate identifiers. I know. The problem will get only worse with nested type declarations, which are next on my todo list. One more problem introduced by uneducated Delphi developers. Must FPC really follow all these a

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Marco van de Voort schrieb: In our previous episode, Michael Van Canneyt said: Meanwhile I have a simple example using 2 units floating around somewhere. It took me lots of time to find it, but now I know where the cause is. Solving it is another matter entirely. I've been thinking about it, a

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Michael Van Canneyt
On Sat, 28 Jan 2012, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: should first document dependent units. It currently does not know how to do this by itself. Again, what are you talking about? FPDoc doesn't require a spec

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: should first document dependent units. It currently does not know how to do this by itself. Again, what are you talking about? FPDoc doesn't require a special order of input files, neither source nor documen

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Hans-Peter Diettrich
Marco van de Voort schrieb: In our previous episode, Mattias Gaertner said: [...] For the --input-dir there is an extra reason: the order of files is important. Just like in the compiler, which must compile dependent units first, fpdoc should first document dependent units. It currently does no

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Michael Van Canneyt
On Sat, 28 Jan 2012, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Meanwhile I have a simple example using 2 units floating around somewhere. It took me lots of time to find it, but now I know where the cause is. Solving it is another matter entirely. I've bee

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > Meanwhile I have a simple example using 2 units floating around somewhere. > It took me lots of time to find it, but now I know where the cause is. > Solving it is another matter entirely. I've been thinking about it, and following the compilers

Re: [fpc-devel] FPDoc improvements

2012-01-28 Thread Michael Van Canneyt
On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: Again, what are you talking about? FPDoc doesn't require a special order of input files, neither source nor documentation files :-) It does, see the explanation of Marco. Then I wonder how I ever could g

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: Again, what are you talking about? FPDoc doesn't require a special order of input files, neither source nor documentation files :-) It does, see the explanation of Marco. Then I wonder how I ever could generate the documentation for a single unit? The LCL

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread michael . vancanneyt
On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: should first document dependent units. It currently does not know how to do this by itself. Again, what are you talking about? FPDoc doesn't require a special order of input files, neither source nor documentation files :-) It does, see the

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > >[...] > > For the --input-dir there is an extra reason: the order of files is > > important. > > Just like in the compiler, which must compile dependent units first, fpdoc > > should first document dependent units. It currently does not know how

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread Mattias Gaertner
On Fri, 27 Jan 2012 09:41:42 +0100 (CET) michael.vancann...@wisa.be wrote: >[...] > For the --input-dir there is an extra reason: the order of files is important. > Just like in the compiler, which must compile dependent units first, fpdoc > should first document dependent units. It currently does

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread Marco van de Voort
In our previous episode, Hans-Peter Diettrich said: > > For the --input-dir there is an extra reason: the order of files is > > important. > > Just like in the compiler, which must compile dependent units first, fpdoc > > should first document dependent units. It currently does not know how to >

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: As I said before: Neither --input-dir nor --descr-dir will be put in the fpdoc implementation. What are you talking about? They are already in fpdoc :-) I don't see the problem of having to specify all files that are part of the project explicitly. Make

Re: [fpc-devel] FPDoc improvements

2012-01-27 Thread michael . vancanneyt
On Fri, 27 Jan 2012, Hans-Peter Diettrich wrote: Unfortunately I managed to supply the EasyImports.patch twice, please drop Mantis #21168 as a dupe of #21167. Sorry for the inconvenience :-( Thank you. I will look at it. Starting with this patch I suggest further improvements of fpdoc. Exce

[fpc-devel] FPDoc improvements

2012-01-26 Thread Hans-Peter Diettrich
Unfortunately I managed to supply the EasyImports.patch twice, please drop Mantis #21168 as a dupe of #21167. Sorry for the inconvenience :-( Starting with this patch I suggest further improvements of fpdoc. Except for the RTL docs, which require a couple of special compiler options for every

Re: [fpc-devel] FPDoc improvements

2011-11-30 Thread michael . vancanneyt
On Wed, 30 Nov 2011, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: That would conflict with the GUI TApplication instance, so I really don't see the point of this exercise. Then another error in the logic exists: CreateDocumentation should be a method of TFPDocProject, not of T

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: That would conflict with the GUI TApplication instance, so I really don't see the point of this exercise. Then another error in the logic exists: CreateDocumentation should be a method of TFPDocProject, not of TFPDocAplication. Why ? TFPDocProject is just storag

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Michael Van Canneyt
On Tue, 29 Nov 2011, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: When this were the *only* code in the fpdoc program file, another project could create a derived class, with a possibly specialized Run method, without touching the declaration or implementation of TFPDocAp

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Graeme Geldenhuys
On 29/11/2011, Sven Barth wrote: > > You could try the Jedi Code Formatter included with Lazarus. I've never > tested it myself, because it is the first thing I disable when That copy of JCF is bugy. Rather use the original version available for download on SourceForge, from the JCF project. Also

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Sven Barth
On 29.11.2011 13:11, Hans-Peter Diettrich wrote: I'm even trying to concentrate as good as possible to adhere to the style used there, Where's the code formatter, that would eliminate all such discussions? You could try the Jedi Code Formatter included with Lazarus. I've never tested it myse

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: When this were the *only* code in the fpdoc program file, another project could create a derived class, with a possibly specialized Run method, without touching the declaration or implementation of TFPDocApplication. That would conflict with the GUI TAppli

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Tue, 29 Nov 2011, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: begin With TFPDocAplication.Create(Nil) do try Run; finally Free; end; end. When this were the *only* code in the fpdoc program file, another project could create a derived class, with

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Tue, 29 Nov 2011, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: A "make -n rtl.chk > test.txt" succeeded, at least. Now I suspect some Windows or RTL commandline limitations, which seem to truncate the long command lines created by the scripts (4890 chars for rtl.chk).

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
Tomas Hajny schrieb: The current limit of the default MS Windows shell is 8 kB according to information found on Microsoft pages (among others). Are those 4890 characters mentioned above Unicode (UTF-16) characters (thus breaking the limit)? Anyway, it might be possible to use a different comman

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
Sven Barth schrieb: I'm not a huge fan of the style used in the compiler, but am I complaining? Did I? I'm even trying to concentrate as good as possible to adhere to the style used there, Where's the code formatter, that would eliminate all such discussions? so that the changes I want to

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: 2. Try to separate things. You coded a change in package selection handling, please don't mix this with the change for writing a package file. It makes it more difficult to debug when bugs arise. How can I create patches for different topics, when the whole

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: A "make -n rtl.chk > test.txt" succeeded, at least. Now I suspect some Windows or RTL commandline limitations, which seem to truncate the long command lines created by the scripts (4890 chars for rtl.chk). This is a problem of windows, yes. Argh :-( Try

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Tue, 29 Nov 2011, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: INF or HTML), and replaced them with simple command line programs that can be compiled from: fpc somecoolutitility.pas You then have TProcess, the whole RTL and FCL at your disposal. MUC

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: > > INF or HTML), and replaced them with simple command line programs that > > can be compiled from: fpc somecoolutitility.pas > > > > You then have TProcess, the whole RTL and FCL at your disposal. MUCH > > more powerful than scripts or ma

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Sven Barth
Am 29.11.2011 12:18, schrieb michael.vancann...@wisa.be: On Tue, 29 Nov 2011, Graeme Geldenhuys wrote: On 29/11/2011, Hans-Peter Diettrich wrote: A "make -n rtl.chk > test.txt" succeeded, at least. Now I suspect some Windows or RTL commandline limitations, which seem to truncate the long c

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Tue, 29 Nov 2011, Graeme Geldenhuys wrote: On 29/11/2011, Hans-Peter Diettrich wrote: A "make -n rtl.chk > test.txt" succeeded, at least. Now I suspect some Windows or RTL commandline limitations, which seem to truncate the long command lines created by the scripts (4890 chars for rtl.ch

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Graeme Geldenhuys
On 29/11/2011, Hans-Peter Diettrich wrote: > > A "make -n rtl.chk > test.txt" succeeded, at least. Now I suspect some > Windows or RTL commandline limitations, which seem to truncate the long > command lines created by the scripts (4890 chars for rtl.chk). Does this limitation apply when using T

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Tomas Hajny
On Tue, November 29, 2011 10:42, michael.vancann...@wisa.be wrote: > On Tue, 29 Nov 2011, Hans-Peter Diettrich wrote: >> Hans-Peter Diettrich schrieb: >> >>> Unfortunately there remain some problems, e.g. the FPC documentation >>> cannot >>> be created on Windows, what is one reason for the extende

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Tue, 29 Nov 2011, Hans-Peter Diettrich wrote: michael.vancann...@wisa.be schrieb: On Mon, 28 Nov 2011, Hans-Peter Diettrich wrote: I just implemented and option to create an XML project from the commandline arguments. This should allow to create projects from the scripts and Makefiles

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Sven Barth
Am 29.11.2011 11:09, schrieb Hans-Peter Diettrich: michael.vancann...@wisa.be schrieb: On Mon, 28 Nov 2011, Hans-Peter Diettrich wrote: I just implemented and option to create an XML project from the commandline arguments. This should allow to create projects from the scripts and Makefiles,

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: On Mon, 28 Nov 2011, Hans-Peter Diettrich wrote: I just implemented and option to create an XML project from the commandline arguments. This should allow to create projects from the scripts and Makefiles, used to build the documentation for the standard l

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Tue, 29 Nov 2011, Hans-Peter Diettrich wrote: Hans-Peter Diettrich schrieb: Unfortunately there remain some problems, e.g. the FPC documentation cannot be created on Windows, what is one reason for the extended project option, but doesn't allow me to debug this feature with real life pro

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread Hans-Peter Diettrich
Hans-Peter Diettrich schrieb: Unfortunately there remain some problems, e.g. the FPC documentation cannot be created on Windows, what is one reason for the extended project option, but doesn't allow me to debug this feature with real life projects (RTL...). A "make -n rtl.chk > test.txt" suc

Re: [fpc-devel] FPDoc improvements

2011-11-29 Thread michael . vancanneyt
On Mon, 28 Nov 2011, Hans-Peter Diettrich wrote: I just implemented and option to create an XML project from the commandline arguments. This should allow to create projects from the scripts and Makefiles, used to build the documentation for the standard libraries. See Mantis #20769. I had

[fpc-devel] FPDoc improvements

2011-11-28 Thread Hans-Peter Diettrich
I just implemented and option to create an XML project from the commandline arguments. This should allow to create projects from the scripts and Makefiles, used to build the documentation for the standard libraries. See Mantis #20769. Unfortunately there remain some problems, e.g. the FPC docu