forcedotcom / Einstein-GPT-for-Developers

Einstein GPT For Developers
BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

Test Case Generations will fail for new file creation after updated the Salesforce CLI extension to v60.12.0 #72

Closed gbockus-sf closed 3 months ago

gbockus-sf commented 3 months ago

Summary

After Updating the SF extension pack to v60.12.0+ you will get an error when using the TestCaseGeneration feature of Einstein for Developer to Create a new Apex unit test file.

Screenshot 2024-05-14 at 2 30 39 PM

Steps To Reproduce:

  1. Update the SF Extension Pack to v60.12.0
  2. For an Apex Class that does not have an associated Unit test right click a method and select 'Einstein: Generate a Test'
  3. Select 'Create a new file'
  4. See errors

Expected result

Should create the unit test file and populate with a unit test.

Actual result

See screenshot above.

Additional information

Salesforce Extension Version in VS Code:v60.12.0

Salesforce Einstein For Developers Version in VS Code: v0.46.0 (but doesn't matter)

OS and version: MacOS 14.4.1

VS Code version: 1.89.0-insider

gbockus-sf commented 3 months ago

We have identified the issue and will have a patch out with the release this week. As a short term work around you can downgrade the Salesforce CLI extension to v60.11.0

gbockus-sf commented 3 months ago

Fix released with v0.47.0 🥳