I made a weird discovery.
If I take my first exemple :
------------------------
SourceIfs2.rpgle :
/free
//I type "D" => RDi don't suggest "DisplayHelloWorld"
DisplayHelloWorld();
/end-free
'SourceIfs1.rpgle'
------------------------
If I write this instead, it works :
------------------------
SourceIfs2.rpgle :
/free
//I type "D" => RDi don't suggest "DisplayHelloWorld"
DisplayHelloWorld();
/end-free
//No more '
SourceIfs1.rpgle
------------------------
It seems RDi is allergic to the ' character in the ifs /copy command.
Relative path works very well.
Thank you all.
PS: You might want to know how I organized my projects in the ifs. Feel free to ask. I will happily write a more documented reply.
-----Message d'origine-----
De : wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] De la part de Charles MARTIN
Envoyé : mercredi 4 décembre 2013 14:24
À : Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Objet : Re: [WDSCI-L] Use RDi in the IFS and make autocompletion work
Thorbjørn,
IFS files are different, there is no more datestamp or line number.
My collegues did like it too. Git replace it completely, and they are used to it now.
I suggested them to use the windows client github, which is very user friendly (for easy task), =>
http://windows.github.com/ And SourceTree for more complex task (a more complete client for git) :
http://www.sourcetreeapp.com/
The git blame function will give you informations about who last modified a line of code and when.
-----Message d'origine-----
De : wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] De la part de Thorbjørn Ravn Andersen Envoyé : mercredi 4 décembre 2013 11:18 À : 'Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries'
Objet : Re: [WDSCI-L] Use RDi in the IFS and make autocompletion work
Having used git for a long time I see the benefit.
My colleagues really like the datestamps in the editor, so does your approach preserve these things or is it a full copy every time (and how do you do that?)
/Thorbjørn
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles MARTIN
Sent: 4. december 2013 10:29
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Use RDi in the IFS and make autocompletion work
Gqcy,
First question :
"what did you use for a process to migrate from physical source files to a IFS repository?"
I didn't migrate to physical source to IFS.
New projects are made under my supervision as a software architect.
Which mean they are layered (presentation layer, business logic layer and data layer), and some other stuff.
I tell more in two previous topics on rpg400-l@midrange => First topic :
"RPG - Software Architecture / Best practices" :
http://archive.midrange.com/rpg400-l/201301/msg00368.html
Second topic: "Software Architecture / Best practices -> Debriefing" :
http://archive.midrange.com/rpg400-l/201309/msg00036.html
The point is, I didn't migrate previous projects, they have no meaning in a layered architecture.
All was made from scratch.
Second question :
"isn't there some limitation on what types of objects you can create from IFS source?"
Well, there are some.
The limitation I can think about are:
- compiled objects have to remain in qsys, even if sources are not. This is not trivial, that mean if qsys rules don't apply to the sources (like the 10 character limitation), they apply to the modules, programs, or other service programs I compile.
- Which mean I can create a rpgle source with more than 10 characters, but I will have to rename it at compile time. The module can't keep the name.
- I can have many folder levels in the ifs, but I have to compile everything as modules on the same level with unique names (or on different library, which could be really tricky)
- I can't compile CL in the IFS. (maybe I can now, in 7.1) => I use shell script with qsh instead, which seems more adapted to the IFS to me (+ no need to compile). I could use a makefile script too.
- Beware the ccsid, character transformation happen.
- Some other compilation are not supported from the ifs, like sqlrpgle (or were not until 7.1), so I had to compile source from ifs to qsys as a source inclunding all /copy references, and compile this source as a module. I do that most of the time, the first compilation helps me to know if I have some missing references, and the second if there is something else.
I had to choose some rules to keep everything consistent.
This is it basically.
If you want to know more, tell me.
Charles
-----Message d'origine-----
De : wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] De la part de Gqcy Envoyé : mardi 3 décembre 2013 17:50 À :
wdsci-l@xxxxxxxxxxxx Objet : Re: [WDSCI-L] Use RDi in the IFS and make autocompletion work
On 12/3/2013 10:15 AM, Charles MARTIN wrote:
I put my rpgle sources in the IFS for ages.
There is a lot of benefits.
I can put my sources in a git repository (http://www.git-scm.com/).
I can create files and folders with a long name.
I can organize sources in subfolders, etc.
It is worth it.
Charles,
what did you use for a process to migrate from physical source files to a IFS repository?
isn't there some limitation on what types of objects you can create from IFS source?
--
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:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
--
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:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
--
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:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
--
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:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.