zowe.config.user.json not being leveraged properly
See original GitHub issueDescribe the bug
Properties in zowe.config.user.json
are not being merged with like-named profiles in zowe.config.json
. In this situation, Zowe Explorer fails to start, and I receive the following error:
To Reproduce
Steps to reproduce the behavior:
- Add this content to your global
zowe.config.json
:
{
"$schema": "./zowe.schema.json",
"profiles": {
"zosmf": {
"profiles": {
"lpar1": {"type": "zosmf","properties": {"host": "myhost.com"}}
},
"properties": {
"port": 443
}
},
"base": {
"type": "base",
"properties": {
"rejectUnauthorized": false
}
}
},
"defaults": {
"zosmf": "zosmf.lpar1",
"base": "base"
},
"autoStore": false
}
- Add this content to your global
zowe.config.user.json
:
{
"$schema": "./zowe.schema.json",
"profiles": {
"zosmf-working": {
"profiles": {
"lpar1": {"type": "zosmf","properties": {"user": "myuser"}}
},
"properties": {
}
}
},
"defaults": {
"zosmf": "zosmf.lpar1"
},
"autoStore": false
}
- Launch VSCode and note that everything loads properly
- In your global
zowe.config.user.json
, changezosmf-working
to justzosmf
- Relaunch VS Code and note this error on startup:
Expected behavior
Zowe Explorer starts up and properties of like-named profiles in zowe.config.user.json
override values in the zowe.config.json
.
Desktop (please complete the following information):
- OS: Windows 10
- Zowe Explorer Version: v2.0.0-next.202112161700
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Using Global Profile Configuration (Technical Preview)
You can generate a user-specific configuration file that overrides the values defined in the global zowe.config.json file.
Read more >Zowe CLI V2 - zowe profiles create deprecated? · Issue #1404
Hi,. Apparently with the move to Zowe CLI V2, the profile management commands are deprecated... You can no longer / must create a...
Read more >Zowe CLI — Getting Started, Made Easy! | by Michael Bauer
You can make use of zowe.config.user.json . To get started, issue zowe config init -g --user and open the generated file. Notice that...
Read more >Setting property groups - IBM
They can also be used to specify language-specific compiler options. To define a property group, you can use the following JSON snippet as...
Read more >Zowe Client Python SDK's documentation!
The Zowe Client Python SDK, is a set of Python packages designed to allow ... Python developers can leverage the Zowe SDK in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s right. One could also pull that branch and run the extension from the debugger in order to verify the functionality 😋
Upon further investigation, I found what seems like a bug in
loadSchema
in these lines:Since the
profile.profLoc.osLoc
contains an array of 2 items, theschemaMapKey
looks like:and because
mProfileSchemaCache
looks like:it is not able to find the correct schema and returns null. This causes the error message.