problem with extension v. 0.10.2; server crashes 5 times
See original GitHub issueHi there,
got the following message from cfn-lint for VS when working on a CF template in vs:
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at ChildProcess.<anonymous> (/Users/uwes/.vscode/extensions/kddejong.vscode-cfn-lint-0.10.2/server/out/server.js:167:28)
at ChildProcess.emit (events.js:200:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
[Info - 09:36:12] Connection to server got closed. Server will restart.
Settings have been updated...
Settings: {"cfnLint":{"enableAutocomplete":true,"validateUsingJsonSchema":false,"path":"cfn-lint","appendRules":[],"ignoreRules":[],"overrideSpecPath":""}}
Determined this file is a CloudFormation Template. file:///Users/uwes/EigeneDateien/Projekte/Syneco-SFTP/sftp-server-setup_v4.yml. Found the string AWSTemplateFormatVersion
running............. cfn-lint --format,json,--,"/Users/uwes/EigeneDateien/Projekte/Syneco-SFTP/sftp-server-setup_v4.yml"
/bin/sh: cfn-lint: command not found
child process exited with code 127 and signal null
undefined:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at ChildProcess.<anonymous> (/Users/uwes/.vscode/extensions/kddejong.vscode-cfn-lint-0.10.2/server/out/server.js:167:28)
at ChildProcess.emit (events.js:200:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
[Error - 09:36:12] Connection to server got closed. Server will not be restarted.
Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
problem with extension v. 0.10.2; server crashes 5 times #75
Hi there, got the following message from cfn-lint for VS when working on a CF template in vs: SyntaxError: Unexpected end of JSON...
Read more >The Python Tools server crashed 5 times in the last 3 minutes ...
Uninstall Python extension (if you have pylance uninstall it first).\; Close all instances of VS Code.\; Go to, %USERPROFILE%/.vscode/extensions ...
Read more >Documentation - Apache Kafka
In Kafka the communication between the clients and the servers is done with a simple, high-performance, language agnostic TCP protocol.
Read more >My hosted server crashes randomly, and i don't know what ...
Okay, so i am playing on a online hosting with around 80 mods, this just randomly happens when we play. Help please? [15:47:08]...
Read more >What's New | Oracle, Software. Hardware. Complete.
Oracle Linux with Oracle enterprise-class support is the best Linux operating system (OS) for your enterprise computing needs.
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
@sviera91 and @ustrahlendorf have you installed cfn-lint from pip? https://pypi.org/project/cfn-lint/
There is a setting to configure the path to cfn-lint if its installed in a location that isn’t included by your PATH environment variable.
Mostly looking at this line your output.
/bin/sh: cfn-lint: command not found
https://github.com/awslabs/aws-cfn-lint-visual-studio-code#extension-settings
cfnLint.path
@kddejong Yeah same here. I just switched laptops and while I installed the extension forgot to install the library through pip. My bad 😛 Thanks for the help!