In some instances, the compiler options (PLI or COBOL) from the zapp file are not loaded, which causes parsing errors. In the log, the "compilerOptions" passed to the language client is blank:
2023-11-11T17:33:11.700+01:00 DEBUG: AbstractZLanguageClient.initializeLanguageClient: Started initializing a new PL1 language client with these initialization options: {"publishDiagnostics":true,"includeFileExtensions":[".inc",".include",".plinc",".pcx",".pci"],"compilerOptions":""}.
2023-11-11T17:33:11.733+01:00 DEBUG: ZAPP: A valid ZAPP file was found in "/home/oseam/test01".
2023-11-11T17:33:11.822+01:00 INFO : IBM Z Open Editor extension has (re)started.
It might be because the zapp file is loaded after the initialization of the language client?
Detailed steps for reproducing the problem:
Add a compiler options in the zapp file, for example:
Problem Description
In some instances, the compiler options (PLI or COBOL) from the zapp file are not loaded, which causes parsing errors. In the log, the "compilerOptions" passed to the language client is blank:
It might be because the zapp file is loaded after the initialization of the language client?
Detailed steps for reproducing the problem:
Add a compiler options in the zapp file, for example:
Open the following test program in a new tab:
Restart vscode (which will reopen the workspace with the test program)
Observed behavior
Parsing errors, due to the character "!" not recognized.
Expected behavior
No errors.