-
Notifications
You must be signed in to change notification settings - Fork 22
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
Executing a vRO action within vscode is not working #83
Comments
A short update on this. We used to have an exec module that we used to bundle and publish ( part of https://github.com/vmware/build-tools-for-vmware-aria/tree/main/packages ). This was recently removed, we need to investigate why and return it. FYI @n-vodenicharski |
Internal link: https://stash.pscoe.vmware.com/projects/IFV/repos/toolchain/browse/packages/exec This is the package we need re-added |
Same bug is reported in vmware/vrealize-developer-tools#122 According to this bug, the VRealize Developer Tools should show a button called " RUN VRO Action" |
I was able to run VRO actions by clicking on dropdown item with three dots in upper right corner of vscode. |
That’s what I have in the tree dots dropdown: And that a vRO Action button: This one is not working and I am getting the error I was initially posted. The build tool I am running now is 2.33.0 |
Yes, I am trying to reproduce error in 2.31.0 and 2.33.0 |
Couldn't reproduce error with 2.33.0. |
I think Ivo mentioned that this package was removed for some reason in one of the earlier releases. The latest one doesn’t have it, if its install if from scratch. |
Ok, with 2.33.0, and no exec package in VRO, I clicked on "run VRO action". |
Thanks. Waiting for your feedback. |
To ensure, nothing is stored in my VSCode or machine, I uninstalled the "vrealize developer tools" extension, removed exec package from VRO and re-executed "run Vro action", the "vrealize developer tools" downloaded exec package again and imported exec package into VRO and ran the action successfully. Looks like nothing is cached in VScode. |
Error received on above mvn command |
Yep. That’s what Ivo mentioned that it was removed for some reason. |
Please note that it is looking for ".vmware.pscoe.o11n:exec". This could be a maven version issue. The maven I am using is 3.8.7 |
RunAction.ts of vRDT version 2.4.0 has async prepare(context: vscode.ExtensionContext) { private async getExecPackage(context: vscode.ExtensionContext): Promise {
|
Trying to figure out what does copyDependency of MavenCliProxy do |
copyDependency(
mvn dependency:copy -Dartifact=${groupId}:${artifactId}:${version}:${packaging} -DoutputDirectory="${destinationDir}" -Dmdep.stripVersion=true ` Need to figure out where the package com.vmware.pscoe.o11n:exec is copied from. |
Confirming the following from Windows environment.
This confirms that in windows environment exec package need not be included in the packages folder as seen in Next, I will confirm the commit which made these changes. |
Author Timestamp Commit # |
Please notice the exec package in remote maven repository |
@kjiju https://artifactory.pscoe.vmware.com/artifactory/pscoe/com/vmware/pscoe/o11n/exec/ is not remote, it's local to us, remote is maven central |
I am able to reproduce the bug by adding two items in precondition
Preconditions: |
2.29.2 is the version of vRbt having exec package.
Apache Maven 3.8.7 |
Hey, everyone. |
@Michaelpalacce @kjiju @akumanov-vmw I think this issue is fixed with the following PR: |
Amazing news. Like a gift for a Christmas 🤶. Thanks a lot! Will wait for a next release to test it. |
Hi again @unbreakabl3 , I did some local tests with the latest code base. It seems to work, at least on my side. I would suggest, if you have time, to try and checkout the latest vRealize Developer Tools master, build it locally and test on your side to make sure it is functional for you as well. |
Hi, @VenelinBakalov. Working for me. |
That's great to hear! Let me try to organise a release and once it is done, I will write back here and close the related issues. |
Hi again, @unbreakabl3 , thanks for the feedback and the patience! |
We did another internal validation round, everything should be ok, if you manage to find an issue feel free to reopen this thread. |
Issue closed in vRDT repository with PR: vmware/vrealize-developer-tools#140 |
@VenelinBakalov I just tried this and getting the same issue that 'com.vmware.pscoe.o11n:exec:2.36.0:package' cannot be found. I have a completely new install, using Build Tools v2.36.0 and vRDT 2.5.1. I have tried removing the extension and re-installing but keep getting the same problem. |
Hi @simplygeekuk , this seems like a different error, could you add the full error log here and any configuration that you might see usefull? |
Actually, I have the same problem now. Latest vscode, Build Tools v2.37.0 and vRDT 2.5.1:
|
@VenelinBakalov Looking at the conversation thread here, it's identified as the exec package being the problem (not able to download it). This package does not exist in the public Maven central repos, this is the problem. |
I think we need to re-open this. We need to publish the exec plugin |
@Michaelpalacce it seems the exec package was removed between 2.92.2 and 2.30.0 releases. probably this appeared as an issue now since we have created a new vRDT release @unbreakabl3 @simplygeekuk in the mean time while we figure this out, if you find this feature critical or useful as a workaround you can use a version prior to the current release that has the old dependency. You can:
|
Closing as per @vsuddya's investigations |
@Michaelpalacce I think we might still need to add back the exec package to Build Tools repo |
I don't know the original reason for removing it, but if possible, it would be very useful to return it. |
Description
When trying to run an action inside the vscode, I am getting the following error.
Steps to Reproduce
Expected behaviour: [What you expect to happen]
The action will run locally
Actual behaviour: [What actually happens]
The error above
Reproduces how often: [What percentage of the time does it reproduce]
Component/s: [What are the Build Tools for VMware Aria components affected by the issue (e.g. "common/artifact-manager", "maven/plugins/vra-ng", "typescript/vrotest", etc)]
com.vmware.pscoe.o11n:exec
packageEnvironment
Client
Server
The text was updated successfully, but these errors were encountered: