Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Fix puppet 5 parser #2149

Merged
merged 1 commit into from
Feb 20, 2018
Merged

Fix puppet 5 parser #2149

merged 1 commit into from
Feb 20, 2018

Conversation

jas01
Copy link

@jas01 jas01 commented Feb 19, 2018

The new (not so new now) version of pupper (5) change a little the
parser output. Now it's something like

Error: Could not parse for environment production: Syntax error at 'group' (file: /manifests/homedir.pp, line: 16, column: 5)

this bad fix allow syntastic to still working with puppet 5.

Currently puppet parser got a option (--render-as) to allow (well should) to create to ouput of the parser as json/yaml but still not working. Maybe some day...

  The new (not so new now) version of pupper (5) change a little the
parser output. Now it's something like

  Error: Could not parse for environment production: Syntax error at 'group' (file: /manifests/homedir.pp, line: 16, column: 5)

this bad fix allow syntastic to still working with puppet 5.
@lcd047
Copy link
Collaborator

lcd047 commented Feb 19, 2018

This looks like puppet is spilling its guts because of a parsing error, rather than producing a validation error. Well, there are a few really bad checkers that should never have been added to syntastic to begin with, and puppet is one of them (cf. #1435). Perhaps this is a good time to kill it, since puppet-lint can deal with syntax errors just fine.

@jas01
Copy link
Author

jas01 commented Feb 19, 2018 via email

@lcd047
Copy link
Collaborator

lcd047 commented Feb 19, 2018

You miss the point. If puppet-lint can't detect a syntax error that's a bug with puppet-lint. If syntastic claims to support a linter that has been broken for 3+ years and made no progress in the mean time towards fixing the problem that's a bug with syntastic.

The goal here is not to provide a functional replacement for puppet. The goal is keep syntastic maintainable. shrug

@jas01
Copy link
Author

jas01 commented Feb 19, 2018 via email

@lcd047 lcd047 merged commit 96d4989 into vim-syntastic:master Feb 20, 2018
@lcd047
Copy link
Collaborator

lcd047 commented Feb 20, 2018

Ok, I suppose there are still e few people using this. Thank you, merged, with this patch on top: b7b473b.

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

Successfully merging this pull request may close these issues.

2 participants