-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI installed but not seen as such #31
Comments
Hey @remitbri, thanks for filing and sorry you're experiencing this issue. From the details you provided it sure seems like everything should be functioning correctly. You didn't install the CLI binary to a non-standard location by chance, did you? I don't think that should have an impact, but it would be worth ruling out. We're using lookpath to figure out if you have the CLI installed. Finally, I'd recommend restarting VS Code if you haven't already, just to make sure it's a persistent issue. If restarting does fix it I'd still consider that a bug, but at least it would be working for you. |
Hi @jodyheavener Thanks for your reply. I've just created a local repo with just lookpath installed. Launching node
I installed op with homebrew, as per documentation. |
Thanks for verifying this on your end! This looks correct to me. I'll see what I can find out on my end. |
Hey @remitbri, while I haven't been able to uncover why the issue is occurring, someone else reported something similar and was able to resolve it by uninstalling and re-installing the extension. If you'd like to give that a try it could at least unblock you :) |
Removing+reinstalling didn't do the trick, nor did disabling/unabling, I had to remove the extension + quit VS Code + start VS Code + install the extension. It seems to be working as expected now… |
One workday later, the computer starts, VS Code starts and… the problem has come back, "CLI is not installed" etc |
Darn! Sorry to hear that, and thanks for following up to report this. It's odd that it would work one day and not that next, so I'm curious: does VS Code ever present you with the message "Unable to resolve your shell environment in a reasonable time. Please review your shell configuration."? If so, this could explain it; VS Code needs to establish your PATH through your shell in order to use the extension. |
It happens sometimes, but definitely not most of the times. I don't know why. Whereas I get the "CLI is not installed. …" error message each time at startup, or when I open a new window, or reload it |
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. |
I've had the same problem across multiple versions of |
Agreed - I can't edit my PATH variables (restricted account on my work computer), so I've added them to the VS Code user settings, but that doesn't seem to be recognized by the extension. Hard coding it would be a fine solution for me as well. |
So far, these ordered steps seem to have corrected the issue for me on macOS 13.1. I had already installed 1Password 8 and CLI 2 previously, so it was only a matter of removing the extension and making sure 1Password 8 and CLI 2 were configured correctly before re-installing the VS Code Extension:
Hope this helps others! I also added the following to my
|
Thanks for this detailed information, @cbserra! I'm just checking in on this. We haven't seen it come up consistently, and so @remitbri @kitpierce @alexclst I just wanted to check if you were still regularly experiencing this issue. I'll note that, as requested above, we'll eventually be adding the ability to specify a custom CLI path, so if you continue to experience issues that could be a possible fix. |
I still see this fairly regularly. |
Thanks @alexclst! And I see you're on macOS from your last comment. One followup question: does this ever happen in conjunction with a warning from VS Code along the lines of "Unable to resolve your shell environment in a reasonable time"? |
@jodyheavener They aren't happening together. I very rarely get the warning about shell environment, but almost always the 1Password warning. |
@jodyheavener Hi! Running at the moment Regarding my zsh config files, I just have |
This issue is still ongoing and we don't yet have a solution, so I'm going to open this up to Hacktoberfest submissions if anyone is brave enough or has any wild ideas. Good luck! |
I use MacOS 14.1.1 with CLI 2.23.0 and VScode 1.84.2 and extension 1.0.4 and I get the same error; I tried to uninstall, leave viscose and then try install again but I still get the same error message. Do we know what makes the extension think the CLI is not installed? |
I'm experiencing the same issue: |
I'm experiencing the same issue: CLI is not installed. Please install it to use 1Password for VS Code. Also installed via homebrew. No amount of uninstalling / reinstalling seems to make this work. Everything else functions just finer. The VS Code extension just won't believe the CLI is installed |
Well, right after posting this, I found the problem (at least on my machine). It appears that when installing via homebrew, VSCode does not get nor prompt for full disk access. Without it, Creating a symlink from /opt/homebrew/bin/op |
Getting this issue on Windows. Have restarted. Have reinstalled 1Password CLI and also unchecked/checked CLI in main window. Any ideas? |
To add, I'm running into this after migrating to an M3 Mac. |
Your environment
op-vscode version: v1.0.0
VS Code version: 1.68.1
CLI version: 2.5.1
OS: macOS 12.4
Steps to reproduce
What happened?
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
Typing
op --version
in a terminal (system, or VS Code's) gets "2.5.1"The text was updated successfully, but these errors were encountered: