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

Latest (v61.12.0) VSCode Salesforce CLI Integration extension failed to execute when decomposeCustomLabelsBeta2 added to sourceBehaviorOptions #5836

Closed
RayHWLau opened this issue Sep 11, 2024 · 8 comments · Fixed by #5844

Comments

@RayHWLau
Copy link

RayHWLau commented Sep 11, 2024

Summary

The CLI has introduced decomposeCustomLabelsBeta2, while the command working properly through CLI, it failed to execute via CLI integration extension in VSCode

Steps To Reproduce:

  1. Install Latest Salesforce CLI version (v2.57.7)
  2. Install all plugins in Salesforce Extension Pack
  3. Connect to any org
  4. Create an apex class with any name
  5. Right click on the apex class, then select "SFDX: Deploy this source to org"
  6. Error message "Failed to load preset "decomposeCustomLabelsBeta2"

Expected result

The component / metadata should be deployed successfully

Actual result

Received error message "Failed to load preset "decomposeCustomLabelsBeta2" in VS Code terminal

Additional information

clierrorsh

Salesforce Extension Version in VS Code: 61.12.0

Salesforce CLI Version: @salesforce/cli/2.57.7 win32-x64 node-v20.16.0

OS and version: Microsoft Windows 10 Enterprise (10.0.19045 Build 19045)

VS Code version: 1.92.2

Most recent version of the extensions where this was working: N/A

@svc-idee-bot
Copy link
Collaborator

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@svc-idee-bot
Copy link
Collaborator

Hello @RayHWLau 👋 It looks like you didn't provide all the required basic info in your issue.

If you haven't already, please provide the following info:
Salesforce Extension Version in VS Code:
Salesforce CLI Version:
OS and version:
VS Code version:
Most recent version of the extensions where this was working:

Here's an example of a set of required info that will pass the validation:
Salesforce Extension Version in VS Code: 60.13.0
Salesforce CLI Version: @salesforce/cli/2.42.6 darwin-arm64 node-v18.18.2
OS and version: MacOS Sonoma 14.5
VS Code version: 1.89.1
Most recent version of the extensions where this was working: 60.11.0

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue, as well as all error messages that you see.
    • A repository that clearly demonstrates the bug is ideal.
    • Error messages can be found in the Problems Tab, Output Tab, and from running Developer: Toggle Developer Tools in the command palette.
  • Make sure you've installed the latest version of the Salesforce Extension Pack for VSCode. (docs)
  • Search GitHub for existing related issues.

Thank you!

@RayHWLau
Copy link
Author

Revised additional information to fit the format

@CristiCanizales
Copy link
Contributor

Hi @RayHWLau. I verified and it's just that we're using a bit older version of the SDR library (the one that contains the changes for decomposeCustomLabelsBeta2). It was out on 12.3.0 and we're in 12.1.5). I'll log the bug and add it to our backlog. Thank you for bringing this up to our attentio!

Copy link

git2gus bot commented Sep 11, 2024

This issue has been linked to a new work item: W-16722393

@CristiCanizales
Copy link
Contributor

Hi @RayHWLau! Could you please install these vsixes and let me know if the issue is still happening? Thanks in advance!

@CristiCanizales CristiCanizales linked a pull request Sep 13, 2024 that will close this issue
@RayHWLau
Copy link
Author

Hello @CristiCanizales,
success_screenshot
salesforce_vscode_extension_v6113

The new visxes works well with decomposeCustomLabelsBeta2. I have also tried it by right clicking decomposed custom labels and able to retrieve a specific label.

Besides, I also test on retrieve, deploy and diff an apex class by right clicking in vscode. It works properly as well.

Thanks for your help!

@CristiCanizales
Copy link
Contributor

Hi @RayHWLau, thanks for confirming with all those use cases! This fix will be officially out the week after Dreamforce, so not next week but the following one, but meanwhile you can use the vsixes I shared with you. Thanks for your patience😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants