IBM / ibmi-bob

A build system for creating IBM i-native objects using GNU Make.
https://ibm.github.io/ibmi-bob
Apache License 2.0
48 stars 21 forks source link

EVFEVENT file - has QTEMP/QSOURCE in path. #280

Open JDubbTX opened 11 months ago

JDubbTX commented 11 months ago

I was again trying local development in code-4-i with BOB actions.

When attempting to create a display file, the evfevent file came back with an error result, but the path to the file was qtemp/qsource, instead of the correct path.

image file-not-found
edmundreinhardt commented 10 months ago

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137 Do you have this in git, as that should not happen.

JDubbTX commented 10 months ago

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See

https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137

Do you have this in git, as that should not happen.

It is here, in git: https://gitlab.com/JDubbTX/my-first-ibm-i-project

edmundreinhardt commented 7 months ago

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137

Do you have this in git, as that should not happen.

It is here, in git: https://gitlab.com/JDubbTX/my-first-ibm-i-project @JDubbTX Is this link still valid?

JDubbTX commented 7 months ago

i didn't have it set public. it is now.

John Weirich (he/him) 979.219.9262


From: Edmund Reinhardt @.> Sent: Thursday, April 4, 2024 10:21:55 PM To: IBM/ibmi-bob @.> Cc: John Weirich @.>; Mention @.> Subject: Re: [IBM/ibmi-bob] EVFEVENT file - has QTEMP/QSOURCE in path. (Issue #280)

BOB uses crtfrmstmf which fixes the EVFEVENT after the compile if *EVENTF was used. See https://github.com/IBM/ibmi-bob/blob/45e40c5e1f5648b11bdec626028077bd3e959450/src/makei/crtfrmstmf.py#L137

Do you have this in git, as that should not happen.

It is here, in git: https://gitlab.com/JDubbTX/my-first-ibm-i-project @JDubbTXhttps://github.com/JDubbTX Is this link still valid?

— Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-bob/issues/280#issuecomment-2038767054, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANRLW3D6MJV237TM3HZEUE3Y3YKFHAVCNFSM6AAAAABBD6J64WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYG43DOMBVGQ. You are receiving this because you were mentioned.Message ID: @.***>

edmundreinhardt commented 7 months ago

I can get to https://gitlab.com/JDubbTX but when I access https://gitlab.com/JDubbTX/my-first-ibm-i-project I get a 404

JDubbTX commented 7 months ago

OK, forgot I moved the project. Project is now [here]: (https://gitlab.com/ibm-i-stuff/my-first-ibm-i-project)

I tried this again in two different environments on my machine.

I did this from a powershell 7 prompt, where I have gitbash installed, seemed to work fine there. I did this from a WSL prompt, it also worked there.

HOWEVER In WSL I'm getting a new issue that is somewhat different than the original issue described.

New behavior in WSL (This does not happen in my pure windows environment, which works as expected):

  1. I opened up the rpg program in vscode, /qrpglesrc/myrpgle.pgm.rpgle
  2. In Code for IBM i extension, connected to my lpar and made sure the target IFS directory was set (chose default)
  3. Deliberately introduced a bug so that compile would fail (changed dcl-f to dcl-x on line 10.
  4. Changed .env file to point to my library.
  5. Execute build current.
  6. VSCODE notification that code was deployed, but also that build was successful
  7. The event file downloads fine, path looks fine, errors in the event file look fine. 7. Problems view does NOT populate with the errors from the event file.

Output:

Running Action: Build current (10:03:48 AM)
Working directory: /home/jweirich/builds/my-first-ibm-i-project
Commands:
    OPT=*EVENTF BUILDLIB=QGPL /QOpenSys/pkgs/bin/makei compile -f myrpgle.pgm.rpgle

targets: MYRPGLE.PGM
> /QOpenSys/pkgs/bin/make -k BUILDVARSMKPATH="/tmp/tmpvxdjbelw" -k BOB="/QOpenSys/pkgs/lib/bob" -f "/QOpenSys/pkgs/lib/bob/src/mk/Makefile" MYRPGLE.PGM
=== Creating DSPF [MYDSPF.DSPF] in JWEIRICH
/QOpenSys/pkgs/lib/bob/src/scripts/crtfrmstmf --ccsid *JOB  -f /home/jweirich/builds/my-first-ibm-i-project/QDDSSRC/MYDSPF.DSPF -o MYDSPF -l JWEIRICH -c CRTDSPF -p ENHDSP(*YES) RSTDSP(*YES) DFRWRT(*YES) AUT() OPTION(*EVENTF *SRC *LIST) TEXT('My First RPGLE Program')
✓ MYDSPF.FILE was created successfully!

=== Create Bound RPG Program [MYRPGLE] in JWEIRICH
CRTBNDRPG srcstmf('/home/jweirich/builds/my-first-ibm-i-project/qrpglesrc/MYRPGLE.PGM.RPGLE') PGM(JWEIRICH/MYRPGLE) TGTCCSID(*JOB) DBGVIEW(*ALL) OPTION(*EVENTF) TEXT('My First RPGLE Program') INCDIR(*NONE)
✕ Failed to create MYRPGLE.PGM!

Objects:             1 failed 1 succeed 2 total
 > Failed objects:    MYRPGLE.PGM
Build Completed!

Fetching errors from .evfevent.
Downloaded files as part of Action: .logs, .evfevent

Screenshots: image image

JDubbTX commented 7 months ago

I should also mention that the project builds fine in its ci/cd pipeline, a gitlab runner that uses a linux alpine image: https://gitlab.com/ibm-i-stuff/my-first-ibm-i-project/-/jobs/6407073271