-
Notifications
You must be signed in to change notification settings - Fork 155
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
/bin/sh: cfn-lint: command not found when installed in virtual environment virtualenv #211
Comments
I have since moved to using |
You can set the path to cfn-lint in the settings of the plugin.
We default it to |
I'll give it a try. Thank you. Would you happen to know what is the cause? A recent code change, or vscode change? It's been working with my virtual environment for around 4 years without fail. |
I start VSCode by opening the icon on my desktop. While setting the path in vscode settings does work, I feel that that shouldn't be the solution. |
Unfortunately this doesn't work for the relatively common case of developing under both Windows and WSL. For working in Windows, the path needs to be ".venv\Scripts\cfn-lint", for linux under WSL it needs to be ".venv/bin/cfn-lint". The plugin really should try the configured virtual environment before falling back to PATH. |
I always create my virtual environment in a folder called
|
Still encountering this issue in 2024. I am working under WSL2. The comment from @johncuyle worked. I have a
Do not forget to restart VS Code for the settings to take effect. You can find the path of the |
I am getting the following error when viewed in the Output window at the bottom of vscode. I have latest stable vscode, with latest stable version of cfn-lint, with latest stable version of Cloudformation Linter extension.
I have cfn-lint installed in a virtual environment
~/.venv
usingpython -m venv ~/.venv
and thenpip install --upgrade cfn-lint
.OS Windows 10
WSL2 OpenSUSE 15.3
cfn-lint --version cfn-lint 0.56.4
python Python 3.6.15
VSCODE
Version: 1.63.2 (user setup)
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:40:02.816Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042
The text was updated successfully, but these errors were encountered: