最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - Why won't the compile actually include my COPY rpgleinc source? - Stack Overflow

programmeradmin0浏览0评论

I am a long-time RPG developer on IBM i, now migrating my development to Visual Studio Code locally with git using the Code for IBM i (v2.14.5) and IBM i Development Pack (v0.2.0) extensions. My ultimate goal is to get bob (Better Object Builder) implemented. So I'm currently in the process of aligning my source to comply with recommended project structure (myprogram.pgm.sqlrpgle, myincludes.rpgleinc, etc.).

Most of this has gone well. Now, I'm running into a rather odd scenario where it seems the left-hand doesn't know what right-hand is doing.

I have an sqlrpgle source, lets call it 'myprogram.pgm.sqlrpgle' located in the qrpglesrc folder in my project. It references 'qcopysrc/myincludes.rpgleinc' with /copy.

Hovering over the path, it pops up: /c:/rootpath/projectname/repofolder/qcopysrc/myincludes.rpgleinc (found) Further down in the myprogram code where it references code from myincludes, hovering over a variable that is defined within myincludes by /copy it pops up: `incVariable char(10) (3 references)

@file file:///c%3A/rootpath/projectname/repofolder/qcopysrc/myincludes.rpgleinc:24 `

At this point everything looks great.

Then I choose Run Action --> Create SQLRPGLE Program I choose Compare (Synchronizes using MD5 hash comparison) It begins deploying the tarball and performs the compile.

The compile fails due to variables that are declared in the include file not being defined. In the compile listing it "attempted" to bring in the /copy include file, but didn't actually include its contents.

 49  /Copy 'qcopysrc/myincludes.rpgleinc'                                                                                000049
     *--------------------------------------------------------------------------------------------*
     * RPG member name  . . . . . :  myinclude+                                                   *                     1
     * External name  . . . . . . :  ./qcopysrc/myincludes.rpgleinc                               *                     1
     * Last change  . . . . . . . :  02/03/25  19:38:11                                           *                     1

I don't know what I'm missing as far as configuration setup. What am I missing?

I'm expecting to have a clean compile with the /copy file included into the program so that it has the variable definitions present as referenced later in the program source.

发布评论

评论列表(0)

  1. 暂无评论