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.

problem with extension v. 0.10.2; server crashes 5 times

See original GitHub issue

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

github_iconTop GitHub Comments

3reactions
kddejongcommented, Dec 18, 2019

@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

1reaction
sviera91commented, Dec 18, 2019

@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!

Read more comments on GitHub >

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

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