RPG Compilation Errors not showing in local file #3158
-
|
I compiled a file from local repository which got errors, these errors are not shown in the editor. If i do the same from object browser then it shows these errors. How to get the errors also shown in local compilation ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
@sebjulliand Hey tell me if you need more context to answer this properly ? |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I finally have the time to make answer 😄 The process that looks up for the EVFEVENT file corresponding to the object being built will look for the definition of the command being run:
Hence why what you did here made it work. But when you're calling a shell script, you won't use these parameters and this process won't pick up any EVENTF information. So the other way is to have your build command to print the location of the EVFEVENT file that should be picked up. As long as it appears in the job log, you'll be fine. The expected format is as follow (for the moment): So in your case, that would be : I digged around a bit and for now, these lines need to be echoed into the error output. >&2 echo ": EVFEVENT: ${CURLIB}/${NAMEU}"And just adding this in the script should be enough to have the extension load the EVFEVENT content and report the errors. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Ok, I finally have the time to make answer 😄
The process that looks up for the EVFEVENT file corresponding to the object being built will look for the definition of the command being run:
*EVENTFPNLGRP, OBJ, PGM, MODULE, FILE, MENUHence why what you did here made it work.
But when you're calling a shell script, you won't use these parameters and this process won't pick up any EVENTF information.
So the other way is to have your build command to print the location of the EVFEVENT file that should be picked up. As long as it appears in the job log, you'll be fine.
The expected format is as …