Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with extension v. 0.10.2; server crashes 5 times #75

Closed
ustrahlendorf opened this issue Dec 18, 2019 · 7 comments
Closed

problem with extension v. 0.10.2; server crashes 5 times #75

ustrahlendorf opened this issue Dec 18, 2019 · 7 comments

Comments

@ustrahlendorf
Copy link

ustrahlendorf commented Dec 18, 2019

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?

@sviera91
Copy link

Getting the same issue. Right now the cfn-lint extension is just not working. No errors are called out.

@kddejong
Copy link
Contributor

kddejong commented 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

@ustrahlendorf
Copy link
Author

Thanks @kddejong, problem fixed, cfn-lint had despaired because of some configuration changes around several python versions :-)
Done re-install through brew, works now for me.

@kddejong
Copy link
Contributor

good news. Thanks @ustrahlendorf

@sviera91
Copy link

@kddejong Yeah same here. I just switched laptops and while I installed the extension forgot to install the library through pip. My bad :P Thanks for the help!

@PatMyron
Copy link
Contributor

bundling cfn-lint itself seems like it would help with these issues as well

@PatMyron
Copy link
Contributor

@DScheglov is this the issue you're running into? Does installing cfn-lint and making sure that executable is in your PATH solve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants