CLI installed but not seen as suchSee original GitHub issue
op-vscode version: v1.0.0
VS Code version: 1.68.1
CLI version: 2.5.1
OS: macOS 12.4
Steps to reproduce
- A VS Code window loads. Or I manually reload one.
There’s this “pop-up” (bottom right side) that says “CLI is not installed. Please install it to use 1Password for VS Code. Source: 1Password (Extension)”, with a button “Open installation documentation”.
What did you expect to happen?
A prompt to choose the vault, as the documentation says? Not this pop-up, at the very least
Notes & Logs
op --version in a terminal (system, or VS Code’s) gets “2.5.1”
- Created 7 months ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
Having same issue with various CLI versions (including 2.4,x and 2.5.x) on Windows 10 and Windows 11. Definitely have installed the 1Password CLI in a custom location (for other development environment & business-case reasons.)
Would be nice to have an extension setting to specify a custom CLI binary path and still use the current ‘lookpath’ resolution method if this setting is undefined (likely would be for most users) or an invalid path.
It happens sometimes, but definitely not most of the times. I don’t know why. It seems it’s when I open a project from the terminal at the required folder, work on it, quit VS Code, and say the next day I reopen VS Code, the window of the project (will all the open tabs/files, etc) is already opened. If I ever get the “Unable to resolve…” message, it’s then. But a simple reload (from the menu, “Developer: Reload Window”) solves the issue. (I think the documentation says we should always open projects from their relevant folder in the terminal anyway)
Whereas I get the “CLI is not installed. …” error message each time at startup, or when I open a new window, or reload it