Cannot start cfn-lint in VSCode
See original GitHub issueHello there!
I’ve installed cfn-lint with pip3:
pip3 install cfn-lint --user
When I run cfn-lint --version
, I get:
cfn-lint 0.7.4
So the linter is working as expected in the terminal.
With vscode-fn-lint 0.2.2 version
But when I load a CloudFormation script into VSCode, I get the following error:
Unable to start cfn-lint (Error: spawn cfn-lint ENOENT). Is cfn-lint installed correctly?
Any help would be appreciated. Thanks!
Kind Regards, Tomislav
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Cannot start cfn-lint in VSCode · Issue #21 - GitHub
In VSCode, go into the extensions sidebar, click the settings gear on the CloudFormation Linter extension, select extension settings, then ...
Read more >How To - Install the CFN-LINT CloudFormation Extension for ...
The Cfn-Linter extension for the Microsoft Visual Studio Code (hereafter referred to as vscode) editor can be a major help to anyone asked ......
Read more >Do you know how to make function of cfn-lint fine with Visual ...
I use Visual Studio Code to create CloudFormation template. To detect error in CloudFormation YAML template, I used cfn-lint.
Read more >cfn-lint - PyPI
pip install cfn-lint . If pip is not available, run python setup.py clean --all then python setup.py install . Homebrew (macOS).
Read more >With cfn-lint - Serverless Rules
In that folder, you can find the CloudFormation templates as JSON files starting with cloudformation-template- . You can then run cfn-lint for inspecting ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
By default it will look for cfn-lint in the PATHs available to VSCode. When installing it into user space you will need to make sure VSCode has that path available or manually specify the full path with a setting that is made available.
By default it will be this:
An example of hardcoding the path:
In VSCode, go into the extensions sidebar, click the settings gear on the
CloudFormation Linter
extension, select extension settings, then define the path in the settings file or the applicable settings field in the GUI. Hope this helps!