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

Error message when VS Code is loading a SFDX project

Open AngelMtz97 opened this issue 2 years ago • 2 comments

Summary

When I open a sfdx project folder in vscode I am getting the following error message

"No sfdx-project.json found in the root directory of your open project. Open a Salesforce DX project in VS Code."

Steps To Reproduce:

  1. Open a sfdx project in vscode
  2. The Salesforce CLI extension is not loading
  3. Open the Command Palette
  4. Select: SFDX: Create Project with manifest
  5. "Activating extension" message appears
  6. You will se an error notification window

Expected result

I should not be seeing any error message if the opened folder is a SFDX project folder.

Actual result

I get an error message and the salesforce CLI integration is not working

Additional information

Feel free to attach a screenshot. image

image

image

image

VS Code version: 1.66.2

Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977 Date: 2022-04-11T07:46:01.075Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: 9.8.177.11-electron.0 OS: Windows_NT x64 10.0.19044

Salesforce Extension Pack: 54.9.0 - April 21, 2022

sfdx-cli/7.147.1 win32-x64 node-v16.14.2:

Windows 10 Pro 21H2:

AngelMtz97 avatar Apr 28 '22 05:04 AngelMtz97

Hi @AngelMtz97 are you still experiencing this issue?

AnanyaJha avatar May 19 '22 20:05 AnanyaJha

Hi @AngelMtz97 are you still experiencing this issue?

Hello @AnanyaJha I changed my laptop for another one, because was too difficult find the cause, I try reinstalling VS Code, Salesforce CLI, Salesforce Extension Pack, but it didn't work. As an aside, my co-worker also ran into the same problem shortly after, while we were working on the same project. Thank you for your reply.

AngelMtz97 avatar May 24 '22 18:05 AngelMtz97

@AngelMtz97 Sorry for the long delay. I've assigned this issue to myself so we can get it to resolution.

As a test if you clone a sample repo (like ebikes) Do you experience the same issue?

Is there a .sfdx directory present in your project?

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

Hello, @gbockus-sf thanks for your response, and I am very sorry, but actually I am not working with the same project mentioned in my reported issue, and I am not able to reproduce the error anymore, how can we handle this situation?.

AngelMtz97 avatar Sep 21 '22 00:09 AngelMtz97

No worries. I'll just close this issue for now and if it ever reappears just let us know. I suspect it was either something about how the cli was configured or a permissions issue with project. Thanks for the quick response.

gbockus-sf avatar Sep 21 '22 04:09 gbockus-sf