TransWikia.com

VS Code Mac not Using SFDX Commands

Salesforce Asked by thinker on December 4, 2021

I’m currently trying to troubleshoot something wrong with my vscode.

I’m able to us Salesforce DX CLI tools in the console, but I’m not able to do it with the Command + P + >. Whenever I do this, I only get three options (see screen shot).

This was from a github repo for the salesforce Dream house app.

I believe it has something to do with my bin files, but I’m not sure what or how to begin troubleshooting.

Any help would be really appreciated.

Things attempted:

  1. Uninstalled and re-installed Salesforce CLI.
  2. Added my Java instance to the salesforce settings.
  3. Checked my $PATH, it appears to be pointing to a composer file for laravel, but not sure how to change it back if this is needs to be pointing at something else.

enter image description here

One Answer

I was able to get it to work, but had to uninstall CLI and delete vsCode extensions.

Here are the steps that I did.

  1. Show Hidden Files in Finder (could have removed the folders for the extensions in iterm, but decided to use the GUI).

  2. navigate to your .vscode/extensions folder and then delete all the salesforce extensions folders (they should all begin with salsforce-

  3. Then I followed Salesforce UnInstall Steps for the Salesforce CLI

  4. I restarted VS Code, and verified that no Salesforce Commands were coming in to VS Code's command palette (e.g. Create Project, Create Project with Manifest etc).

  5. Used NPM to install the CLI globally: Might have to scroll down a bit to see the steps.

  6. Updated CLI vi NPM

  7. Then I went through the trailhead to setup VSCode with Salesforce:

  8. After completing that trailhead (which has you reinstall the extensions) I was able to get VS code synced up and command palette was working again.

Answered by thinker on December 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP