forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
947 stars 404 forks source link

switch sandbox #3474

Closed arjunRao1204 closed 3 years ago

arjunRao1204 commented 3 years ago

Issue Type: Bug

While opening the vscode under the extensions of sfdc i am unable to switch to any other sfdc org and giving error message as failed to connect

Extension version: 51.3.0 VS Code version: Code 1.49.0 (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-10T13:22:08.892Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.82GB (6.44GB free)| |Process Argv|--crash-reporter-id 3678ff42-ae2c-45d3-916b-62c9820f59ff| |Screen Reader|no| |VM|0%|
arjunRao1204 commented 3 years ago

I created from new repo and removed the extensions that are not used but the problem remains same, how and when i can solve the issue image

smaddox-sf commented 3 years ago

Hi @arjunRao1204 - In the output panel of your screenshot, it looks like the sfdx CLI isn't installed. (I see the message "...is not recognized as an internal or external command." Here's the setup instructions, including CLI - https://developer.salesforce.com/tools/vscode/en/getting-started/install.

arjunRao1204 commented 3 years ago

Hi, I have installed saleforce CLI. @.***

From: smaddox-sf @.> Sent: 06 August 2021 21:43 To: forcedotcom/salesforcedx-vscode @.> Cc: Mallikarjuna Rao, Cheethirala @.>; Mention @.> Subject: Re: [forcedotcom/salesforcedx-vscode] switch sandbox (#3474)

Hi @arjunRao1204https://urldefense.com/v3/__https:/github.com/arjunRao1204__;!!AKgNyAfk550h-spHnEo!IDd_7yMRfmDSjdfp5F-JrLMvjOq_5liRMi1aaRAR-PxZNmHUN1F6Rk15MBam63feucmLrDoVsA$ - In the output panel of your screenshot, it looks like the sfdx CLI isn't installed. (I see the message "...is not recognized as an internal or external command." Here's the setup instructions, including CLI - https://developer.salesforce.com/tools/vscode/en/getting-started/installhttps://urldefense.com/v3/__https:/developer.salesforce.com/tools/vscode/en/getting-started/install__;!!AKgNyAfk550h-spHnEo!IDd_7yMRfmDSjdfp5F-JrLMvjOq_5liRMi1aaRAR-PxZNmHUN1F6Rk15MBam63feucmJqUGHEw$.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/forcedotcom/salesforcedx-vscode/issues/3474*issuecomment-894365284__;Iw!!AKgNyAfk550h-spHnEo!IDd_7yMRfmDSjdfp5F-JrLMvjOq_5liRMi1aaRAR-PxZNmHUN1F6Rk15MBam63feuckn6VCkiA$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AUDHGBLFMUA3ZG65ZGWHJG3T3QCXBANCNFSM5BTZW4MA__;!!AKgNyAfk550h-spHnEo!IDd_7yMRfmDSjdfp5F-JrLMvjOq_5liRMi1aaRAR-PxZNmHUN1F6Rk15MBam63feucm_adhc3Q$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!AKgNyAfk550h-spHnEo!IDd_7yMRfmDSjdfp5F-JrLMvjOq_5liRMi1aaRAR-PxZNmHUN1F6Rk15MBam63feucmrd0KwwQ$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email__;!!AKgNyAfk550h-spHnEo!IDd_7yMRfmDSjdfp5F-JrLMvjOq_5liRMi1aaRAR-PxZNmHUN1F6Rk15MBam63feucnqtEdjSA$.

Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

smaddox-sf commented 3 years ago

What output do you see when you execute sfdx version from your terminal? If you get an error from the integrated terminal in VS Code, I'd be curious if you see an error when executing from your computer terminal.

If the CLI is installed, the error may be indicating that VS Code doesn't know where to find the CLI. Can you check the path setup? You can see the details here: https://developer.salesforce.com/tools/vscode/en/troubleshooting/#set-salesforce-cli-path-windows

arjunRao1204 commented 3 years ago

Earlier i was able to make the deploy and retrieve but now it is not allowing me to connect to SFDC org but i am able to connect the vlocity org and do the things as earlier. And i am unable to uninstall or disable the salesforce CLI extension and i cannot access the ennvironment mentioned above

arjunRao1204 commented 3 years ago

can anyone connect and solve the issue still i am not able to authorize salesforce org

smaddox-sf commented 3 years ago

Hi @arjunRao1204 - Please check out this CLI issue and the workaround to see if this unblocks you. There's not a lot of repro detail in this issue, but from what you've described, I think you might be impacted by that issue. Please check it out and let us know.

If not, please go to the terminal window in VS Code and type sfdx version and paste the output you see. Here's a visual on the terminal and command:

image

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.