forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
953 stars 406 forks source link

We found that after upgrading to the latest version, we encountered an error when uploading a newly created apex class #5675

Closed zt15242 closed 2 months ago

zt15242 commented 3 months ago

We found that after upgrading to the latest version, we encountered an error when uploading a newly created apex class。 We manually set the apiVersion in the xml of the newly created class from 61 to 59 to deploy normally image

svc-idee-bot commented 3 months ago

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 commented 3 months ago

Hello @zt15242 :wave: 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:

Thank you!

zt15242 commented 3 months ago

@svc-idee-bot Salesforce Extension Version in VS Code: 61.2.1 Salesforce CLI Version:@salesforce/cli/2.13.9 win32-x64 node-v18.15.0 VS Code version: 1.89.1 Most recent version of the extensions where this was working: 60.13.0

peternhale commented 3 months ago

@zt15242 would you run this command from the vscode terminal and return the results?

sf project deploy start

peternhale commented 3 months ago

I also see that the CLI version is ~34 weeks old. Would it be possible to upgrade the CLI to the latest and try again?

github-actions[bot] commented 2 months ago

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.