Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JDubbTX opened this issue Dec 27, 2023 · 7 comments
Open

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

JDubbTX opened this issue Dec 27, 2023 · 7 comments
Assignees

Comments

@JDubbTX
Copy link
Contributor

JDubbTX commented Dec 27, 2023

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
Copy link
Member

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

if "*EVENTF" in cmd or "*SRCDBG" in cmd or "*LSTDBG" in cmd:

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

@JDubbTX
Copy link
Contributor Author

JDubbTX commented Jan 19, 2024

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

if "*EVENTF" in cmd or "*SRCDBG" in cmd or "*LSTDBG" in cmd:

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
Copy link
Member

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

if "*EVENTF" in cmd or "*SRCDBG" in cmd or "*LSTDBG" in cmd:

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
Copy link
Contributor Author

JDubbTX commented Apr 5, 2024 via email

@edmundreinhardt
Copy link
Member

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
Copy link
Contributor Author

JDubbTX commented Apr 5, 2024

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
Copy link
Contributor Author

JDubbTX commented Apr 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants