On 13 Aug 2004 at 14:34, Ian Miller wrote:
Hi,
I know this isn't strictly a GPC question, but I thought someone here might be able to help with this:
I recently installed the following version of Dev Pascal from gnu-pascal.de, under Windows XP:-
Dev+GNU Pascal 1.94.2 + GPC 20040516 + Mingw runtimes + GCC support files (9.8mb: Win32 GUI self-extracting installer; 29 May 2004)
The problem I am getting is that I am not able to click on compilation error message in the Compiler window at the bottom to take me to the corresponding line in the source.
Yep, that is sometimes a hit and miss affair :-(. See below ...
Also, sometimes, error message produced by the compiler are not even reproduced in the Compiler window.
I suspect that this is because the IDE is not correctly parsing the compiler output and so does not actually know the location of the error.
Yes. The difficulty is that the compiler error messages often run into several lines, many of which are part of the same error. It sometimes gets a bit difficult to do something with them in the IDE.
e.g. here is a Compiler window output with errors:
Line/ ... | Unit | Message | f | Project2.pas:3: (Each undeclared identifier is reported only once | f | Project2.pas:3: for each routine it appears in.) | f | Project2.pas:3: undeclared identifier `y' (first use in this routine) | f | Project2.pas:5: syntax error before `:'
As you can see, the line number of the error is clearly visible in the Message column, but not in the Line column!
Yep.
(This was for compiling a console application, btw).
Of course, this isn't much of a problem to a seasoned programmer, however, I would like to use this IDE for a college course teaching Pascal to complete beginners and so it would be extremely useful if this feature worked properly.
So far, this has been the best that I could do with it. The code was inherited from other people, and was originally written for the FreePascal compiler. It has been a major effort to get it to this stage. The problem you highlight has not been one of my major priorities in porting the IDE to support GPC, and I am still trying to understand what many parts of the original code are actually trying to do, and why they were implemented that way. I could of course do with some help in improving this code even further. The source code is available on the same page as the binaries, and you are welcome to help improve it ;)
If you send me a copy of the code that produces these lines that you have referred to, perhaps I could give this issue some more attention ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/