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.

VS Code extension not starting

See original GitHub issue

Perhaps I’m missing something here, but the VS Code extension appears to not work at all?

I have cfn-lint installed and I can use the CLI as expected -

dgard@THH-TPI6674:~$ cfn-lint --version
cfn-lint 0.51.0

Initially when I start VS Code there is no output for the extension, but after I try to run the ‘Preview CloudFormation as a graph’ command I see the following output for ‘CloudFormation linter Language Server’ -

Settings have been updated...
Settings: {"cfnLint":{"enableAutocomplete":true,"validateUsingJsonSchema":false,"path":"cfn-lint","appendRules":[],"ignoreRules":[],"overrideSpecPath":""}}

It should be noted that 'Preview CloudFormation as a graph ’ doesn’t work either though -

Command ‘Preview CloudFormation template as graph’ resulted in an error (command ‘extension.sidePreview’ not found)

The only requirements for the extension say that cfn-lint and (optionally) pydot need to be installed, and both are available.

Any tips on how to get this working, as it seems like it might be useful.

Thanks, David

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JadenSimoncommented, Jul 12, 2021

The AWS Toolkit does have different language servers for YAML files, but none are called ‘CloudFormation YAML’ so I’m not sure where that is coming from. Is this showing up as a Language Mode?

1reaction
dgard1981commented, Jun 29, 2021

I think I’ve found the issue. I just created a template, but I forgot to put .cfn in the name, and cfn-lint picked up an error. When I renamed the file, the language mode automatically changed to ‘CloudFormation YAML’ (from the AWS Toolkit extension) as opposed to just ‘YAML’, and cfn-lint stopped working again.

So it seems that this is two extensions not playing well together.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Terminal launch failures - Visual Studio Code
Troubleshooting steps · Check your user settings. Review these terminal. · Test your shell directly. Try running your designated integrated terminal shell outside ......
Read more >
vscode does not load any extensions · Issue #85494 - GitHub
The extensionlist via F1-> "Developer: Show running extensions" is empty. I can't debug. If I push on Debug->Add Configuration, nothing happens.
Read more >
Extensions not working : r/vscode - Reddit
vscode-lua extension works just fine for me, by itself or along with others. Problem is definitely on your end, perhaps the vscode installation...
Read more >
Get started using VS Code with WSL - Microsoft Learn
VS Code will display a warning icon ⚠, along with a green "Install in WSL" button, if you have an extension locally installed...
Read more >
Troubleshooting Common Issues | Salesforce for VSCode
SFDX Commands Aren't Available# · Make sure that the root directory you have open in VS Code contains an sfdx-project.json file. If you...
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