zowe / cics-for-zowe-client

Monorepo for all CICS related APIs and Apps built by Zowe Clients
https://www.zowe.org/
Eclipse Public License 2.0
1 stars 3 forks source link

V1: Extension won't load if a profile in `loadedCICSProfile` does not exist #106

Open zFernand0 opened 4 months ago

zFernand0 commented 4 months ago

Describe the bug

The CICS extension can fail to load if there used to be a CICS profile loaded that no longer exists. For example:

  "Zowe.CICS.Persistent": {
    "persistence": true,
    "programSearchHistory": [],
    "transactionSearchHistory": [],
    "localFileSearchHistory": [],
    "loadedCICSProfile": [
        "myOldCicsProfle" // This profile was removed or renamed
    ],
    "regionSearchHistory": []
  },

Expected and actual results

Expected that the CICS extension would let me add a new V1 profile. And maybe just remove any non-existent profiles while doing so.

Actual:

Error running command cics-extension-for-zowe.addSession: 
command 'cics-extension-for-zowe.addSession' not found. 
This is likely caused by the extension that contributes cics-extension-for-zowe.addSession

Describe your environment

All V1, and making use of the SCS plugin and the Zowe-Plugin setting

Additional context

This could be related to:

github-actions[bot] commented 4 months ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.