salesforcedx-vscode: The Salesforce Apex plugin in VSCode & Cursor sometimes fails to work properly.

Summary

I saved a file with the suffix “.apex” in VSCode & Cursor, and then executed the command “SFDX: Execute Anonymous Apex with Currently Selected Text” for this text. However, there was no output in the output console, and there were neither the “Execute” nor “Debug” buttons in the code.

Steps To Reproduce:

  1. Create a file with the suffix “.apex” and save it. Then input System.debug('123'); and save.
  2. Select this part of the code and output it in the quick command SFDX: Execute Anonymous Apex with Currently Selected Text press Enter.

Expected result

You can observe the relevant output of 123 in the output console.

Actual result

Nothing

Additional information

Image

Image

Salesforce Extension Version in VS Code: 63.6.0

Salesforce CLI Version: @salesforce/cli/2.42.6 darwin-arm64 node-v18.18.

OS and version: Version 24H2 (Internal OS Version 26100.3194)

VS Code version: 1.98.2

Most recent version of the extensions where this was working: 63.6.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

What is lacking??