Unable to deploy code using VSCode

vs-code

I am getting following error while deploying code from VSCode.

Error deploying or retrieving source: The file or directory that you
tried to deploy or retrieve isn't in a package directory that's
specified in your sfdx-project.json file. Add this location to your
"packageDirectories" value, or deploy or retrieve a different file or
directory. For details about sfdx-project.json, see:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm

Retrieving of code into VSCode seems to work fine but deployment throws this error.

Here is what my sfdx-project.json looks like

 {
      "packageDirectories": [
        {
          "path": "force-app",
          "default": true
        }
      ],
      "name": "XXXXXX2022",
      "namespace": "",
      "sfdcLoginUrl": "https://test.salesforce.com",
      "sourceApiVersion": "55.0"
    }

It was working fine till last week, suddenly today i seem to get this error.
Anybody having similar issue?

Best Answer

There is an issue with the most recent Salesforce CLI Integration Extension for VS Code on Windows (v55.4.0)

To resolve, go to your extensions, go to Salesforce CLI Integration, click the drop down next to Uninstall, and click "Install another version". Install the previous version (55.3.0)

Related Topic