-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing imperative.ts file #3582
Comments
Hi @rkeahey -- I'm updating the correct file name in the Developing a new Zowe CLI plug-in article with PR 3587. Once the pull request is merged, you should be able to find this file in the source code zip file and be good to go. |
Thanks! I'm not sure how to report this (could be a problem on my end...), but when I follow the instructions as written I get an error when doing "zowe plugins install files-util" The message is: Have followed the steps several times with the same result. Sorry if I'm reporting this at the wrong place. I'm very new to the ZOWE/CLI environment. Any guidance would be appreciated! |
@rkeahey -- will be discussing this w/ the devs. something else might've changed on our end. not sure yet. even though the PR has been merged and the file name has been updated, I'm leaving your issue open so that we can keep track of it. expect a response soon. also, know that you can also use Slack to reach out -- https://openmainframeproject.slack.com/archives/CC08782AG |
Hey @rkeahey, The command you want to use is There may be other small issues you might be running into, even after running the correct CLI command. We will be updating the steps to make sure the process is smoother going forward 😋 In the meantime, here are some steps that might help you in case you need to start working on this right away.
Oh, and make sure to run |
Thanks! I did all the steps you outlined above and then ran npm run build, then zowe plugins install . I god a couple of "CmdErrors" shown in the following log snippet. Don't know if they will be useful for you, but thought I would pass them on. C:\Users\rhkea\Documents\QuickRef_Data\zowe-tutorial\files-util>zowe plugins install . Registry = https://registry.npmjs.org/ [2024/04/03 14:15:44.784] [WARN] [LifeCycleForSample.js:63] Something weird happened in the sample plugin's postInstall function. However, things should still work ok. _____ Validation results for plugin '@zowe/files-util' _____ *** CmdError: The plugin named 'compare-files' attempted to add a group of command with the alias 'zcsp', which conflicts with another alias of the same name for group 'zowe-cli-sample'. *** CmdError: The plugin's profile type = 'sample' already exists within existing profiles. This plugin has command errors. No plugin commands will be available. |
If it helps, I ran the Developing for Zowe CLI steps in sequence (https://docs.zowe.org/v2.13.x/extend/extend-cli/cli-devtutorials/). I think this is causing some of the conflicts shown above. I changed the pluginDef: pluginAliases: to "zscp2" in pluginDef.ts and the first error went away. I changed the profiles:type to "sample2" in pluginDef.ts and the second error went away. I think the issue is that the samples are all using the same sample-plugin-master source files. After I made these changes and ran npm run build again and then zowe plugins install . again, the plugin worked! |
Hey @rkeahey, 👋🏽 Yeah, it's likely that you already had the sample plugin installed and it had reserved the profile types and group alias😅 You could uninstall the sample plug-in if you truly want to use the original aliases with your Either way, I'm glad to hear you were able to get the plug-in working. 🎉 And thanks for sharing the snippet, we might be able to include it as part of the Zowe Docs once we update it 😋 We can close this issue after updating the steps to mention the few things that helped you get it to work. 🥳 Cheers! 🥂 |
URL: https://docs.zowe.org/v2.13.x/extend/extend-cli/cli-developing-a-plugin
In the step "Adjusting Imperative CLI Framework configuration" the instructions indicate to
"Change the src/imperative.ts file to contain the following configurations:"
However, there is no imperative.ts file in the src directory for the zip archive. Therefore one must be created from scratch.
The text was updated successfully, but these errors were encountered: