But if I clicked on the Error or Warning line, it went to line 90
This happens because the default warning regular expression is identifying this line:
WARNING -- INTEGER scalar (IRETURN) is set but never used.
as a waring (ie it is green). But the line contains no file or line number information so all Zeus can do is load the file that was compiled. I am not exactly sure why it is going to line 90
But to stop Zeus from doing this all you need to do is stop the line from being identified as a warning. Changing the warning regexp to something like
zzzzz would do the trick
It also when to line 90, when I used previous and next compile error in the tool bar
I could not replicate this error
In an attempt to replicate this bug I ran the following test:
Step 1: Create a dummy
d:\temp\errors.txt file containing the following text:
Code: Select all
Compiling program unit STATCALC at line 4573.
Line 1, file d:\temp\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
Compiling program unit STATCALC at line 4573.
Line 2, file d:\temp\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
Compiling program unit STATCALC at line 4573.
Line 3, file d:\temp\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
Compiling program unit STATCALC at line 4573.
Line 5, file d:\temp\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
WARNING -- INTEGER scalar (IRETURN) is set but never used.
Code: Select all
Compiling program unit STATCALC at line 4573.
Line 1, file e:\dash\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
Compiling program unit STATCALC at line 4573.
Line 2, file e:\dash\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
Compiling program unit STATCALC at line 4573.
Line 3, file e:\dash\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
Compiling program unit STATCALC at line 4573.
Line 5, file e:\dash\dash.f90
call screenmenu('RETURN to Main Menu',iReturn)
|
WARNING -- INTEGER scalar (IRETURN) is set but never used.
Step 2: Create a dummy
d:\temp\dash.f90 file containing at least 6 lines of text.
Step 3: Options, Properties to bring up the document type for the
d:\temp\dash.f90 file.
Step 4: Set the compiler command to be
type d:\temp\errors.txt
Step 5: Setup the line and error regexp as before
Step 6: Set the warnign regexp to
zzzz
When I compile the
d:\temp\dash.f90 I get the compiler screen with the 5 dummy errors. If I then use the next/previous error toobar buttons Zeus quite happily moves between the errors at the lines 1, 2, 3, 4 and 5
Jussi