intersystems / ipm

InterSystems ObjectScript Package Manager
MIT License
27 stars 19 forks source link

Error on compile after local import with 2022.1 #432

Open jasonalun opened 10 months ago

jasonalun commented 10 months ago

ERROR #5002: ObjectScript error: zGetInstallerProperties+11^%ZPM.PackageManager.Developer.Utils.1 *%GetData,%SQL.StatementResult

ERROR #5574: Error reported while running generator for parameter '%ZPM.PackageManager.Developer.Processor.CSPApplication:ATTRIBUTES' ERROR #5030: An error occurred while compiling class '%ZPM.PackageManager.Developer.Processor.CSPApplication' ERROR #5090: An error has occurred while creating projection %ZPM.Installer:Reference.

evshvarov commented 9 months ago

Hi Jason! It looks like there is some issue in parameters of the CSP application. Could you please check? Or send the parameters here?

On Mon, 13 Nov 2023 at 14:26, Jason Jones @.***> wrote:

ERROR #5002: ObjectScript error: zGetInstallerProperties+11^%ZPM.PackageManager.Developer.Utils.1 *%GetData,%SQL.StatementResult

ERROR #5574: Error reported while running generator for parameter '%ZPM.PackageManager.Developer.Processor.CSPApplication:ATTRIBUTES'

ERROR #5030: An error occurred while compiling class '%ZPM.PackageManager.Developer.Processor.CSPApplication' ERROR #5090: An error has occurred while creating projection %ZPM.Installer:Reference.

— Reply to this email directly, view it on GitHub https://github.com/intersystems/ipm/issues/432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEPYUZN2JT4MRN2KGNOLYEIUZNAVCNFSM6AAAAAA7JHSSP2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4TANZXGAZDGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

isc-tleavitt commented 9 months ago

This is an issue compiling IPM itself

isc-tleavitt commented 9 months ago

The "dynamic SQL with host variables" thing in https://github.com/intersystems/ipm/blob/master/src/%25ZPM/PackageManager/Developer/Utils.cls#L1743 is pretty gross regardless of the extent to which it might lead to this issue.

isc-tleavitt commented 9 months ago

This works fine for me on 2022.1.1, but was failing for Jason on some other 2022.1.x version. Looking at https://docs.intersystems.com/upgrade/results?product=iris&versionFrom=2022.1.1&versionTo=2022.1.4&categories=Core,SQL it seemed that DP-407729 could be related. Looking at things internally, this introduced another issue (internal reference: DP-425447) that is fixed in 2022.1.4 and which could possibly explain this symptom.

@jasonalun are you on 2022.1.3 specifically? If so, the fix would be update to 2022.1.4.

isc-tleavitt commented 9 months ago

Assuming the upgrade fixes the issue, I'd vote leave this open to fix the gross code obscuring the real issue.

jasonalun commented 9 months ago

Hi Tim,

Got in late today, just catching up. It fails on 2022.1.4. I removed that and installed 2022.1.2 and it works fine again. So it is definitely a problem with the version.

Regards, Jason Jones IT Specialist Field Enhancement & Sustainment (FES) Software and Project Management (SPM), Health Services Portfolio VistA, Education, Research Data, and Informatics (VERDI) Health Infrastructure and Systems Management (HISM) Phone: 313-623-5333

From: Tim Leavitt @.> Sent: Tuesday, November 14, 2023 8:11 AM To: intersystems/ipm @.> Cc: Jones, Jason A. @.>; Mention @.> Subject: [EXTERNAL] Re: [intersystems/ipm] Error on compile after local import with 2022.1 (Issue #432)

This works fine for me on 2022.1.1, but was failing for Jason on some other 2022.1.x version. Looking at https://docs.intersystems.com/upgrade/results?product=iris&versionFrom=2022.1.1&versionTo=2022.1.4&categories=Core,SQL it seemed that DP-407729 could be related. Looking at things internally, this introduced another issue (internal reference: DP-425447) that is fixed in 2022.1.4 and which could possibly explain this symptom.

@jasonalunhttps://github.com/jasonalun are you on 2022.1.3 specifically? If so, the fix would be update to 2022.1.4.

- Reply to this email directly, view it on GitHubhttps://github.com/intersystems/ipm/issues/432#issuecomment-1810177194, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAP43V77IUZNIPJSXNGQO7DYENUV7AVCNFSM6AAAAAA7JHSSP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQGE3TOMJZGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

jasonalun commented 9 months ago

Hi Evgeny,

No, a CSP application wasn't involved, that was the confusing thing. I was just trying to compile ZPM after import. It has to do with the version of Intersystems IRIS. I have a new government laptop and was porting over all my tools, and so I installed Intersystems IRIS onto it like my old laptop, but I decided to upgrade the version because I had no idea it would have any impact on this, but ZPM would not compile as per the error I posted. I finally gave up and uninstalled 2022.1.4 and installed 2022.1.2, which is the closest to the version I had on my old laptop (2022.1.1) and this worked - ZPM compiled no problem. Unfortunately I am in a time crunch with deliverables and so I didn't have time to troubleshoot much more than that. Hopefully this will help you narrow down the issue, though.

Regards, Jason Jones IT Specialist Field Enhancement & Sustainment (FES) Software and Project Management (SPM), Health Services Portfolio VistA, Education, Research Data, and Informatics (VERDI) Health Infrastructure and Systems Management (HISM) Phone: 313-623-5333

From: Evgeny Shvarov @.> Sent: Tuesday, November 14, 2023 1:59 AM To: intersystems/ipm @.> Cc: Jones, Jason A. @.>; Author @.> Subject: [EXTERNAL] Re: [intersystems/ipm] Error on compile after local import with 2022.1 (Issue #432)

Hi Jason! It looks like there is some issue in parameters of the CSP application. Could you please check? Or send the parameters here?

On Mon, 13 Nov 2023 at 14:26, Jason Jones @.<mailto:@.>> wrote:

ERROR #5002: ObjectScript error: zGetInstallerProperties+11^%ZPM.PackageManager.Developer.Utils.1 *%GetData,%SQL.StatementResult

ERROR #5574: Error reported while running generator for parameter '%ZPM.PackageManager.Developer.Processor.CSPApplication:ATTRIBUTES'

ERROR #5030: An error occurred while compiling class '%ZPM.PackageManager.Developer.Processor.CSPApplication' ERROR #5090: An error has occurred while creating projection %ZPM.Installer:Reference.

- Reply to this email directly, view it on GitHub https://github.com/intersystems/ipm/issues/432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEPYUZN2JT4MRN2KGNOLYEIUZNAVCNFSM6AAAAAA7JHSSP2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4TANZXGAZDGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.<mailto:@.>>

- Reply to this email directly, view it on GitHubhttps://github.com/intersystems/ipm/issues/432#issuecomment-1809642151, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAP43V55PVV4YPNXNRJGAY3YEMJBZAVCNFSM6AAAAAA7JHSSP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBZGY2DEMJVGE. You are receiving this because you authored the thread.Message ID: @.**@.>>