salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

SFDX:Create Project with Manifest resulted in error

Open ronika-das opened this issue 2 years ago • 8 comments

Summary

Hi Team. All of a sudden, the Salesforce Extension pack is not working. When I try to create a new SFDX Project With Manifest, the below errors is thrown sfdx.force.project.with.manifest.create' not found

Steps To Reproduce:

1.1 Open Command Pallete->Create SFDX Project With Manifest

Expected result

It should allow us to choose the type and location to create the new project.

Actual result

Getting the error prompt, image

Additional information

I could not find a similar issues here, if there is any and it has been resolved. Pls share here I do not feel this is a Salesforce CLI issue, as the sfdx command are working fine on the terminal.

Java Version: java 17.0.3.1 2022-04-22 LTS Salesforce Extension Version in VS Code:v55.3.0

SFDX CLI Version:sfdx-cli/7.157.0 win32-x64 node-v16.15.1

OS and version:Windows 10, 20H2

ronika-das avatar Jul 04 '22 11:07 ronika-das

Am facing the same issues, SFDX CLI extraction required packs installed. and Am trying to create the New project click Ctrl+Shift+P got above mention error. And trying to use the existing folder and retiring but with the same error. How to solve this error. Please update ASAP.

Sainath-Attuluri avatar Jul 04 '22 12:07 Sainath-Attuluri

Howdy, I tried to repo this on Mac and Windows without success.
I just updated the extensions this morning and refreshed VSCode.

This kind of error typically indicates there is an issue with the extensions on install. It could have been a hiccup with the vscode marketplace that has been resolved.

The only difference between my machine and yours is mine is using OS: Windows 10, 21H2 but I wouldn't think that would make any difference. Could you try removing the extensions and reinstalling and see if the issue persists?

gbockus-sf avatar Jul 04 '22 16:07 gbockus-sf

@gbockus-sf Thank you for your reply. We did try that

  1. Updated everything to latest version, ensuring environment variables are updated
  2. Uninstalled vscode, salesforce cli and java, then reinstalled back

I am still trying. The sfdx commands are working fine on the terminal. But the Salesforce extension pack doesn't load up, even for existing sfdx projects.

ronika-das avatar Jul 04 '22 16:07 ronika-das

Same issue i have been facing here. Tried with all possibilities like Uninstall and install JRE, JDK, vsc, Salesforce extension pack, cli and luck so far. Still facing the above mentioned error.

Githubbhara avatar Jul 05 '22 05:07 Githubbhara

Hum. Very strange. I had @randi274 also try it on her windows box and she was also unable to reproduce. Could you please share the output from ls ~/.vscode/extensions

Also if possible zip up ~/.vscode/extensions/salesforce.salesforcedx-vscode-core-55.3.0 and attach it here? Bonus: code --list-extensions output

gbockus-sf avatar Jul 06 '22 19:07 gbockus-sf

Hi all. PLs find the output as follows

ls ~/.vscode/extensions
ls vscode.txt

~/.vscode/extensions/salesforce.salesforcedx-vscode-core-55.3.0 resources.zip

code --list-extensions extensions.txt

ronika-das avatar Jul 07 '22 10:07 ronika-das

Hi Team,

As per the above comments run the and below is the info.

  1. ls ~/.vscode/extensions : User Name MINGW64 ~/Desktop/Vscode_Git/0504 $ ls ~/.vscode/extensions chuckjonas.apex-pmd-0.5.9/ salesforce.salesforcedx-vscode-apex-debugger-55.3.0/
    dbaeumer.vscode-eslint-2.2.6/ salesforce.salesforcedx-vscode-apex-replay-debugger-55.3.0/ esbenp.prettier-vscode-9.5.0/ salesforce.salesforcedx-vscode-core-55.3.0/ financialforce.lana-1.4.2/ salesforce.salesforcedx-vscode-expanded-55.3.0/ ms-vscode.js-debug-companion-1.0.18/ salesforce.salesforcedx-vscode-lightning-55.3.0/ redhat.vscode-xml-0.21.2022062916-win32-ia32/ salesforce.salesforcedx-vscode-lwc-55.3.0/ salesforce.analyticsdx-vscode-0.8.2/ salesforce.salesforcedx-vscode-soql-55.3.0/ salesforce.analyticsdx-vscode-core-0.8.2/ salesforce.salesforcedx-vscode-visualforce-55.3.0/ salesforce.analyticsdx-vscode-templates-0.8.2/ salesforce.salesforce-vscode-slds-1.4.8/ salesforce.salesforcedx-vscode-55.3.0/ vibd.sfdx-cli-0.0.1/ salesforce.salesforcedx-vscode-apex-55.3.0/

  2. ~/.vscode/extensions/salesforce.salesforcedx-vscode-core-55.3.0 : User Name ~/Desktop/Vscode_Git/0504 $ ~/.vscode/extensions/salesforce.salesforcedx-vscode-core-55.3.0 bash: /c/Users/sainath_attuluri/.vscode/extensions/salesforce.salesforcedx-vscode-core-55.3.0: Is a directory

  3. code --list-extensions: User Name MINGW64 ~/Desktop/Vscode_Git/0504 $ code --list-extensions chuckjonas.apex-pmd dbaeumer.vscode-eslint esbenp.prettier-vscode FinancialForce.lana redhat.vscode-xml salesforce.analyticsdx-vscode salesforce.analyticsdx-vscode-core
    salesforce.analyticsdx-vscode-templates salesforce.salesforce-vscode-slds
    salesforce.salesforcedx-vscode salesforce.salesforcedx-vscode-apex salesforce.salesforcedx-vscode-apex-debugger salesforce.salesforcedx-vscode-apex-replay-debugger salesforce.salesforcedx-vscode-core salesforce.salesforcedx-vscode-expanded salesforce.salesforcedx-vscode-lightning salesforce.salesforcedx-vscode-lwc salesforce.salesforcedx-vscode-soql salesforce.salesforcedx-vscode-visualforce vibd.sfdx-cli

Sainath-Attuluri avatar Jul 07 '22 11:07 Sainath-Attuluri

@Sainath-Attuluri @ronika-das My apologies on it taking so long to get back to this issue. I've assigned it to myself so it doesn't slip off the radar again. Everything looks normal in the provided output. It seems that something if failing during initialization that is resulting in the extensions only being partially loaded. Can you try the following:

  1. Open VSCode
  2. Help > Toggle Developer Tools
  3. From the command pallet: Developer: Reload Window
  4. Look at the console in the developer tools for any errors (red text). If you right click in the console of the dev tool you can save it to file. Please upload that file here so we can dig into what is failing to load. Thanks!

gbockus-sf avatar Sep 20 '22 20:09 gbockus-sf

@Sainath-Attuluri @ronika-das Just wanted to touch base and see if you were able to execute the above debug actions.

gbockus-sf avatar Oct 31 '22 15:10 gbockus-sf

Hi all - touching base to see if this is still an issue with the latest version of the extensions (v56.4.1)?

randi274 avatar Nov 07 '22 21:11 randi274

@randi274 I'm still getting this issue with v56.3.1, additionally I'm unable to see other SFDX commands beyond SFDX Create Project, SFDX Create and Setup Project for ISV Debugging, and SFDX Create Project with Manifest. I'm on an Intel Mac (11.6.8) using VS Code v1.53.2.

The output of the above requests:

  1. ls ~/.vscode/extensions/ bradlc.vscode-tailwindcss-0.7.7/ salesforce.salesforcedx-vscode-apex-debugger-56.3.1/ dbaeumer.vscode-eslint-2.1.20/ salesforce.salesforcedx-vscode-apex-replay-debugger-56.3.1/ esbenp.prettier-vscode-7.1.1/ salesforce.salesforcedx-vscode-core-54.3.0/ms-python.python-2021.2.633441544/ salesforce.salesforcedx-vscode-core-56.3.1/ms-toolsai.jupyter-2021.2.603412351/ salesforce.salesforcedx-vscode-lightning-56.3.1/rlivings39.fzf-quick-open-0.4.7/ salesforce.salesforcedx-vscode-lwc-56.3.1/salesforce.salesforce-vscode-slds-1.4.8/ salesforce.salesforcedx-vscode-soql-56.3.1/salesforce.salesforcedx-vscode-54.3.0/ salesforce.salesforcedx-vscode-visualforce-56.3.1/salesforce.salesforcedx-vscode-56.3.1/ vscodevim.vim-1.21.5/salesforce.salesforcedx-vscode-apex-56.3.1/ zhuangtongfa.material-theme-3.9.15/

When I ran Create Project I got the following error messages in my VS Code Console. Screen Shot 2022-11-07 at 5 37 02 PM

Let me know if there's additional information I can give to help you debug.

rdatta11 avatar Nov 07 '22 22:11 rdatta11

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

github-actions[bot] avatar Nov 15 '22 02:11 github-actions[bot]

Hi all. apologies for late response Personally for me it is working. I uninstalled and installed everything back. It took me 2-3 tries

@gbockus-sf @randi274 Thank you for taking a look. I will perform the steps mentioned in case it happens again

ronika-das avatar Nov 15 '22 05:11 ronika-das

@rdatta11 Thanks for the screenshot. The activating extension error is definitely the problem. In v56* of the extensions we made some major changes around how the extensions are bundled. In doing so we also updated some activation events to use a newer feature from the vscode API to read the current version of the extension. This is the source of the packageJSON error.

I was able to repo the problem by downloading v1.53.2 of VSCode. We initially missed bumping the configuration to tell the extension it needed the newer version of vscode, but caught it on the next release of the extensions (56.5.1). This is why the extension is greyed out in the extensions view for that version:

Screen Shot 2022-11-15 at 5 29 05 PM

So Options: work around

  • Downgrade the version of the extensions you're using to v55.8.0. This will work until you are able to upgrade to more recent version of VSCode. This is done through the Gear -> install another version in the extensions marketplace.

solution

  • Update your version of VSCode if you are able. The extensions v56* will work with versions of VSCode going back to version 1.61.2

Thanks for working with us to identify the issue.

gbockus-sf avatar Nov 15 '22 23:11 gbockus-sf

@gbockus-sf thank you for following up and the solution! It worked for me, albeit for some reason I wasn't able to get it to work on my existing code base, so I had to copy the files over to a new repository and was able to get it to work then.

rdatta11 avatar Nov 21 '22 23:11 rdatta11