question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension indicates that the CLI is not installed, but only for some commands

See original GitHub issue

Summary

A couple of weeks ago some commands stopped working when run through the editor’s command palette. The ones I can remember to have tested this are the “set default org”, “push” and “pull” and “open default org”. Some other commands, such as “deploy” and “retrieve” still work as expected.

image

Meanwhile, executing the same command through the integrated terminal works just fine:

image

Raised after comment on a similar issue (#3582).

Steps To Reproduce:

Unavailable at this time.

Expected result

Commands should execute as usual, as the CLI is installed.

Actual result

Commands mentioned before do not work.

Additional information

OS/VScode info:

Version: 1.64.1
Commit: d6ee99e4c045a6716e5c653d7da8e9ae6f5a8b03
Date: 2022-02-07T17:17:47.733Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.16.7-arch1-1

CLI version: sfdx-cli/7.136.2 linux-x64 node-v17.3.0

Extension Version: v53.16.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
aggartmancommented, Apr 22, 2022

@aggartman Thanks for the follow up. Did you have any node/npm or OS changes that could have resulted in the issue (upgrades)? Mostly just checking in case this shows up for anyone else.

Thanks

No changes, but I did a fresh install and made sure to install the cli through NPM rather than individually. The versions are all the same.

1reaction
renatoliveiracommented, Apr 22, 2022

Oh, so that explains why reinstalling my OS worked too then. 🤣

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some commands throw the error "Salesforce CLI is not ...
Summary With the VScode 1.61.0 and CLI v52.17.0, some commands throw the error "Salesforce CLI is not installed.
Read more >
Error: Salesforce CLI is not installed. (Integrating VS code with ...
I installed Salesforce CLI and when I tried creating a project in VS code but it says that Salesforce CLI is not installed....
Read more >
How to install and manage Azure CLI extensions
Install extensions automatically​​ When you run an extension command that is not installed, the Azure CLI can recognize the command you run, and...
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
Command not found errors ... This error means that the operating system can't find the AWS CLI command. The installation might be incomplete...
Read more >
4. Using Python on Windows — Python 3.11.1 documentation
Unlike most Unix systems and services, Windows does not include a ... ... necessary for a default installation and only requires an internet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found