You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right-clicking on a CICS profile and choosing manage profile -> edit profile results in an exception and the config file is not opened.
Choosing delete profile works correctly.
This has started happening to me and others in the last couple of days - it's not entirely clear why!
The exception that's shown is this:
Something went wrong while managing the profile - {"stack":"TypeError: Cannot read properties of undefined (reading 'homeDir')
at US.updateSession (/Users/niced/.vscode/extensions/zowe.cics-extension-for-zowe-3.3.1/dist/extension.js:1:2247046)
at async US.manageProfile (/Users/niced/.vscode/extensions/zowe.cics-extension-for-zowe-3.3.1/dist/extension.js:1:2240021)
at async cw.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:32825)","message":"Cannot read properties of undefined (reading 'homeDir')"}
we do configInstance.getTeamConfig().opts.homeDir - but opts is undefined for me currently.
I think the complexity is here is because we supported multi-selecting profiles, whereas the delete profile code (and Zowe Explorer) do not. I've not delved into why opts is now undefined.
The text was updated successfully, but these errors were encountered:
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.
I think the best solution here is so simplfy the code so both update and delete profile options use the same straightforward code to open the config file, and to prevent multi-selecting.
Describe the bug
Right-clicking on a CICS profile and choosing manage profile -> edit profile results in an exception and the config file is not opened.
Choosing delete profile works correctly.
This has started happening to me and others in the last couple of days - it's not entirely clear why!
The exception that's shown is this:
At
cics-for-zowe-client/packages/vsce/src/trees/CICSTree.ts
Line 493 in 1087db6
we do
configInstance.getTeamConfig().opts.homeDir
- but opts is undefined for me currently.I think the complexity is here is because we supported multi-selecting profiles, whereas the delete profile code (and Zowe Explorer) do not. I've not delved into why opts is now undefined.
The text was updated successfully, but these errors were encountered: