Closed kaspervanderhulst closed 2 weeks ago
Try running so --verbose
and share the logs here. That might show off some more detail!
PS C:\Users\kvhu\Documents\Klanten\Van opstal\rpg-backend\van-opstal-magazijn> so --verbose
VOKLATB.FILE: QDDLSRC\voklatb.table
VOKLAV1.FILE: QDDLSRC\VOKLAV1_KLANTEN_BENL.view
QDDLSRC\VOKLAV1_KLANTEN_BENL.view - No object found for reference 'voklapf'
Depends on: VOKLATB.FILE
VOKLAV2.FILE: QDDLSRC\VOKLAV2_KLANTEN_NL.view
QDDLSRC\VOKLAV2_KLANTEN_NL.view - No object found for reference 'voklapf'
VOKLLV1.FILE: QDDLSRC\VOKLLV1.SQL
QDDLSRC\VOKLLV1.SQL - No object found for reference 'vokllpf'
QDDLSRC\VOKLLV1.SQL - Failed to parse file.
QDDLSRC\VOKLLV1.SQL
TypeError: Cannot read properties of undefined (reading '0')
at E (C:\Users\kvhu\npm-global\node_modules\@ibm\sourceorbit\dist\index.js:3:89240)
at t.Targets.createSqlTargets (C:\Users\kvhu\npm-global\node_modules\@ibm\sourceorbit\dist\index.js:3:100578)
at t.Targets.parseFile (C:\Users\kvhu\npm-global\node_modules\@ibm\sourceorbit\dist\index.js:3:93416)
at async C:\Users\kvhu\npm-global\node_modules\@ibm\sourceorbit\dist\index.js:3:84692
[ERROR] Report this issue to us with an example: github.com/IBM/sourceorbit/issues
VOORATB.FILE: QDDLSRC\vooratb.table
VOORKTB.FILE: QDDLSRC\voorktb.table
VOORKV1.FILE: QDDLSRC\VOORKV1_ORDERS_PICKING_ALL.view
QDDLSRC\VOORKV1_ORDERS_PICKING_ALL.view - No object found for reference 'votwzpf'
Depends on: VOORKTB.FILE VOORATB.FILE VOORTTB.FILE VOKLAV1.FILE
VOORKV2.FILE: QDDLSRC\VOORKV2_ORDERS_PICKING_BE.view
QDDLSRC\VOORKV2_ORDERS_PICKING_BE.view - No object found for reference 'votwzpf'
Depends on: VOORKTB.FILE VOORATB.FILE VOORTTB.FILE VOKLATB.FILE
VOORKV3.FILE: QDDLSRC\VOORKV3_ORDERS_PICKING_NL.view
QDDLSRC\VOORKV3_ORDERS_PICKING_NL.view - No object found for reference 'votwzpf'
Depends on: VOORKTB.FILE VOORATB.FILE VOORTTB.FILE VOKLAV2.FILE
VOORTTB.FILE: QDDLSRC\voorttb.table
APIERR01S.MODULE: QRPGLEMOD\apierr01s.rpgle
QRPGLEMOD\apierr01s.rpgle:20 - Include at line 20 found, to path 'QPROTO/apierr01s.rpgleinc'
QRPGLEMOD\apierr01s.rpgle:19 - Include at line 19 found, to path 'QPROTO/apival01s.rpgleinc'
APIUTL01S.MODULE: QRPGLEMOD\apiutl01s.sqlrpgle
QRPGLEMOD\apiutl01s.sqlrpgle:22 - Include at line 22 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\apiutl01s.sqlrpgle:21 - Include at line 21 found, to path 'QPROTO/apiutl01s.rpgleinc'
APIVAL01S.MODULE: QRPGLEMOD\apival01s.rpgle
QRPGLEMOD\apival01s.rpgle:26 - Include at line 26 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\apival01s.rpgle:25 - Include at line 25 found, to path 'QPROTO/apierr01s.rpgleinc'
QRPGLEMOD\apival01s.rpgle:24 - Include at line 24 found, to path 'QPROTO/apival05s.rpgleinc'
QRPGLEMOD\apival01s.rpgle:23 - Include at line 23 found, to path 'QPROTO/apival04s.rpgleinc'
QRPGLEMOD\apival01s.rpgle:22 - Include at line 22 found, to path 'QPROTO/apival03s.rpgleinc'
QRPGLEMOD\apival01s.rpgle:21 - Include at line 21 found, to path 'QPROTO/apival02s.rpgleinc'
QRPGLEMOD\apival01s.rpgle:20 - Include at line 20 found, to path 'QPROTO/apival01s.rpgleinc'
QRPGLEMOD\apival01s.rpgle - has the BNDDIR keyword. 'binders' property in iproj.json should be used instead.
APIVAL02S.MODULE: QRPGLEMOD\apival02s.sqlrpgle
QRPGLEMOD\apival02s.sqlrpgle:21 - Include at line 21 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\apival02s.sqlrpgle:20 - Include at line 20 found, to path 'QPROTO/apival02s.rpgleinc'
QRPGLEMOD\apival02s.sqlrpgle:19 - Include at line 19 found, to path 'QPROTO/apival01s.rpgleinc'
APIVAL03S.MODULE: QRPGLEMOD\apival03s.sqlrpgle
QRPGLEMOD\apival03s.sqlrpgle:21 - Include at line 21 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\apival03s.sqlrpgle:20 - Include at line 20 found, to path 'QPROTO/apival03s.rpgleinc'
QRPGLEMOD\apival03s.sqlrpgle:19 - Include at line 19 found, to path 'QPROTO/apival01s.rpgleinc'
APIVAL04S.MODULE: QRPGLEMOD\apival04s.sqlrpgle
QRPGLEMOD\apival04s.sqlrpgle:21 - Include at line 21 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\apival04s.sqlrpgle:20 - Include at line 20 found, to path 'QPROTO/apival04s.rpgleinc'
QRPGLEMOD\apival04s.sqlrpgle:19 - Include at line 19 found, to path 'QPROTO/apival01s.rpgleinc'
APIVAL05S.MODULE: QRPGLEMOD\apival05s.sqlrpgle
QRPGLEMOD\apival05s.sqlrpgle:21 - Include at line 21 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\apival05s.sqlrpgle:20 - Include at line 20 found, to path 'QPROTO/apival05s.rpgleinc'
QRPGLEMOD\apival05s.sqlrpgle:19 - Include at line 19 found, to path 'QPROTO/apival01s.rpgleinc'
LSTVER01S.MODULE: QRPGLEMOD\lstver01s.sqlrpgle
QRPGLEMOD\lstver01s.sqlrpgle:25 - Include at line 25 found, to path 'QPROTO/http_h.rpgleinc'
QRPGLEMOD\lstver01s.sqlrpgle:24 - Include at line 24 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\lstver01s.sqlrpgle:23 - Include at line 23 found, to path 'QPROTO/apiutl01s.rpgleinc'
QRPGLEMOD\lstver01s.sqlrpgle:22 - Include at line 22 found, to path 'QPROTO/lstver01s.rpgleinc'
QRPGLEMOD\lstver01s.sqlrpgle - has the BNDDIR keyword. 'binders' property in iproj.json should be used instead.
QRPGLEMOD\lstver01s.sqlrpgle:42 - No object found for reference 'VOVERPF'
ORDCON01S.MODULE: QRPGLEMOD\ordcon01s.sqlrpgle
QRPGLEMOD\ordcon01s.sqlrpgle:28 - Include at line 28 found, to path 'QPROTO/http_h.rpgleinc'
QRPGLEMOD\ordcon01s.sqlrpgle:27 - Include at line 27 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\ordcon01s.sqlrpgle:26 - Include at line 26 found, to path 'QPROTO/apival01s.rpgleinc'
QRPGLEMOD\ordcon01s.sqlrpgle:25 - Include at line 25 found, to path 'QPROTO/apiutl01s.rpgleinc'
QRPGLEMOD\ordcon01s.sqlrpgle:24 - Include at line 24 found, to path 'QPROTO/ordcon01s.rpgleinc'
QRPGLEMOD\ordcon01s.sqlrpgle - has the BNDDIR keyword. 'binders' property in iproj.json should be used instead.
ORDPCK01S.MODULE: QRPGLEMOD\ordpck01s.sqlrpgle
QRPGLEMOD\ordpck01s.sqlrpgle:28 - Include at line 28 found, to path 'QPROTO/http_h.rpgleinc'
QRPGLEMOD\ordpck01s.sqlrpgle:27 - Include at line 27 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\ordpck01s.sqlrpgle:26 - Include at line 26 found, to path 'QPROTO/apival01s.rpgleinc'
QRPGLEMOD\ordpck01s.sqlrpgle:25 - Include at line 25 found, to path 'QPROTO/apiutl01s.rpgleinc'
QRPGLEMOD\ordpck01s.sqlrpgle:24 - Include at line 24 found, to path 'QPROTO/ordpck01s.rpgleinc'
QRPGLEMOD\ordpck01s.sqlrpgle - has the BNDDIR keyword. 'binders' property in iproj.json should be used instead.
ORDPCK02S.MODULE: QRPGLEMOD\ordpck02s.sqlrpgle
QRPGLEMOD\ordpck02s.sqlrpgle:25 - Include at line 25 found, to path 'QPROTO/http_h.rpgleinc'
QRPGLEMOD\ordpck02s.sqlrpgle:24 - Include at line 24 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\ordpck02s.sqlrpgle:23 - Include at line 23 found, to path 'QPROTO/apival01s.rpgleinc'
QRPGLEMOD\ordpck02s.sqlrpgle:22 - Include at line 22 found, to path 'QPROTO/apiutl01s.rpgleinc'
QRPGLEMOD\ordpck02s.sqlrpgle:21 - Include at line 21 found, to path 'QPROTO/ordpck02s.rpgleinc'
QRPGLEMOD\ordpck02s.sqlrpgle - has the BNDDIR keyword. 'binders' property in iproj.json should be used instead.
ORDPCK03S.MODULE: QRPGLEMOD\ordpck03s.sqlrpgle
QRPGLEMOD\ordpck03s.sqlrpgle:28 - Include at line 28 found, to path 'QPROTO/http_h.rpgleinc'
QRPGLEMOD\ordpck03s.sqlrpgle:27 - Include at line 27 found, to path 'QPROTO/sql_h.rpgleinc'
QRPGLEMOD\ordpck03s.sqlrpgle:26 - Include at line 26 found, to path 'QPROTO/apiutl01s.rpgleinc'
QRPGLEMOD\ordpck03s.sqlrpgle:25 - Include at line 25 found, to path 'QPROTO/ordpck03s.rpgleinc'
QRPGLEMOD\ordpck03s.sqlrpgle:67 - No object found for reference 'VOTWZL1'
QRPGLEMOD\ordpck03s.sqlrpgle:72 - No object found for reference 'VOTWZL1'
QRPGLEMOD\ordpck03s.sqlrpgle:76 - No object found for reference 'VOTWZL1'
QRPGLEMOD\ordpck03s.sqlrpgle:104 - No object found for reference 'VOMAGPF'
QRPGLEMOD\ordpck03s.sqlrpgle:117 - No object found for reference 'VOTWZPF'
QRPGLEMOD\ordpck03s.sqlrpgle:137 - No object found for reference 'VOORKLF'
TEST.PGM: QRPGLESRC\test.pgm.rpgle
VOKLATB.FILE: QSQLSRC\voklatb.table
VOORATB.FILE: QSQLSRC\vooratb.table
VOORKTB.FILE: QSQLSRC\voorktb.table
VOORTTB.FILE: QSQLSRC\voorttb.table
Resolving modules for APIERR01S.SRVPGM
QSRVSRC\apierr01s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for APIUTL01S.SRVPGM
QSRVSRC\apiutl01s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for APIVAL01S.SRVPGM
QSRVSRC\apival01s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for APIVAL02S.SRVPGM
QSRVSRC\apival02s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for APIVAL03S.SRVPGM
QSRVSRC\apival03s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for APIVAL04S.SRVPGM
QSRVSRC\apival04s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for APIVAL05S.SRVPGM
QSRVSRC\apival05s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for LSTVER01S.SRVPGM
QSRVSRC\lstver01s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for ORDCON01S.SRVPGM
QSRVSRC\ordcon01s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for ORDPCK01S.SRVPGM
QSRVSRC\ordpck01s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for ORDPCK02S.SRVPGM
QSRVSRC\ordpck02s.bnd - Removed as target because no modules were found with matching exports.
Resolving modules for ORDPCK03S.SRVPGM
QSRVSRC\ordpck03s.bnd - Removed as target because no modules were found with matching exports.
I'm guessing this is because of the last lines? These are the sources in my QRPGLEMOD for my service programs. I did use the Automatic rename when migrating the sources
I'm guessing this is because of the last lines? These are the sources in my QRPGLEMOD for my service programs. I did use the Automatic rename when migrating the sources
That's not it. The names look ok!
To me, it seems like the binder source cannot find the exports from the modules. Do the module have exported procedures for sure?
Right is the .bnd source and left is the module source. This is one of the service programs in the project
I have changed these /copys to include the entire ifs path instead of just /QPROTO/.... but still the same result
@kaspervanderhulst Next, are you able to share so --bf json
and share the file here? That should list all the exports that it found and help me connect the dots. Thanks!
Hi @worksofliam, answering for my colleague here! :) Please find attached the requested JSON output file sourceorbit.json
Kind regards
@EASI-JHEI I think I see a bug. Are you able to share the QRPGLEMOD/apival01s.rpgle
source with me? I think I found a bug but I will need to recreate it. You're welcome to email me: liama@<whoiworkforacronym>.com
@worksofliam I've sent you a mail containing the service program!
@kaspervanderhulst Based on the source code that has been shared with me, I do believe there to be a bug. I will try and get a fix for you today.
@worksofliam Do you have any updates? :)
@kaspervanderhulst Sorry about the delay. I haven't had much time this week. But, I will try and get to it on Monday or Tuesday.
@kaspervanderhulst I think I found the source of the bug. I need to make a test case for it and maybe there will be a fix out today.
@kaspervanderhulst @EASI-JHEI I have just published SO 0.11.1 on npm. Please update and run it again!
Please re-open if the issue continues. Thanks!
I still seem to have problems. I have updated source orbit to the latest version, both on my IBM i system & my local system. But I am still having the same problem as before, where it seems like It is not recognizing the service programs and is not compiling them
@kaspervanderhulst Please share a newly generated JSON build file to see if I can spot any changes. Thanks!
so --bf json
I'm actually having trouble running this command with the newest version to generate the JSON on my local machine. I have the package installed globally as version 0.11.1. when running the so -bf json command, I'm getting this error: SO_error_0.11.1.txt
I've tried to downgrade the package to 0.11.0 where I don't seem to have this problem. Thanks for all your help :)
@kaspervanderhulst That's related to your specific issue for sure! It's coming to the point where I am going to need more sources from you. Are you able to share VOKLLV1.SQL
and any files that depend on it? Please feel free to use the same email.
I've sent an email with all requested info!
@kaspervanderhulst One last thing - I also need any files that depend on / use VOKLLV1.SQL
! Thanks
I can't seem to locate any files in the project that use VOKLLV1.SQL
Finally a fix is going to come out with 0.11.2. Sorry for the wait.
Hi, I am having issues trying to compile service programs in my project using source orbit. Normal programs seem to work, but the compile seems to completely skip my service programs.
The steps i used to set this up are as follows:
These steps all worked without any issues. But now when i try to compile the project using 'Build entire project with source orbiter' in visual studio code, my service programs seem to not get compiled. I have tried with both Build entire project & Build current but both seem to not work. I have also tried to run the so -bf make & gmake commands in bash but still no luck.
This is my output when running the build entire project using source orbiter:
As you can see my regular program is build, but my service programs (programs located in QRPGLEMOD) are not built.
makefile:
Let me know if any additional info is required!