chriscamicas / vscode-abl

An extension for VS Code which provides support for the Progress OpenEdge ABL language. https://marketplace.visualstudio.com/items?itemName=chriscamicas.openedge-abl
MIT License
50 stars 37 forks source link

Multiline ASSIGN results in syntax error #89

Open M0rr155 opened 7 months ago

M0rr155 commented 7 months ago

When using this Progress code (and we use this a lot), there is a syntax error:

                ASSIGN
                    opcOrderprocessNextProcessCode = bfShpDefM.ProcCde
                    opeOrderprocessNextActionCode  = OrderprocessActionCode:Close
                    .

image

[{ "resource": "/c:/VSCodeW/NextGen/backend/srcNG/WMS/Process/Orderprocess/OrderprocessBusiness.cls", "owner": "abl-error", "severity": 8, "message": "196: ** c:\VSCodeW\NextGen\backend\srcNG\WMS\Process\Orderprocess\OrderprocessBusiness.cls Could not understand line 2210. (196)", "startLineNumber": 2210, "startColumn": 21, "endLineNumber": 2210, "endColumn": 27 }]

gquerret commented 7 months ago

And ? That's just an error reported by the compiler.

M0rr155 commented 7 months ago

I am new to this, but an experienced Progress Developer. This piece of code compiles in my Progress IDE, but not in the Visual Studio Code IDE with the BAL plugin...


From: Gilles Querret @.> Sent: Friday, March 22, 2024 09:10 To: chriscamicas/vscode-abl @.> Cc: Maurice Stassen | WICS @.>; Author @.> Subject: Re: [chriscamicas/vscode-abl] Multiline ASSIGN results in syntax error (Issue #89)

And ? That's just an error reported by the compiler.

— Reply to this email directly, view it on GitHubhttps://github.com/chriscamicas/vscode-abl/issues/89#issuecomment-2014552556, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHG3SECFXYF4KRGDFZ4T6YDYZPRQRAVCNFSM6AAAAABFC3GLM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGU2TENJVGY. You are receiving this because you authored the thread.Message ID: @.***>

gquerret commented 7 months ago

Then it's probably a configuration issue (propath or db connection).

M0rr155 commented 7 months ago

found it: sorry for my ignorance.

The ASSIGN does not compile because of the enum that is not recognized:

syntax check ok: opeOrderprocessNextActionCode = WMS.Enum.OrderprocessActionCode:Close

syntax check NOT ok: opeOrderprocessNextActionCode = OrderprocessActionCode:Close but USING WMS.Enum.*. is in the code...


From: Gilles Querret @.> Sent: Friday, March 22, 2024 09:35 To: chriscamicas/vscode-abl @.> Cc: Maurice Stassen | WICS @.>; Author @.> Subject: Re: [chriscamicas/vscode-abl] Multiline ASSIGN results in syntax error (Issue #89)

Then it's probably a configuration issue (propath or db connection).

— Reply to this email directly, view it on GitHubhttps://github.com/chriscamicas/vscode-abl/issues/89#issuecomment-2014610696, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHG3SEG6EJJE4KMWMLKTXKDYZPUL7AVCNFSM6AAAAABFC3GLM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGYYTANRZGY. You are receiving this because you authored the thread.Message ID: @.***>

M0rr155 commented 7 months ago

So my problem will be solved when

USING WMS.Enum.* works with opeOrderprocessNextActionCode = OrderprocessActionCode:Close

gquerret commented 7 months ago

Note that you can try this other extension where you may have more information in the log: https://marketplace.visualstudio.com/items?itemName=RiversideSoftware.openedge-abl-lsp

M0rr155 commented 7 months ago

Thank you very much Gilles, for pointing me to Riverside Software plugin

Can i have your e-mail address for asking questions on the Riverside Software plugin?

Mauric


From: Gilles Querret @.> Sent: Friday, March 22, 2024 17:38 To: chriscamicas/vscode-abl @.> Cc: Maurice Stassen | WICS @.>; Author @.> Subject: Re: [chriscamicas/vscode-abl] Multiline ASSIGN results in syntax error (Issue #89)

Note that you can try this other extension where you may have more information in the log: https://marketplace.visualstudio.com/items?itemName=RiversideSoftware.openedge-abl-lsp

— Reply to this email directly, view it on GitHubhttps://github.com/chriscamicas/vscode-abl/issues/89#issuecomment-2015477514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHG3SEF7XX5637HROLTZT4TYZRNB3AVCNFSM6AAAAABFC3GLM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGQ3TONJRGQ. You are receiving this because you authored the thread.Message ID: @.***>

M0rr155 commented 7 months ago

I installed and (try to) configure the Riverside Software plugin. But i keep this error:

Skip OpenEdge project in c:\VSCodeW\NextGen -- OpenEdge install not found


From: Gilles Querret @.> Sent: Friday, March 22, 2024 17:38 To: chriscamicas/vscode-abl @.> Cc: Maurice Stassen | WICS @.>; Author @.> Subject: Re: [chriscamicas/vscode-abl] Multiline ASSIGN results in syntax error (Issue #89)

Note that you can try this other extension where you may have more information in the log: https://marketplace.visualstudio.com/items?itemName=RiversideSoftware.openedge-abl-lsp

— Reply to this email directly, view it on GitHubhttps://github.com/chriscamicas/vscode-abl/issues/89#issuecomment-2015477514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHG3SEF7XX5637HROLTZT4TYZRNB3AVCNFSM6AAAAABFC3GLM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGQ3TONJRGQ. You are receiving this because you authored the thread.Message ID: @.***>