salesforcedx-vscode: Extension indicates that the CLI is not installed, but only for some commands
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.
Meanwhile, executing the same command through the integrated terminal works just fine:
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
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.
Oh, so that explains why reinstalling my OS worked too then. 🤣
HI @renatoliveira I just tested locally on my Ubuntu box with a fresh install of VSCode and the extensions and things seemed to work as expected for the ‘SFDX: Open Default Org’ so I’m guessing it has something to do with the user or env running VSCode.
Did you start vscode from the app launcher or from the terminal?
Could you try opening it from the terminal where you were able to successfully run
sfdx
and see if the ‘Open Default Org’ works as expected? Executecode .
from the directory where your salesforce project is located. ThanksThis has been happening for one week or so now.
VScode
is installed through my distro’s package manager, also used foryarn
and Node.js. The CLI is installed globally usingyarn
.