question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start cfn-lint in VSCode

See original GitHub issue

Hello 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:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
kddejongcommented, Oct 4, 2018

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:

"cfnLint.path": "cfn-lint"

An example of hardcoding the path:

"cfnLint.path": "/Users/userid/Library/Python/3.6/bin/cfn-lint"
5reactions
polarizemecommented, Mar 9, 2021

Can someone help how to hardcode the path “cfnLint.path”: “/Users/userid/Library/Python/3.6/bin/cfn-lint”

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found