Hello,
I'm currently trying to complete my Salesforce playground set up in Visual Studio Code. When trying to select SFDX: Create a Project, nothing happens. Towards the bottom an "Activating Extensions" blurb comes up then goes away after about 5 seconds and I'm not prompted to do anything else.
#Trailhead Challenges #Visual Studio Code Salesforce Extensions
Hi @Anthony Martin,
When you install -
- First install Salesforce CLI
- Second Salesforce Extension pack in the VS Code
- Try to restart the VS Code
- Then try to put SFDX in the VS Code terminal
@Alan McCabe all good. I've found a working solution but hopefully can get a more permanent one in the future. It seems like this is somehow related to user permissions and PATH variables on my computer. I'm working on a non-administrator user, but when I run VS Code as admin, I am able to start a new project and connect to a Salesforce org successfully. So, something weird must be snagging when it comes to permissions. Hopefully this will help others as well!
I was having the same issue. Not able to create a project. It looked like I had Salesforce CLI installed, but it was part of the extension pack. My issue was resolved after installing Salesforce CLI from the Salesforce developers page in the previously linked document.
I have tried steps in below link, to install CLI and JDK and then I could create a project.
https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/install.html
Hi @Michael Agres, @Prasanna Ragipani,
Did you try the below solutions -
- Reinstalled the extension, and it worked after reinstallation: https://github.com/forcedotcom/salesforcedx-vscode/issues/2288
- Installing Java JDK and Salesforce CLI via the official installer fixed it by configuring environment variables: https://salesforce.stackexchange.com/questions/411738/vs-code-salesforce-extensions-not-activating
Hi @Anthony Martin,
In Visual Studio Code -
- Open Terminal (View > Terminal)
- Type sfdx and execute to verify Salesforce CLI is integrated properly with your VS Code
- If you see 'command not found' then you need to verify your installation of Salesforce CLI and the Salesforce Extension Pack
- Steps to install Salesforce CLI and extension pack: https://gist.github.com/sriniind19/3844c6df4638df3ab1812f892a8930a5
it seems like an extension issue to me but I can't explain it. Can you create the project manually. Open a terminal and create a project using something like:
sf project generate --name testproject
@Alan McCabe I have tried uninstalling and reinstalling VS Code, Salesforce CLI, Salesforce Extension Pack, and even JDK multiple times in multiple orders, and the issue persists.
Hello @Zach Goldberg. I believe what corrected the issue for me was uninstalling and reinstalling the Salesforce Extension Pack. Hope that helps for you.