Hi Greg
Every time you make an edit, RDi parses the RPG and creates an in-memory
model that it uses for the outline view and the increasingly rich hovers
and hyperlinks.
If it fails to parse, it will put out an annotation like the one you see
about the missing ENDIF. Since it did not succeed it keeps around the last
successful model for the outline view, hovers etc. That is why your hovers
are off, they are using an out-of-date model.
If the source compiles cleanly then there must be a bug in RDi itself,
there must be something in the source that the parser is not handling. As
far as I know we are handling all ILE RPG constructs, down to the latest
thing that Barbara Morris has written. So the best course of action is to
submit the source to IBM via a PMR so I can fix this.
The only think I can think of is if you have code conditionally compilable
through /if. The parser uses the same defines as the Program Verifier so
doing Ctrl-Shift-V would detect this. The defines are set in the
Preferences>Remote Systems>IBM i>Program Verifiers>ILE RPG>Defines.
Hope this helps,
Edmund
|
|
|Edmund Reinhardt
|
|Rational Developer for i
|Architect
|
|IBM
|p:
| 905 413 3125
|w:
| ibm.biz/rdi_hub e:
| edmund.reinhardt@xxxxxxxxxx
|
From: Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
To: "WDSCI-L@xxxxxxxxxxxx" <WDSCI-L@xxxxxxxxxxxx>
Date: 2018-01-09 02:46 PM
Subject: [WDSCI-L] In-line Syntax issues
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>
Anyone know what causes the in-line syntax checker to go nuts?
I was editing a source member today when I observed two separate issues:
1. The source was marked as if an "endif" was missing - hovering over
the ! character, the message indicated "endif inserted to complete scope"
2. I inserted 3 new lines in the "calc" area... hovering over the
variables actually displayed the properties for a variable 4-5 lines down.
The code compiles and the error still displays... the only way to clear it
is to close the source member and reopen in the editor.
The code is completely free format.
I'm running version 9.5.1.0
Greg
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=VYJZZ3KmcbyiICnEYS5EZMJTZUQh_0w3W9_IDEvmi0I&s=EAam-sudGKRJ4fIf-WQkoOxTqjlu-iCGuRIbHsrzm5Y&e=
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=xVh0JOaBkAaa2_VJvF7mVrroZMIB4ornEW2uKL1r-oM&m=VYJZZ3KmcbyiICnEYS5EZMJTZUQh_0w3W9_IDEvmi0I&s=y4LaEgsOozcFUTn9XzkqVP1kJcp2QqETN1FXj72YKbU&e=
.
As an Amazon Associate we earn from qualifying purchases.