On 12/18/2015 5:02 AM, Thomas Raddatz wrote:
After I updated my RDi to 9.5.0.2 and after I imported the plug-ins, I now have duplicate compile commands.
For example, when I right-click a RPG source member of an I Project and select "Remote Action -> Compile", the compile command window shows 6 entries instead of 4:
CRTBNDRPG
CRTBNDRPG
CRTRPGMOD
CRTRPGMOD
iSphere
iSphere
Does somebody know how to get rid of the duplicates? Delete entry is prohibited for the IBM supplied commands in "Work with Compile Commands".
Wow, I didn't even notice this: I use Ctrl-Shift-C and haven't had to
change the setting yet! Sadly, I've seen this sort of thing before, so
I know where the settings are:
\.metadata\.plugins\org.eclipse.rse.code\profiles\PRF.buck_1021\PS.compilecommand.ibms-qsys_8454607\node.properties
I infer the structure this way:
At the top of the DOM I see 06-child.00025.00-name=RPGLE Under this are
all of the compile options that are to be used with source member type
RPGLE.
At child 4, I see one CRTBNDRPG at line 3214:
06-child.00025.06-child.00004.00-name=CRTBNDRPG0
06-child.00025.06-child.00004.01-type=PropertySet
06-child.00025.06-child.00004.03-attr.description=null
It has a pair of compile commands. One is the default value:
06-child.00025.06-child.00004.06-child.00003.00-name=nature
06-child.00025.06-child.00004.06-child.00003.01-type=Property
06-child.00025.06-child.00004.06-child.00003.03-attr.type=java.lang.String
06-child.00025.06-child.00004.06-child.00003.03-attr.value=IBM defined
06-child.00025.06-child.00004.06-child.00004.00-name=default
06-child.00025.06-child.00004.06-child.00004.01-type=Property
06-child.00025.06-child.00004.06-child.00004.03-attr.type=java.lang.String
06-child.00025.06-child.00004.06-child.00004.03-attr.value=CRTBNDRPG
PGM(&O/&N) SRCFILE(&L/&F) SRCMBR(&N) REPLACE(&R) OPTION(*EVENTF)
DBGVIEW(*SOURCE)
...and one is the current value:
06-child.00025.06-child.00004.06-child.00005.00-name=current
06-child.00025.06-child.00004.06-child.00005.01-type=Property
06-child.00025.06-child.00004.06-child.00005.03-attr.type=java.lang.String
06-child.00025.06-child.00004.06-child.00005.03-attr.value=CRTBNDRPG
PGM(&O/&N) SRCFILE(&L/&F) SRCMBR(&N) REPLACE(&R) OPTION(*EVENTF)
DBGVIEW(*SOURCE)
Which all seems fine. But then I see another configuration further
down, at line 3370. This one has a slightly different name; one I more
or less expect:
06-child.00025.06-child.00008.00-name=CRTBNDRPG
06-child.00025.06-child.00008.01-type=PropertySet
06-child.00025.06-child.00008.03-attr.description=null
I deleted the lines with the odd name (CRTBNDRPG0), that is all of the
lines with 06-child.00025.06-child.00004 in them, and that seemed to
have cured the problem. I also deleted all the other duplicates like
CRTRPGPGM0, and so forth. There's another group of duplicates in the
SQLRPGLE source type.
Several things to remember.
1) Don't edit node.properties with RDi running.
2) Make a copy of node.properties but DO NOT PUT IT IN THE SAME
DIRECTORY. RDi will delete extraneous stuff in that directory!
3) RDi will renumber everything when it starts, so don't be alarmed to
look at node.properties and see that it's different.
4) It's easy to get confused. Take your time and keep notes.
As an Amazon Associate we earn from qualifying purchases.