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

Failure in compilation when attempting to add library already in library list #335

Open
AIforIBMi opened this issue Jul 29, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@AIforIBMi
Copy link
Collaborator

Hello all!

I have observed a number of times when it comes to deploying projects which I am migrating to work with Project Explorer and Bob that listing a library in the .iproj.json file which already exists in my library list causes a compilation failure. I have provided a log below. Because of these projects, I am intentionally listing libraries which are dependencies of the project, but some have since been placed in the general user library list. I just wanted to point out this behavior. For now, I am simply listing the library list in the markdown, but I have been setting these up as a means for someone other than myself to easily pull a copy and make changes.

Thanks so much for all of the help!

CHGCURLIB CURLIB(devlib)
ADDLIBLE LIB(utils) POSITION(*FIRST)
[FAILED] ADDLIBLE LIB(utils) POSITION(*FIRST)

Traceback (most recent call last):

File "/QOpenSys/pkgs/lib/python3.9/site-packages/ibm_db_dbi.py", line 1193, in _callproc_helper
result = ibm_db.callproc(self.conn_handler, procname,parameters)
Exception: Statement Execute Failed: Trigger program or external routine detected an error. SQLSTATE=38501 SQLCODE=-443

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/QOpenSys/pkgs/lib/bob/src/makei/crtfrmstmf.py", line 453, in
cli()
File "/QOpenSys/pkgs/lib/bob/src/makei/crtfrmstmf.py", line 342, in cli
success = handle.run()
File "/QOpenSys/pkgs/lib/bob/src/makei/crtfrmstmf.py", line 100, in run
self.setup_env()
File "/QOpenSys/pkgs/lib/bob/src/makei/crtfrmstmf.py", line 157, in setup_env
self.job.run_cl(f"ADDLIBLE LIB({libl}) POSITION(*FIRST)", log=True)
File "/QOpenSys/pkgs/lib/bob/src/makei/ibm_job.py", line 39, in run_cl
cursor.callproc("qsys2.qcmdexc", [cmd])
File "/QOpenSys/pkgs/lib/python3.9/site-packages/ibm_db_dbi.py", line 1220, in callproc
result = self._callproc_helper(procname, parameters)
File "/QOpenSys/pkgs/lib/python3.9/site-packages/ibm_db_dbi.py", line 1196, in _callproc_helper
raise self.messages[-1]
ibm_db_dbi.OperationalError: ibm_db_dbi::OperationalError: Exception('Statement Execute Failed: Trigger program or external routine detected an error. SQLSTATE=38501 SQLCODE=-443')
@AIforIBMi
Copy link
Collaborator Author

@bmcpherson-srlife
Thanks for opening this!

@edmundreinhardt
Copy link
Member

@SanjulaGanepola thanks for the reference from IBM/vscode-ibmi-projectexplorer#548

@edmundreinhardt
Copy link
Member

@irfanshar I assume you didn't have a chance to address this?

@irfanshar
Copy link
Collaborator

@irfanshar I assume you didn't have a chance to address this?

Not yet, will take a look this week

@edmundreinhardt edmundreinhardt added the bug Something isn't working label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants