Skip to content
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

Using Remote SSH extension (ms-vscode-remote): [cfn-lint] Unable to start cfn-lint (Error: spawn /bin/sh ENOENT). Is cfn-lint installed correctly? #216

Open
ErikOAWS opened this issue Mar 9, 2022 · 0 comments

Comments

@ErikOAWS
Copy link

ErikOAWS commented Mar 9, 2022

version & path

While connected to remote SSH host:

$ which cfn-lint
/home/<USER>/.local/bin/cfn-lint

$ /home/<USER>/.local/bin/cfn-lint --version
cfn-lint 0.54.4

$ cfn-lint --version
cfn-lint 0.54.4

$ cat ~/.bashrc | egrep PATH
export PATH=/home/<USER>/.local/bin:$PATH

vscode general: settings.json

With vscode-fn-lint 0.2.2 version
But when I load a CloudFormation script into VSCode, I get the following error:
[cfn-lint] Unable to start cfn-lint (Error: spawn /bin/sh ENOENT). Is cfn-lint installed correctly?

vscode extension: @ext:ms-vscode-remote.remote-ssh,ms-vscode-remote.remote-ssh-edit

    "cfnLint.path": "/home/<USER>/.local/bin/cfn-lint ",

All recommendations mentioned here have been followed with no resolution: #21

Any help would be appreciated.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant