admin管理员组文章数量:1221752
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.
本文标签: visual studio codeWhy won39t the compile actually include my COPY rpgleinc sourceStack Overflow
版权声明:本文标题:visual studio code - Why won't the compile actually include my COPY rpgleinc source? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739370654a2160247.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论