Skip to content
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

Failed to run action within the VSCode #122

Closed
unbreakabl3 opened this issue Mar 1, 2023 · 5 comments
Closed

Failed to run action within the VSCode #122

unbreakabl3 opened this issue Mar 1, 2023 · 5 comments
Labels
type:bug Something isn't working

Comments

@unbreakabl3
Copy link

unbreakabl3 commented Mar 1, 2023

Description

When clicked on Run vRO Action button, I got the following error:

# Running getVmWithTag.js
# An error occurred: Could not import exec package into vRO: Command 'mvn dependency:copy -Dartifact=com.vmware.pscoe.o11n:exec::package -DoutputDirectory="/Users/user/Library/Application Support/Code/User/globalStorage/vmware-pscoe.vrealize-developer-tools" -Dmdep.stripVersion=true ' exited with code 1

Steps to Reproduce

  1. Create Javascript action
  2. Select the action and click on the upper right corner the Run vRO Action button

Expected behaviour: [What you expect to happen]

Action will run

Actual behaviour: [What actually happens]
Failed with:

# Running getVmWithTag.js
# An error occurred: Could not import exec package into vRO: Command 'mvn dependency:copy -Dartifact=com.vmware.pscoe.o11n:exec::package -DoutputDirectory="/Users/user/Library/Application Support/Code/User/globalStorage/vmware-pscoe.vrealize-developer-tools" -Dmdep.stripVersion=true ' exited with code 1

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Environment

Mac OS 13.3

Client

  • vRealize Developer Tools Version: 2.4.0
  • vRealize Build Tools Version: 2.29.1
  • Visual Studio Code Version: 1.75.1
  • OS Version: Mac OS 13.3

Server

  • vRealize Automation Version: n/a
  • vRealize Orchestrator Version: 8.11.1

Failure Logs

# Running getVmWithTag.js
# An error occurred: Could not import exec package into vRO: Command 'mvn dependency:copy -Dartifact=com.vmware.pscoe.o11n:exec::package -DoutputDirectory="/Users/user/Library/Application Support/Code/User/globalStorage/vmware-pscoe.vrealize-developer-tools" -Dmdep.stripVersion=true ' exited with code 1
@unbreakabl3
Copy link
Author

Hello,
is there any chance to fix it or provide a temporarely workaround?

@VenelinBakalov
Copy link
Collaborator

Hi @unbreakabl3 , I think we managed to solve this issue with the following PR: #140
@akumanov-vmw could you confirm if I am right?
If that is the case, we should have the fix in the next release

@VenelinBakalov
Copy link
Collaborator

Closed with #140
Release in v2.5.1

@VenelinBakalov
Copy link
Collaborator

Opened an issue in Build Tools for Aria repo as well since the fix needs to be implemented there:
vmware/build-tools-for-vmware-aria#427

@VenelinBakalov
Copy link
Collaborator

@unbreakabl3 the exec package is re-added and will be released with the next Build Tools version release (most likely 2.44.0):
vmware/build-tools-for-vmware-aria#435

Note that this means the exec package will be released as well with a version of 2.44.0 meaning that in order to run the action you will need to adjust the Default version setting which by default is set to 2.38.1
image

I will open a subsequent bug since the action now executes but does not show execution logs, only ID and result.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants